如何从Rest API向用户群发送数据消息 [英] how to send data message to user segment From Rest API
问题描述
我正在使用高级REST API发送数据消息以进行推送通知. 在Firebase控制台中,我可以选择用户细分 如版本",语言",国家/地区"等.但是如何为 从REST API发送数据消息? 还是他们使用选择用户群"发送数据消息的任何其他方式? 我也想向几天未打开应用程序的用户发送通知.Firebase数据消息可能吗?
I'm using Advanced REST API to send data message for push notification. In firebase console i can select user segment as "Version","language",Country" etc..But how to select user segment for Data message sent from REST API? Or is their any other way to use select User segment for data message? Also i want to send the notification for the user who has not opened app for few days.Is it possible with firebase data message?
推荐答案
在使用FCM rest API发送消息时,您无法定位到Google Analytics(分析)用户群.您只能发送到由其唯一令牌标识的设备,或发送到订阅了客户端应用程序的主题.向用户群发送消息的唯一方法是通过Firebase控制台.
When using the FCM rest API to send message, you can't target Analytics user segments. You can only send to devices identified by their unique token, or to topics where the client app is subscribed. The only way to send a message to a user segment is through the Firebase console.
这篇关于如何从Rest API向用户群发送数据消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!