Example scenario:
I'm sending message to several devices using GCM. The response contains "multicast_id"? How can I use this value?
Thanks.
Google Cloud Messaging (GCM) was a mobile notification service developed by Google that enables third-party application developers to send notification data or information from developer-run servers to applications that target the Google Android Operating System, as well as applications or extensions developed for the ...
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.
FCM is the new version of GCM under the Firebase brand. It inherits GCM's core infrastructure to make sure we continue to deliver messages reliably on Android, iOS and Chrome. Save this answer.
GCM stands for Google Cloud Messaging. Every push notification receive on any Android device is sent by the GCM only. when sender sends an push notification then it goes to GCM. GCM receives that push and forward it to particular Android Device by its Unique device id.
It's just an identifier.
multicast_id Unique ID (number) identifying the multicast message.
There is no use for that ID, unless you wish to save it in your DB as a kind of "receipt" from Google, but the individual message_id
s returned for each message that wasn't rejected by Google are much better as a receipt (since they indicate Google actually accepted your message and will try to deliver it).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With