- Created an app which uses react-native-google-signin to login to the app with google login
- Created a keystore for to sign my app, as is described here
- Signed my app and uploaded into Google Playstore
- When I was asked if I want to opt-in for the
Google Play App Signing, I agreed
- When I was asked if I want to opt-in for the
- If I try to login to my app (downloaded from the playstore), I'm getting an error
messsage: DEVELOPER_ERROR,error code: 10
Note1: my app does not use firebase
Note2: if I install the apk directly into my device, the login seems to work
I'm sure the problem has something to do with how the application is signed with Google Play App Signing but I'm not able to isolate the issue
Update:
- Downloaded the
google-services.jsonfrom here and added it under/android/appand now the app works if I download it from the release management page and install it manually. Still doesn't work if I install it directly from the Google Play Store though.
Solution:
google-services.json, theApp signing certificateSHA-1 certificate fingerprintneeds to be provided; I was providing theUpload certificate'sSHA-1 certificate fingerprintwhich is why it wouldn't work on production.App Signing certificateand one with theUpload certificateand one oauth client id of typeweband in while usingreact-native-google-signinyou need to specify thewebClientId.