recently I published my app in Google Playstore and the thing is the google sign in is not working and returns Exception code: 10. The sign-in flow works fine in the debug mode while running the app on an emulator/physical device where I directly install that from android studio. But when I released the app in the Play Store now the sign-in is not working and it returned the error code: 10.
2
Answers
Besides the using correct SHA1 for the production build, also, make sure you set up the correct package name when configuring the Google API Console project https://developers.google.com/identity/sign-in/android/start-integrating#configure_a_project
When it comes to having a working Google sign-in mechanism when the app is in production, then you should take into consideration following the next steps:
Generate the SHA-1 fingerprint certificate for debug mode. You can also read more information in the following resource:
Generate the SHA-1 fingerprint certificate for release mode.
Generate the signing key for Google Play.
You might also take a look at: