Android 10 Open in Chrome action cancels authorisation flow
See original GitHub issueIt seems like only API29 platform issue, but Android 10 is a mainstream version now, at least a workaround is needed.
Issue is reproducible in the demo app. Steps:
- Start authorisation flow using Chrome tab in Android 10 emulator
- In started Chrome tab tap more options and choose Open in Chrome
- Sometimes immediately, sometimes after even successfully sign in, but always flow ends with “Authorisation cancelled” error.
I investigated the issue little bit, the library cancels flow because the platform calls onResume
for AuthorizationManagementActivity
on “Open in Chrome” user action.
It is probably related to multi-display change in Android 10 https://source.android.com/devices/tech/display/multi_display/multi-resume#multiple
But looks like a bug, since doesn’t reproducible on Android 11.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9
Top Results From Across the Web
Change site permissions - Android - Google Chrome Help
Under 'Advanced', tap Site settings. Tap the permission that you want to update. Learn about permissions that can be changed.
Read more >738724 - Chrome tabs not redirecting back to app without user ...
We have been using oAuth flows and custom Uri redirects through Chrome Custom tabs just fine, until the release of Chrome for Android...
Read more >App Flip for Android | Authorization - Google Developers
OAuth-based App Flip linking (App Flip) inserts your Android app into the Google Account Linking flow. A traditional account linking flow ...
Read more >Request app permissions - Android Developers
Overview · <action> · <activity> · <activity-alias> · <application> · <category> · <compatible-screens> · <data> · <grant-uri-permission> · <instrumentation> ...
Read more >Easily add sign-in to your Android app with FirebaseUI - Google
FirebaseUI is a library built on top of the Firebase Authentication SDK that provides drop-in UI flows for use in your app.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ekrivenja-sequenex took me a few days to find some time to look at this and your information about reproducing this in an emulator with the sample app was helpful.
We don’t have an ETA on a fix but I’m glad we could confirm it’s an issue some users may experience. There’s also very few (if any) reasons a user would want to get out of the custom tab so I wouldn’t be too worried about it.
@huynguyennovem , in this case issues are unrelated.