Search code examples
androidgoogle-cloud-messagingfirebase-cloud-messagingandroid-signing

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 the release and wonder do I need to change this SHA-1 certificate to value from the release certificate or it's not required and for release I should leave everything as it is?


Solution

  • 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.