0

I am using react-native-google-signin / google-signin . Google-signin is working as expected in Debug mode. But In Release mode some times getting Developer Error. I have done configuration according to this SO answers.

IF I get Developer Error in each and every login then I can check for any configuration mistakes. But in my case, in debug mode every time it's working as expected. In Release mode some times it's working , some times it's giving Developer Error.

  1. Am I missing any additional configuration steps?

or

  1. Is App unable to get webclientid sometimes?(I am just raising this concern based on what's happening in my app).
ThinkAndCode
  • 1,319
  • 3
  • 29
  • 60

1 Answers1

0

As you are missing SHA-1 certificate in Firebase from Playstore which is causing you this issue.

You can get SHA-1 to Playstore by going to Release Managment > App signing and add this this firebase console aswell.

P.S: Don't remove the previous one

Xhirazi
  • 735
  • 4
  • 15
  • I found a strange thing that, once I login into debug app and delete, then download from playstore and try to login it works fine. But for the first time if I try to login into play store app then google sign in won't work. what could be the reason? – ThinkAndCode Sep 03 '21 at 05:31
  • I found that SHA-1 certificate in firebase and playstore are different. But there is no option to add update SHA-1 certificate. – ThinkAndCode Sep 03 '21 at 10:19
  • can you regenerate SHA-1 and verify which one is correct? – Xhirazi Sep 03 '21 at 10:56
  • If I regenerate SH1-1 won't be there any problem to update the app next time? – ThinkAndCode Sep 03 '21 at 11:09
  • No. But if you change keystore for apk update it wont hapen – Xhirazi Sep 03 '21 at 11:11
  • And SHA can only be generated by keystore/keytool. Please confirm which SHA-1 is correct either firebase or playstore – Xhirazi Sep 03 '21 at 11:37
  • then you need to change SHA-1 in Playstore. – Xhirazi Sep 07 '21 at 11:56
  • But As I said earlier, There is no option update or add new SHA-1. DO you aware of updating or adding new SHA-1 in playstore? – ThinkAndCode Sep 09 '21 at 06:39
  • My Bad. Actually you need to copy SHA-1 from Playstore and add this it to firbase aswell (don't remove previous one) – Xhirazi Sep 09 '21 at 12:13
  • I have update the answer. please let me know if it can help. – Xhirazi Sep 09 '21 at 12:15
  • "I found a strange thing that, once I login into debug app and delete, then download from playstore and try to login it works fine. But for the first time if I try to login into play store app then google sign in won't work. what could be the reason?" I am experiencing exactly this. I have copied the Play App Signing key SHA1 to google cloud and firebase but still no luck. – Pila Feb 10 '23 at 11:49