gpt4 book ai didi

node.js - FCM 错误结果 - 将错误引用到 token

转载 作者:搜寻专家 更新时间:2023-10-31 23:58:46 25 4
gpt4 key购买 nike

通过fcm(通过nodejs firebase admin 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 的 token 数组的索引有关?

最佳答案

是的,如所述here :

results Array of objects representing the status of the messages processed. The objects are listed in the same order as the request (i.e., for each registration ID in the request, its result is listed in the same index in the response).

关于node.js - FCM 错误结果 - 将错误引用到 token ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45141388/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com