当我通过REST API向Google FCM服务器发送消息时,响应正文包含 message_id
数据 . 我可以使用该ID获取有关消息的信息(交付时间等)吗?这是沟通:
Request :
网址:
https://fcm.googleapis.com/fcm/send POST
头:
Content-Type application/json
Authorization key=MY_KEY
身体
{
"to": "/topics/fls",
"data": {
"count": "21",
}
}
Response
身体
{"message_id":1234}
所以我需要通过REST检查结果信息,如下所示:
https://fcm.googleapis.com/fcm/info?message_id=1234
可能吗?
1 回答
目前没有可用于检索已发送邮件详细信息的API .
目前可用的是Diagnostics Tool,请记住this is not visible in the Firebase Console, only in your Google Play Developer Console and the feature only works if your app is at least in Alpha Testing .