question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android 10 Open in Chrome action cancels authorisation flow

See original GitHub issue

It 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:open
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
agologancommented, Feb 2, 2021

@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.

0reactions
ekrivenja-sequenexcommented, Jun 21, 2021

@huynguyennovem , in this case issues are unrelated.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found