首页 > 解决方案 > FCM 通知在 iOS Cordova 应用程序中突然停止工作

问题描述

FCM 消息在 2 天前被传送到 iOS 应用程序。但是从昨天开始,当应用程序通过 Xcode 直接在设备上运行时,我们遇到了一个奇怪的错误。AppStore 上已有的应用程序正在接收推送通知

使用的插件:cordova-plugin-firebase

FCM 服务器返回以下错误:

{
  "results": [
    {
      "error": {
        "code": "messaging/registration-token-not-registered",
        "message": "The provided registration token is not registered. A previously valid registration token can be unregistered for a variety of reasons. See the error documentation for more details. Remove this registration token and stop using it to send messages."
      }
    },
    {
      "error": {
        "code": "messaging/registration-token-not-registered",
        "message": "The provided registration token is not registered. A previously valid registration token can be unregistered for a variety of reasons. See the error documentation for more details. Remove this registration token and stop using it to send messages."
      }
    }
  ],
  "canonicalRegistrationTokenCount": 0,
  "failureCount": 2,
  "successCount": 0,
  "multicastId": 6313090191389462000
}

Xcode 版本:版本 10.0 (10A255)

通过 Firebase 控制台触发通知时变得相似 Firebase 控制台

标签: iosfirebasecordovafirebase-cloud-messagingcordova-plugin-fcm

解决方案


推荐阅读