Google Sign In error 12500

前端 未结 30 3860
时光说笑
时光说笑 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 
    

    Remove 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.

提交回复
热议问题