I want to let my server know if a device can’t receive message anymore from GCM. So for example when the phone shuts down or when the GCMBaseIntentService is killed. Is this possible?
I want to let my server know if a device can’t receive message anymore
Share
GCM will hold on to your information as specified in TTL. GCM is a broadcast service, meaning that you should not know if the device has received the message or not.
One thing you can do is keeping track of your push messages. When application launched it submit the last received message to check with server.
Even if the device is on and online, there is no guarantee that it will receive the message from GCM.