Firebase UI - facebook,google and email login not working

前端 未结 1 2094
谎友^
谎友^ 2021-01-29 11:19

I\'m using firebase ui in my app for login. everything works fine when i run it in debug mode - no errors at all. I\'m running it through my cellphone and it works fine!

相关标签:
1条回答
  • When you use the debug mode, the signing key used is for debugging only, it is a debug sign-in key. For published apps, your signing key should be the one used in the Play Console.

    If you've published your app successfully to the Play store then you've already generated the required SHA-1 certificate fingerprint. And, yes it is the release-signing key which is required for published apps.

    Here's how to get the required signing key from your Google Play Console:

    1. Log into your Google Play Console.
    2. Select your app from the listing.
    3. On the left-hand side menu select "Release Management" with the rocket icon.
    4. Select "App signing" from the expanded "Release Management" menu.
    5. In the "App signing certificate" section you will see the SHA1, SHA256 and MD5 certificate fingerprints. Copy the one you need and use it.

    You will also need to add this SHA1 fingerprint to your Firebase Console:

    1. Log into your Firebase Console.
    2. Select your Firebase Project.
    3. Go to "Project Settings" the gear icon next to your Project Overview button on the left-hand side menu.
    4. In the General tab, scroll down to "Your Apps" section which has the project details listed. You'd have had to download the google-services.json from here earlier.
    5. Add your release SHA1 fingerprint here.
    6. Download a fresh copy of the google-services.json file.
    7. Use this newer json file with your project instead of the older one, as you've changed Firebase configuration and will need to recompile the app.

    Hope this helps.

    Useful Links:

    https://developer.android.com/studio/publish/app-signing

    How to enable Google Play App Signing

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