简体   繁体   English

Firebase Cloud Messaging身份验证是否必要?

[英]Is Firebase Cloud Messaging authentication necessary?

I have server in php with custom user authentication. 我在php中使用自定义用户身份验证服务器。 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? 我正在尝试与Firebase创建聊天,阅读文档后我仍然感到困惑,我需要为Firebase验证我的用户身份,如果是,我应该使用signInWithCustomToken进行身份验证吗?

Any other tips on how should I proceed are welcome. 我们欢迎其他有关我应如何进行的提示。 Thank you. 谢谢。

There is no need to authenticate users for them to receive FCM messages. 无需认证用户即可让他们接收 FCM消息。

You do need to pass the FCM Server key to send messages to devices however. 但是,您确实需要传递FCM服务器密钥才能消息发送到设备。 You can see an example of that in the Authorization header here: https://firebase.google.com/docs/cloud-messaging/send-message 您可以在以下Authorization标题中看到一个示例: https : //firebase.google.com/docs/cloud-messaging/send-message

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM