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

前端 未结 8 837
温柔的废话
温柔的废话 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

    0 讨论(0)
  • 2021-02-05 12:52

    If you are published app to google play store and then show this error:

    [ Requests from this Android client application com.x.x are blocked. ]
    

    Here a solution to solve your problem very easily.

    1. Open google play console -> https://play.google.com/apps/publish
    2. Got to your specific app which app show error.
    3. Then go Setup -> App signin
    4. And finally you got your SHA-1 certificate fingerprint

    To find your SHA-1 certificate fingerprint, 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. And change your all SHA-1 certificate fingerprint.

    0 讨论(0)
提交回复
热议问题