在 Firebase 控制台中,我看到了使用应用“com.example”(其中 com.example 是应用名称)向 User Segement 发送通知的选项。
如图所示:
但是如何使用 FCM REST API 从服务器端执行此操作:
最佳答案
不幸的是,它是not possible to send messages to User Segments using the FCM REST API .
作为替代方案,您必须使用其他方式来 send messages to multiple devices ,就像简单地使用 registration_ids
参数和 Topics Messaging(我认为这对您的用例来说是最可取的)。
以下是如何发送此 using Postman 的示例或 cURL .
关于android - 从服务器向安装应用程序的用户群发送通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41329990/