firebase - AuthenticationError 使用 Firebase Cloud Messaging 发送通知

标签 firebase firebase-cloud-messaging

当我使用 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/

相关文章:

ios - 使用 firebase 云消息传递中的 swift 无法将通知接收到 iPhone

swift - 在 Swift 2 中发起 HTTP POST 请求

android - 为 FCM 存储 token

java - 如何获取Uri值?

android - Firebase 多个子监听器

ios - 如何正确检索 firebase 数据库?

java - 我想在我的集合的所有文档中保存相同的字符串

android - FirebaseMessagingService 11.6.0 处理 Intent

ios - 如何在使用 swift 杀死应用程序时存储 ios 推送通知

android - com.parse.fcm.ParseFirebaseInstanceIdService' 不可分配给 'android.app.Service'