-1

Google sign-in works in virtual and physical test devices. (I get no error in test environment.) but when I publish the app, Google sign in fails. everything done by Firebase Docs. I think if I had a mistake in code, it must not work in AVD too. I have added both debug and release SHA1 fingerprints to firebase project setting.

any idea please?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • I think this **[answer](https://stackoverflow.com/questions/51360250/firebase-ui-authentication-with-google-fails-with-message-code10-message10/51360406)** might help. – Alex Mamo Dec 27 '20 at 15:04

1 Answers1

1

-make sure that your release and debug bundle identifier should be the same it happens when your release bundle identifier is different

and make sure you implement BOM bill of material it is necessary from the latest versions of firebase

implementation platform('com.google.firebase:firebase-bom:26.2.0')

. If need be, create a new OAuth Client, new configuration file (the google-services.json) file and do everything step-by-step.

Also try adding a Web Client giving the same credentials. And for Android as well as Web client give both the SHA1 for debug as well as the release keystores. In Android Studio, at extreme left you will see a tab saying "Build Variants". Select the release mode there and do everything after that.

saqib kafeel
  • 296
  • 3
  • 8