Skip to content
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

Fixed a google sign-in issue #1411

Closed

Conversation

SandaruEARL
Copy link

Screenshot_20250315_224042
Fix Google Sign-In "Open With" Pop-Up Issue in _beginWebAuth

This PR fixes a misbehavior in the _beginWebAuth method in login.dart where clicking on a Google account during sign-in would trigger an "Open With" dialog, prompting users to choose an email app (Gmail, Outlook, etc.) instead of proceeding with authentication.

Issue: On the first click, the "Open With" menu appears, causing confusion. However, on the second click, authentication proceeds correctly.
Fix: The authentication URL now always opens in an external browser (LaunchMode.externalApplication), preventing the unwanted pop-up and ensuring a smooth login experience.
Impact: Users can now sign in with Google without being interrupted by the "Open With" pop-up.

@gnprice
Copy link
Member

gnprice commented Mar 15, 2025

Thanks for the report. Would you please open an issue for this, and describe in more detail exactly what you did that led up to getting this unexpected prompt?

I just tried to reproduce the issue, and it didn't reproduce — the flow worked normally as expected, with no prompt for an email app. A detailed set of steps will be helpful for making it possible to reproduce what you're seeing.

After we better understand the issue, we can determine the right fix. A priori, I don't see why changing from having the browser appear in the app to externally would have any effect on this — and it would make the UX more cumbersome for everyone who's not running into this issue.

@gnprice gnprice closed this Mar 15, 2025
@SandaruEARL
Copy link
Author

SandaruEARL commented Mar 15, 2025 via email

@SandaruEARL
Copy link
Author

SandaruEARL commented Mar 16, 2025 via email

@SandaruEARL SandaruEARL deleted the google_signin_misbehavior_fix branch March 16, 2025 13:34
@gnprice
Copy link
Member

gnprice commented Mar 26, 2025

For cross-reference, it looks like this became the following issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants