Supporting NEW_TASK for Custom Tabs |
||||
Issue descriptionWith this change: https://codereview.chromium.org/2556713003/ NEW_TASK will be better supported for Custom Tabs. We should decide what exactly that means for external Custom Tab clients. 1.) Currently when a SeparateTaskCustomTabActivity is used (i.e. the activity type for NEW_TASK), we update the task description in Android recents to be based on the page title, favicon, theme color. Should this apply for external clients? Should we use the app icon from the original app? The app name? The color they provide? 2.) Do we need to do anything to limit the number of new tasks other apps can create? Currently if a client sends a second VIEW intent (assuming the client did not use NEW_TASK), do we try to load the URL in the original CCT? What is the behavior now? Should we try to refocus the previous NEW_TASK created activity? If we can't, do we now have two activities using the same session? Maybe the only requirement is the sessions are different? In general, this is the largest area for discussion and is more policy oriented.
,
Dec 13 2016
1) adding rolfe@ to answer this one. My personal preference would be to treat these similar to Herb tabs, as the client has shown interest to not be associated with them. 2) Currently if the client creates a session and then sends a second intent while a CCT is already live for that session, we reload the new url in the same tab without creating any new tabs or activities. So I think it would be OK to keep this behavior.
,
Dec 14 2016
Per No. 1 - I'm unsure of the agreement we made with the app. If a CCT client app calls a web page, do they expect it to open a CCT no matter what? I could see someone using CCT in the app and being surprised NEW TASK opens differently than other links called and appears differently in Recents. They might have made that choice based on how the platform works rather than how they wanted their app to be interacted with. But if we were to clearly document in which regard a CCT opens and retains the app styling, then NEW TASK presumably should be an Herb.
,
Mar 29 2017
,
Apr 5 2017
If you still need design support here, start with chowse@. |
||||
►
Sign in to add a comment |
||||
Comment 1 by sbirch@chromium.org
, Dec 12 2016