Flutter Google Sign and Phone Auth error after publishing the app com.google.android.gms.common.api.b 10

212

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.

Share:
212
Vincent
Author by

Vincent

Updated on December 29, 2022

Comments

  • Vincent
    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

    enter image description here

    Any suggestion is welcome. Thanks.

    • Krish Bhanushali
      Krish Bhanushali almost 3 years
      did you add the release sha-1 to firebase ?
    • Huthaifa Muayyad
      Huthaifa Muayyad almost 3 years
      is this on Huawei devices by any chance? Or all android devices in play stores?
  • Huthaifa Muayyad
    Huthaifa Muayyad almost 3 years
    This 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
    Vincent almost 3 years
    Thank you. I have opted for google automatically signing. I did what you said and it work. Thank you.
  • Huthaifa Muayyad
    Huthaifa Muayyad almost 3 years
    You're most welcome, Vincent. Kindly consider marking it as the correct solution to your questions, thanks!