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]: Configure webClientID in android but get error: 10 DEVELOPER_ERROR #1233

Closed SnowingFox closed 5 months ago

SnowingFox commented 5 months ago

It's hard to reproduce

Problem

I use google-signin with expo-dev-client, and my app will post to google play store, in Android, i use webClientID, and configure it in google console,and configure it like this

GoogleSignin.configure({
    webClientId: "xxxxx.apps.googleusercontent.com",
    iosClientId: "xxxxx.apps.googleusercontent.com",
})

When i first to use webClientID in Android, it works well, but when i post my .aab bundle to Google App Store,it gave me an error that my SHA-1 is not correct, so i found a docs in expo-docs,i follow these steps, and upload my bundle success. But in Android, the google login can't works, so i don't know how to solve this problem, could any one can help me?

Is webclientID need to configure SHA-1?

tushe-tv commented 5 months ago

I have the same issue. I just published my app to google play and when I try to login - getting the same error.

vonovak commented 5 months ago

Hello and thanks for asking, please read the docs 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 🙂

hector-nguyen-vmo commented 5 months ago

I have try following the FAQ, still not work on aab from play store.

Debug: work fine. Release in apk: work fine. ABB from Play Store: not working.

SHA1 app signing from console Screenshot 2024-01-15 at 14 49 23

Firebase console Screenshot 2024-01-15 at 14 50 50

Screenshot 2024-01-15 at 14 52 04

Engazan commented 5 months ago

Hello and thanks for asking, please read the docs 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 🙂

i checked it but cant find solution, cuz there is only firebase one (but i dont use firebase), guides tell you add to firebase witch mean its only for firebase solution :/

Engazan commented 4 months ago

Hello and thanks for asking, please read the docs 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 🙂

i checked it but cant find solution, cuz there is only firebase one (but i dont use firebase), guides tell you add to firebase witch mean its only for firebase solution :/

btw there is way to do it ...

  1. go to google play console
  2. select your app
  3. find Settings -> Login settings
  4. copy first SHA you see
  5. go to google cloud console
  6. find Credentials
  7. create Credentials -> OAuth Client ID 8 select "Android" paste your copied SHA-1 key 9. IMPORTANT Click Verify
  8. Save