Skip to content Skip to sidebar Skip to footer

Add Sha-1 From Production Certificate For Gcm/fcm

I have an app that is using FCM. I've added package to the FCM and it said 'Debug signing certificate SHA-1 (optional)', so everything works as expected. Now I'm preparing it for t

Solution 1:

Do I need to provide a SHA-1 when adding an Android app?

A SHA-1 is only required if you are using either Firebase Invites or Firebase Dynamic Links. Adding a SHA-1 to your project simplifies the Google Sign-In configuration with Firebase Authentication.

If you're not using these features, you don't have to provide a SHA-1.

Ref: https://firebase.google.com/support/faq/

Solution 2:

Yes, you must add SHA-1 of release certificate. you can add SHA-from settings button Firebase Project Settings

and then add fingerprint: enter image description here

you can have both SHA-1 of debug and release certificate. so the app will work both in debug and release mode.

Solution 3:

As this was an optional field if you added any value of SHA1 it means it will become that SHA 1 dependent only so as far as you change signing config sha1 will need to change, however you can remain field empty if you want to work it on both.

Post a Comment for "Add Sha-1 From Production Certificate For Gcm/fcm"