What is multicast_id in GCM response?

不想你离开。 提交于 2019-12-12 12:31:51

问题


Example scenario:

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

Thanks.


回答1:


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



来源:https://stackoverflow.com/questions/24853794/what-is-multicast-id-in-gcm-response

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!