Kri*_*V S 6 firebase-cloud-messaging
我们已经按照文档中的说明在消息中设置了“analytics_label”,并且消息也正在传递。但是我们在报告中没有看到任何条目。请检查我们的消息字符串,让我们知道可能有什么问题。感谢你的帮助。
https://fcm.googleapis.com/fcm/send
{"topic":"81xxxxx42","android":{"priority":"high"},"priority":"high","fcm_options":{"analytics_label":"nwy81xxxxx42"},"data":{ "MID":-1,"frm":"99xxxxx32","MTP":9,"msg":""}}
我不确定您正在使用哪个库,或者您是否只是直接发布到 REST API,但查看我知道有效的代码,我认为您只需要制作 fcm_options 和analytics_label 驼峰式大小写。
{
"topic": "81xxxxx42",
"android": {
"priority": "high"
},
"priority": "high",
"fcmOptions": {
"analyticsLabel": "nwy81xxxxx42"
},
"data": {
"MID": -1,
"frm": "99xxxxx32",
"MTP": 9,
"msg": ""
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
204 次 |
| 最近记录: |