Search code examples
restfirebasefirebase-cloud-messaging

Check result of sent message via REST API on Google FCM?


When I send message to Google FCM server via REST API the response body has message_id data. Can I use that id to get information about the message (delivery time etc.) ? Here is the communication:

Request:

URL:

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

Headers:

Content-Type    application/json
Authorization   key=MY_KEY

Body

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

Response

Body

{"message_id":1234}

So I need to check result info via REST like this:

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

Is it possible?


Solution

  • There is currently no such API that you could use to retrieve the details of a sent message.

    What is currently available is the Diagnostics Tool, keeping in mind that 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.