flutter_web_auth icon indicating copy to clipboard operation
flutter_web_auth copied to clipboard

Android auth web session terminates when opening other apps

Open AdamAH opened this issue 2 years ago • 3 comments

Hi there,

We're facing a weird Android only issue where when the webview opens up to initiate the auth session, the user gets sent an OTP, so they open their email app like Gmail, and when they return back to our app the webview is closed. We noticed that when you tap on the "App Selector" on android to see all active apps, the webview (chrome custom tab) shuts down, and doesnt persist.

How do we stop that from happening as users need to access their emails to get the OTP, then return to our app to input it?

Thanks!

AdamAH avatar Jul 31 '23 19:07 AdamAH

Same problem, do you have an idea to fix it? I tried to rewrite custom tabs code in plugin, and managed to run browser that is not closed when switching apps, but it persists as a separate app in app selector, and user can return to main app, which leads to auth error.

adminant avatar Jan 18 '24 12:01 adminant

I'm seeing this issue as well when users have to leave the authenticating app to approve a DuoMobile MFA request. Any fixes yet?

ScottAtRedHawk avatar Mar 18 '24 15:03 ScottAtRedHawk