Add SHA-1 from production certificate for GCM/FCM

ε祈祈猫儿з 提交于 2020-01-04 07:35:08

问题


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?


回答1:


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

and then add fingerprint:

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




回答2:


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/




回答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.



来源:https://stackoverflow.com/questions/40557218/add-sha-1-from-production-certificate-for-gcm-fcm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!