voj*_*jta 6 android json firebase firebase-cloud-messaging firebase-notifications
我使用 Firebase Cloud Messaging 向我的 Android 客户端应用程序发送通知,每个通知应根据其注册令牌发送到单个设备。
每次我通过https://fcm.googleapis.com/fcm/send发送通知时,我都会收到这样的 JSON 响应:
{
"multicast_id": 108,
"success": 1,
"failure": 0,
"canonical_ids": 0,
"results": [
{ "message_id": "1:08" }
]
}
Run Code Online (Sandbox Code Playgroud)
我发现success
和failure
多余的 - 它们不是同一件事吗?我应该检查他们两个以确保一切正常吗?总是这样success != failure
吗?
归档时间: |
|
查看次数: |
7542 次 |
最近记录: |