【发布时间】:2017-12-09 05:30:42
【问题描述】:
早安,
我正在尝试使用 FCM 中的此 URL 发送消息:
https://fcm.googleapis.com/fcm/send
带有标题的
Authorization value of **key:*Key from Firebase Console***
Content-Type: **application/json**
正文由以下组成:
{
"to" : "MyKey generated",
"notification" : {
"body" : "Hey",
"title" : "Hey"
}
}
但我总是收到的结果是这样的:
{
"multicast_id": 7942550122547405787,
"success": 0,
"failure": 1,
"canonical_ids": 0,
"results": [
{
"error": "MismatchSenderId"
}
]
}
我得到的服务器密钥来自这里:
我的 URL 参考是 FCM 服务器中的文档。
我正在 Postman 中对此进行测试。我错过了什么?谢谢
【问题讨论】:
-
这能回答你的问题吗? FCM getting MismatchSenderId
标签: android firebase push-notification google-cloud-messaging firebase-cloud-messaging