当我使用 PostMan 向 https://fcm.googleapis.com/fcm/send 发送请求时 用这个 body
{
"data": {
"notification": {
"title": "notification.newcomment.title",
"body": "notification.newcomment.body",
"click_action": "/video/a2df5da5-a0d8-4a27-1588-08d64fb9bf88",
"icon": "null"
}
},
"to": "xxxxx"
}
我从 Firebase 收到了这个回复:
{
"multicast_id": 6589525169180682671,
"success": 0,
"failure": 1,
"canonical_ids": 0,
"results": [
{
"error": "AuthenticationError"
}
]}
我不明白 AuthenticationError 的问题是什么。
最佳答案
现在可以了。 我认为这是一个 Firebase 问题,因为我没有更改请求中的任何内容。
关于firebase - AuthenticationError 使用 Firebase Cloud Messaging 发送通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53632124/