GCM message delivery confirmation

I am implementing push notifications with Google Cloud Messaging . I am just testing my demo apps on the official site. Everything works well. But does anyone have an idea of ​​how to ensure that the message is delivered anyway? Or can we call the server to tell how the message will be delivered to the device and whether it will be reliable?

+3


source to share


2 answers


Have a look at Android GCM delivery monitoring answer .



"They do not guarantee delivery, but they try to deliver the message no more than 4 weeks, depending on the time you set in the message sent to the GCM Google servers, and if you want Google to save data for possible delivery of msg to the device if the device was disabled when the message was supposed to be delivered. "

+3


source


Google has added support to receive delivery receipts from Cloud Connection Server (CCS):

You can use upstream messaging to receive delivery receipts (sent from CCS to a third-party application server) when a device confirms that it received a message sent by CCS.

To enable this feature, the message sent by the 3rd party application server to CCS must contain the "delivery_receipt_requested" field. If this field is set to true, CCS sends a delivery receipt when a device confirms that it has received a particular message.



https://developers.google.com/cloud-messaging/ccs#receipts

+2


source







All Articles