【发布时间】:2018-01-18 15:12:01
【问题描述】:
我想出了如何使用 Firebase Cloud Messaging 发送和接收 Firebase 推送通知
我想知道如何使用 android studio 中的代码手动发送通知,以便我可以从任何手机发送。
【问题讨论】:
-
你可以使用firebase函数见例子github.com/firebase/functions-samples/tree/master/…
-
在使用 FCM 时,强烈建议不要从客户端设备发送消息。这是因为您必须将 Server Key 存储在客户端,这不是正确的使用方法,并且可能会被未经授权的用户暴露和利用。
标签: android firebase firebase-cloud-messaging