react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.12k stars 877 forks source link

[Android] DEVELOPER_ERROR with code 10 #1230

Closed rsuubinn closed 6 months ago

rsuubinn commented 6 months ago

I use React Native cli. I followed setting in this documentation. (https://react-native-google-signin.github.io/docs/setting-up/android)

스크린샷 2023-12-27 오후 3 12 38 스크린샷 2023-12-27 오후 3 10 20

스크린샷 2023-12-27 오후 3 08 08

I registered all three keys in Firebase. I registered the key in firebase and placed the google-service.json file inside android/app folder.

스크린샷 2023-12-27 오후 3 14 18

스크린샷 2023-12-27 오후 3 16 26 스크린샷 2023-12-27 오후 4 01 11

스크린샷 2023-12-27 오후 3 15 56 스크린샷 2023-12-27 오후 3 16 06

It works fine in debug or release mode without any problems. However, I face this problem when I generate .aab file and run this app released on the Play Store and try to log in with Google.

스크린샷 2023-12-27 오후 3 45 39

Environment

"react-native": "0.72.5" "@react-native-google-signin/google-signin": "^10.1.1" node: v18.17.1

rboy0509 commented 6 months ago

i have same problem but with expo . My response : {"nativeStackAndroid":[],"userInfo":null,"message":"DEVELOPER_ERROR","code":"10"}

vonovak commented 6 months ago

Hello and thanks for asking, DEVELOPER_ERROR is always a configuration mismatch. Please see the instructions here https://react-native-google-signin.github.io/docs/troubleshooting#google-login-does-not-work-when-downloading-my-app-from-the-play-store

Thank you 🙂

rsuubinn commented 6 months ago

i have same problem but with expo . My response : {"nativeStackAndroid":[],"userInfo":null,"message":"DEVELOPER_ERROR","code":"10"} 스크린샷 2023-12-28 오후 3 10 46

Have you ever had your app signing key reissued? After looking through the registered issues, I finally found a solution. Go to the google play console, sort the app signing key into legacy rather than the latest, and then register the SHA-1 fingerprint of the app signing key that appears in firebase. This was of great help to me.

@vonovak I wonder if I need to register a legacy key rather than the issued key. I think this part is wrong.

bweston92 commented 6 months ago

Getting the same, checked SHA1 fingerprint of the APK and package name and all match Firebase.

SnowingFox commented 5 months ago

i have same problem but with expo . My response : {"nativeStackAndroid":[],"userInfo":null,"message":"DEVELOPER_ERROR","code":"10"}

have you solve this problem?

utyfua commented 5 months ago

If you are using firebase you actually need to add google as Sign-in method in Firebase itself (Build -> Authentication -> Sign-in method, see screenshot below). If you have already created an app already you will be prompt for fingerprints and after you will get a new google-services.json which you need to use in your app instead of old one.

If this was helpful, please let everyone know about. If I was not only me I will try to bring this to the documentation.

image

bweston92 commented 5 months ago

@utyfua this is exactly what resolved it for me.

cliffgor commented 5 months ago

I am getting developer Error when doing internal testing for my Android app. i followed the instructions of using my playstore signin key on firebase but the issue still persists

cliffgor commented 5 months ago

Thanks @rsuubinn Your solution for using the legacy key works, I don't know if @vonovak would have an update for this fix or add it to the documentation

rsuubinn commented 5 months ago

Thanks @rsuubinn Your solution for using the legacy key works, I don't know if @vonovak would have an update for this fix or add it to the documentation

I'm glad it helped you. Have a nice day!

katwal-dipak commented 4 months ago

Hello and thanks for asking, DEVELOPER_ERROR is always a configuration mismatch. Please see the instructions here https://react-native-google-signin.github.io/docs/troubleshooting#google-login-does-not-work-when-downloading-my-app-from-the-play-store

Thank you 🙂

DEVELOPER_ERROR with code 10 in android with .aab file. Though it works fine with apk file. I am in v 14.0.0 and I am not using firebase for google signIn. I am using SHA-1 certificate fingerprint from google play setup > App signing.

It seems SHA-1 certificate fingerprint from upload-key always throws this error (only with .aab file), but works fine with production SHA-1 certificate fingerprint

phuocantd commented 2 months ago

Hello and thanks for asking, DEVELOPER_ERROR is always a configuration mismatch. Please see the instructions here https://react-native-google-signin.github.io/docs/troubleshooting#google-login-does-not-work-when-downloading-my-app-from-the-play-store Thank you 🙂

DEVELOPER_ERROR with code 10 in android with .aab file. Though it works fine with apk file. I am in v 14.0.0 and I am not using firebase for google signIn. I am using SHA-1 certificate fingerprint from google play setup > App signing.

It seems SHA-1 certificate fingerprint from upload-key always throws this error (only with .aab file), but works fine with production SHA-1 certificate fingerprint

same here, It work in debug and apk but when I upload aab then error with DEVELOPER_ERROR

bzliu94 commented 1 month ago

Able to deal with this with Expo by making sure app.json android.package_name matches package name at Google Console for a OAuth 2.0 Client ID credential record (for Android).