-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[google_sign_in] Fix "pick account" on iOS #2587
Conversation
Sign-in flow was always forcing user to fill email and password, the null check fixes the account picker, so the flow suggest Google Accounts already signed-in on iOS device. flutter/flutter#48602
Cc @cyanglaz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the version updates. Thank you so much for fixing this! Do you think you can add tests for this?
@@ -1,5 +1,6 @@ | |||
## 4.1.5 | |||
|
|||
* Fix flutter/flutter#48602 iOS flow shows account selection, if user is signed in to Google on the device. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might need to rebase and fix the version.
Sure I think it might be possible to mock GoogleSignIn iOS library and do at least a unit test for the plugin that it sends "nil" to GoogleSignIn iOS library if the hostedDomain is not set (and correct hosted domain if it is set). |
#2599 is setting up unit test in iOS and android as well as adding some tests. You can follow that pattern when it is landed. |
this is must have for an app that have social login. What is needed in order to merge this one? Could I help with something? |
Hi can this be merged already its a real issue that affects my apps UX |
Hi @JanKn, it's been a while since the unit tests are set up for the plugin. Do you plan to add tests for this PR? I can land it after you adding the tests. |
@atrope what I can recommend for now is to fork the plugin; I'm doing this right now and it works pretty well Sample fork:
|
Can this be merged please this is a huge UX issue and blocker for our app. 🙏 |
@cyanglaz Which test should be done on this PR so it get merged? Just like it does not have tests for "clientId" i don't see which tests we have to create for this change.. |
@atrope I was looking at it myself couple of weeks ago. My main issue for me was to actually run the tests in the latest XCode (I am mostly Android dev and I did not find any documentation on how to run tests on this project). To check: I did not have much time to investigate it more, thanks for help. |
@cyanglaz this is a one liner PR affecting a major UX.. I Can't believe 1 liner code should take this long to reach master.. |
@atrope We should add a test to check if |
Any news? |
Description
iOS Google Sign-in flow was always forcing user to fill email and password, the null check fixes the account picker, so the flow suggest Google Accounts already signed-in on iOS device.
Related Issues
Fixes: flutter/flutter#48602
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?