我使用以下json数据向https://fcm.googleapis.com/fcm/send
发出请求:
{
"to": "/topics/push_topic",
"data" : {
"language": "tr,en_us",
"ticker": "...",
"tickerEnglish": "...",
"body": "...",
}
}
我收到的回复如下(邮件发送成功):
{
"message_id": xxxxxxxxxxxxx
}
但是根据文档,我应该收到如下的回复:
{
"multicast_id": 216,
"success": 3,
"failure": 3,
"canonical_ids": 1,
"results": [
{ "message_id": "1:0408" },
{ "error": "Unavailable" },
{ "error": "InvalidRegistration" },
{ "message_id": "1:1516" },
{ "message_id": "1:2342", "registration_id": "32" },
{ "error": "NotRegistered"}
]
}
那么,为什么我在回复中看不到成功和失败变量?那是因为我将消息发送给某个主题吗?
感谢。