Пользовательская вкладка Chrome закрывается при повторном открытии приложения через панель запуска ⇐ Android
Пользовательская вкладка Chrome закрывается при повторном открытии приложения через панель запуска
I am using Chrome custom tabs for opening links inside the app. The app runs in a single activity with launchMode = singleTask. When I exit the app when the custom tab is open, and return to the app via recent apps screen, the tab is retained. However, if I exit the app and re-open it by clicking the icon on home screen launcher, the custom tab is gone.
Making some user flows such as bank payment confirmation with separate apps work is hard with this behaviour. Is there any way to retain the custom tab as long as the app is alive in background?
Code that opens the custom tab in an activity:
val builder = CustomTabsIntent.Builder() builder.enableUrlBarHiding() val customTabsIntent = builder.build() customTabsIntent.intent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP customTabsIntent.launchUrl(this, Uri.parse(url))
Источник: https://stackoverflow.com/questions/654 ... a-launcher
I am using Chrome custom tabs for opening links inside the app. The app runs in a single activity with launchMode = singleTask. When I exit the app when the custom tab is open, and return to the app via recent apps screen, the tab is retained. However, if I exit the app and re-open it by clicking the icon on home screen launcher, the custom tab is gone.
Making some user flows such as bank payment confirmation with separate apps work is hard with this behaviour. Is there any way to retain the custom tab as long as the app is alive in background?
Code that opens the custom tab in an activity:
val builder = CustomTabsIntent.Builder() builder.enableUrlBarHiding() val customTabsIntent = builder.build() customTabsIntent.intent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP customTabsIntent.launchUrl(this, Uri.parse(url))
Источник: https://stackoverflow.com/questions/654 ... a-launcher
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение