Flutter Google Sign and Phone Auth error after publishing the app com.google.android.gms.common.api.b 10
Solution 1
Google sign in and phone authentication were working fine in debug and release mode.
If you are absolutely sure about this, and that they debug and release keys were added to Firebase. Then the situation you are facing now can be explained by using a different key for your app store.
If you have opted in of google automatically manage signing, then it will have probably signed your app with a different signature than the one you currently have added to firebase console.
Log into your developer console, find the key being used to sign your app, and add that to Firebase, along with the existing keys.
This should\can be solved without having to publish a new release.
Solution 2
The solution is that given by Huthaifa Muayyad. I did what he said and it work.
Thanks.
Vincent
Updated on December 29, 2022Comments
-
Vincent over 1 year
Google sign in and phone authentication were working fine in debug and release mode. But after publishing the app in play store, Google sign in produce the following error:
com.google.android.gms.common.api.b 10
Any suggestion is welcome. Thanks.
-
Krish Bhanushali almost 3 yearsdid you add the release sha-1 to firebase ?
-
Huthaifa Muayyad almost 3 yearsis this on Huawei devices by any chance? Or all android devices in play stores?
-
-
Huthaifa Muayyad almost 3 yearsThis will most likely not solve the issue, because they were working during development. So the plugins have been indeed installed, and the workflow was fine. It's something related to the signing certificates.
-
Vincent almost 3 yearsThank you. I have opted for google automatically signing. I did what you said and it work. Thank you.
-
Huthaifa Muayyad almost 3 yearsYou're most welcome, Vincent. Kindly consider marking it as the correct solution to your questions, thanks!