We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b26e719 commit c586b7bCopy full SHA for c586b7b
packages/rtn-web-browser/android/src/main/kotlin/com/amazonaws/amplify/rtnwebbrowser/WebBrowserModule.kt
@@ -44,6 +44,7 @@ class WebBrowserModule(
44
getCustomTabsPackageName(reactApplicationContext)?.let {
45
val customTabsIntent = CustomTabsIntent.Builder(connection?.getSession()).build()
46
customTabsIntent.intent.setPackage(it).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
47
+ customTabsIntent.intent.setPackage(it).addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS)
48
customTabsIntent.launchUrl(reactApplicationContext, Uri.parse(uriStr))
49
} ?: run {
50
promise.reject(Throwable("No eligible browser found on device"))
0 commit comments