-
Notifications
You must be signed in to change notification settings - Fork 4k
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
🐛 [flutterfire_ui] GoogleProviderConfiguration.clientId
should be nullable
#8440
Comments
Labeling for further insights from the team. /cc @lesnitsky |
@blaugold are you using |
Unfortunately, I need to use both because |
Would you be able to test if flutterfire_ui google sign in works with your PR on top? |
And it's also confusing to debug as the crash error says you should add the Should probably have higher priority as it can't be used on iOS without making manual changes to the plugin code. |
Sorry about the late reply. I was hoping that the mentioned PR would be merged sooner, but it is still open. Irrespective of the PR, |
Either this or it could just not be passed to the |
Bug report
Describe the bug
When
GoogleProviderConfiguration.clientId
is always set to the Web client ID, as suggested by the docs forGoogleProviderConfiguration
, the app crashes on iOS during sign in because the Web client ID does not match the iOS client ID.GoogleSignIn
officially only supportsclientId
for the Web platform, but seems to initialize the native SDKs with it as well.A better name for the property might have beenGoogleProviderConfiguration.webClientId
which would only be passed toGoogleSignIn
on the Web platform, since the other platforms don't require manual specification of the client ID anyway.Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: