Google sign in not working after making signed ( release ) APK | DEVELOPER_ERROR | error code 10 | react-native and firebase | android app

react-native and firebase 

Hello friends in my project i have used firebase google signin with my react native app. its working in debug mode but when i created release apk then it started giving me an error like DEVELOPER_ERROR.

Solution DEVELOPER_ERROR ( error code 10 ) :- 

1. check package name used in firebase is same as your app package name (if no app found with that pacakage name then you can add app with your package name in firebase settings page using Add app button. just click on it add app name, packagename and that's it and download latest google-service.json file from there and replace it in android/app folder)

2. to get release sha1 key use command inside android/app :- 

keytool -exportcert -keystore your_key_name.keystore -list -v 

3. to get debug sha1 key use command inside android/app :- 

keytool -exportcert -keystore debug.keystore -list -v

4. to get debug SHA1 key from android folder 

cd android && ./gradlew signingReport

variant:- debug

5. SHA1 key copy and add those three keys on firebase console. 

Project settings in firebase that's it you done with it. now delete build folder from android/app and create release apk file and check. 

Hope it will help you thanks for reading 

keep coding.

Post a Comment

Previous Post Next Post