Is Firebase Cloud Messaging authentication necessary?

白昼怎懂夜的黑 提交于 2019-12-12 04:20:51

问题


I have server in php with custom user authentication. I'm trying to create chat with Firebase, and after reading docs I'm still confused id I need to authenticate my users for Firebase, and if so should I do it with signInWithCustomToken?

Any other tips on how should I proceed are welcome. Thank you.


回答1:


There is no need to authenticate users for them to receive FCM messages.

You do need to pass the FCM Server key to send messages to devices however. You can see an example of that in the Authorization header here: https://firebase.google.com/docs/cloud-messaging/send-message



来源:https://stackoverflow.com/questions/44187525/is-firebase-cloud-messaging-authentication-necessary

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