首页 文章

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

提问于
浏览
0

当我通过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 回答

相关问题