-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebView Browser stays open after successful call to FlutterWebAuth2.authenticate Android #33
Comments
That's a tricky thing. Maybe it can be done, but I am unsure as of now. |
According to this issue: aboutyou/dart_packages#162 |
Hi @ThexXTURBOXx, I wonder do you have any updates regarding this issue? |
I already tested most of the flags, but no matter which combination I chose, there will always be some user who will complain. |
I appreciate your efforts and agree that probably each case would require a unique approach to handle it, but I am still wondering whether we could at least improve the handling of Android Custom Tabs, taking into account the mentioned examples. |
I have ran into this issue recently, would it be possible to supply a "hideBrowserHistory" flag into the authentication flow and keep the default as it is now ? I think in most cases the end user seeing an extra app spawned in the recent app menu would be a little confusing |
I am a bit reluctant to add another flag to the current I need to think a bit more about all of this |
The intent flags can now be adjusted using the |
Describe the bug
This is the same report as this bug on flutter_web_auth: LinusU#133
It also exists on this package, so I thought I would report it here
On android, if you successfully authenticate with FlutterWebAuth2.authenticate, when you are redirected back to the app, the browser tab used to authenticate you is still open in the app switcher. This tab is no longer needed so I think it should be closed?
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
I think that after a successful .authenticate, the browser tab should be closed as it is no longer needed
Screenshots
Device (please complete the following information!)
flutter_web_auth_2
version: 2.0.0Additional context
I know that preferEphemeral: true makes the tab close, but it also closes the tab if the user goes to a different app during the login (e.g. to copy a password/mfa code) I think that either Ephemeral tabs should stay open during the login process, or normal tabs should close upon a successful .authenticate
Checklist
Any help is appreciated thanks.
The text was updated successfully, but these errors were encountered: