Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is multicast_id in GCM response?

Example scenario:

I'm sending message to several devices using GCM. The response contains "multicast_id"? How can I use this value?

Thanks.

like image 950
User Avatar asked Jul 20 '14 18:07

User


People also ask

What is GCM push notification?

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 ...

What is multicast ID in FCM?

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.

What is difference between GCM and FCM?

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.

What is GCM and how it works?

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.


1 Answers

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_ids 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).

like image 109
Eran Avatar answered Sep 28 '22 04:09

Eran