在Google FCM上通过REST API查看已发送消息的结果?

时间:2017-08-26 10:17:16

标签: rest firebase firebase-cloud-messaging

当我通过REST API向Google FCM服务器发送消息时,响应正文包含message_id个数据。我可以使用该ID获取有关消息的信息(交付时间等)吗?这是沟通:

请求

网址:

https://fcm.googleapis.com/fcm/send   POST

接头:

Content-Type    application/json
Authorization   key=MY_KEY

{
   "to": "/topics/fls",
   "data": {
      "count": "21",
   }
}

响应

{"message_id":1234}

所以我需要通过REST检查结果信息,如下所示:

https://fcm.googleapis.com/fcm/info?message_id=1234

有可能吗?

1 个答案:

答案 0 :(得分:1)

相关问题