Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multicast id in firebase cloud messaging service

What is the multicast_id in Firebase cloud messaging service?

As mentioned in the documentation that is provided by Google, multicast id is the unique number that identifies the multicast message.

I read it, but I did not understand it clearly. Can anyone explain it?

like image 411
Parvesh kumar Avatar asked Oct 29 '22 06:10

Parvesh kumar


1 Answers

Per Firebase Cloud Messaging HTTP Protocol documentation:

The multicast_id is a required parameter in the FCM response payload, and is a unique ID that identifies the multicast message.

A multicast message is a notification that will be sent from a server and targeting multiple client applications.

To answer your question directly, this response parameter is just an identification ID of a multicast message sent to client applications.

I'm not sure yet, but looking at the Build App Server Send Requests documentation, you will only get this response parameter when you use Single Device Messaging targeting a single or array of registration tokens.

I hope this helps.

like image 123
looptheloop88 Avatar answered Nov 17 '22 13:11

looptheloop88