Java – GCM keeps messages on the server until new messages arrive
I am using Google cloud messaging with the latest version of Google play service to develop applications
If I turn off the network connection of my device, all messages I should receive when I can't access the Internet will be stored in the server. I won't receive them back until I switch a network connection
Therefore, if I receive 20 new messages at night, when I turn off WiFi / 3G, when I turn on WiFi in the morning, I don't receive any messages. When the first new message arrives, I immediately receive 21 push notifications
The question is, so... Is there any way to solve this problem? Is this my implementation problem or is this the expected behavior? Should I find some solutions?
thank you!
Editor: I didn't receive 21 notifications at the same time because the push message I sent is collapsible, but I won't receive the collapse message until a new message arrives
resolvent:
This appears to be the time on the message payload_ to_ The live parameter is the same as Android docs:
Good luck!