LinusU / LinusU/flutter_web_auth

Android auth web session terminates when opening other apps

Open
#158 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
213
Forks
261
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Android authentication flow that opens the WebView or Chrome Custom Tab, then reproduce switching to Gmail and returning through the Android app selector. Done means the auth session remains available so users can return to the app and enter the OTP.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
authentication, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.