通过fcm
(通过 NodeJS Firebase Administration SDK(发送推送消息时,得到以下错误结构:
{
"results": [
{
"error": {
"code": "messaging/invalid-registration-token",
"message": "Invalid registration token provided. Make sure it matches the registration token the client app receives from registering with FCM."
}
}
],
"canonicalRegistrationTokenCount": 0,
"failureCount": 1,
"successCount": 0,
"multicastId": SOME_ID
}
结果的索引是否与发送到 Firebase 的令牌数组的索引相关?
是的,如下所述:
结果表示所处理消息状态的对象数组。对象按与请求相同的顺序列出(即,对于请求中的每个注册 ID,其结果列在响应的同一索引中(。