Google Sign In error 12500

前端 未结 30 3782
时光说笑
时光说笑 2020-11-22 09:17

I am trying to integrate Google Sign In into my app. I don\'t have a back-end server, I am just getting the details of the logged on Google Account to my app.

I firs

相关标签:
30条回答
  • 2020-11-22 09:57

    Check if SHA-1 fingerprints are added to the firebase project settings. If not,find SHA-1 fingerprint using

    https://developers.google.com/android/guides/client-auth

    Also, find the SHA-1 fingerprint of release key using

    keytool -list -v -keystore <keystore path>
    

    Remove <keystore path> with the path of the key store.

    Then add both SHA-1 fingerprints to firebase projects settings.

    NB: Don't forget to replace google-services.json with updated google-services.json with new fingerprints. I lost two days on that.

    While debug

    Android studio automatically generate ~/.android/debug.keystore on first debug build and use it to sign the app.

    To get the SHA-1 run (password android) (doc):

    keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
    

    This SHA-1 should be added to the app settings at firebase to allow usage of google sign in capabilities while testing debug build.

    0 讨论(0)
  • 2020-11-22 09:57

    For me the problem was using a 'release' ClientID with my debug-configured app. Make sure you have a release and a debug keys, using each SHA-1's respectively.

    0 讨论(0)
  • 2020-11-22 09:58

    I'm using Firebase Authentication. My SHA-1 was indicated correctly, client id was also correct but I still was getting 12500.

    It turned out that my problem was that I didn't indicate Support email in my project settings. (Settings -> General tab -> Your project (Public settings) section).

    0 讨论(0)
  • 2020-11-22 09:58

    I experienced the same problem after opening my project on another computer (different Android Studio). In my case, I solved it using the Firebase Assistant, which I had used to setup Firebase initially. Opened the Firebase Assistant (Tools > Firebase) and selecting Authentication > Connect. This reconnected the project to Firebase and updated the configs

    0 讨论(0)
  • 2020-11-22 09:59

    The error appeared to me when the Google option was not enabled, as shown in image.

    It happened when I changed Google's account and forgot to turn on the option of connecting with Google.

    0 讨论(0)
  • 2020-11-22 10:00

    I was stuck of this for a while.

    Make sure these step are performed-

    • Correct SHA key is saved on Firebase Console.
    • Download the latest google-service.json
    • And Last and most important Save OAuth consent under credentials in google api, OAuth Screen This took a long to figure out. And it worked fine after this.
    0 讨论(0)
提交回复
热议问题