Firebase Auth: Requests from this Android client application com.xxx are blocked

前端 未结 8 811
温柔的废话
温柔的废话 2021-02-05 12:08

I\'m implementing the standard tutorial for Firebase AuthUI in my android app. However, when testing I try to sign-in using Google sign-in from within the app and get the follow

8条回答
  •  隐瞒了意图╮
    2021-02-05 12:52

    I noticed that for some reason on my Google Credentials API Key restriction, my SHA-1 fingerprint wasn't included.

    To find your API Key, go to console.cloud.google.com/apis/credentials?project=. Or go to the console.cloud.google.com -> Click on the hamburger icon on the top left -> APIs and Services -> Credentials

    Choose the API Key that you're using. -Under "App Restrictions", choose "Android Apps" (If you're build an Android app for example) -Under "Restrict usage to your Android apps", Click "Add an item" -Enter your package name and your SHA-1 Fingerprint

    To know how to find your SHA-1 Fingerprint, LINK

    The signingReport task may be under Gradle(on the right vertical band) app -> tasks -> android

提交回复
热议问题