【发布时间】:2016-10-08 15:11:22
【问题描述】:
我为 FCM 准备了接收器,可以向所有设备发送通知。
gcm-http.googleapis.com/gcm/send 可以通过此链接发送给已注册的目标用户并发布到目标设备,如下 json :
{
"notification": {
"title": "sample Title",
"text": "sample text" },
"to" : "[registration id]"
}
但是,我需要向我选择的目标用户发送通知, 通过电子邮件或姓名...等。 例如:
{
"notification": {
"title": "sample Title",
"text": "sample text" },
"to" : "[email or name or sex ...]"
}
我该怎么做? 我需要创建一个网络服务器或其他东西吗?
【问题讨论】:
标签: android notifications firebase google-cloud-messaging firebase-cloud-messaging