Android Google SignIn not working in debug mode: GoogleSignInResult is false

后端 未结 6 955
我在风中等你
我在风中等你 2020-12-17 08:36

I have been following this tutorial to get Google SignOn going: https://developers.google.com/identity/sign-in/android/start-integrating

When I run my application lo

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-17 09:42

    As per this you need 3 SHA1 keys in Firebase project settings

    In most of the case, the problem is the third key.

    1. The debug key

      keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

    2. The release key

      keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64

    3. Google Play App signing key

      https://play.google.com/apps/publish/

      in your app's Release management > App signing > App signing certificate

      it's SHA1 key

    You need THREE keys to figure out ONE Google SignIn.

提交回复
热议问题