【发布时间】:2019-10-13 14:46:22
【问题描述】:
如果应用程序安装在 10 台设备中,那么 FCM 通知如何发送到其中一台设备。
【问题讨论】:
-
您知道如何从 Firebase 控制台发送通知吗?
-
使用设备id,最好的方式来写一个云函数
标签: android firebase push-notification firebase-cloud-messaging
如果应用程序安装在 10 台设备中,那么 FCM 通知如何发送到其中一台设备。
【问题讨论】:
标签: android firebase push-notification firebase-cloud-messaging
最简单的方法是发送带有主题的通知。
为一台设备订阅这样的主题: FirebaseMessaging.getInstance().subscribeToTopic("weather");
更多信息here。
【讨论】: