I'm developing an app using Google Cloud Messaging with the latest Google Play Services version.
If I turn my device's network connections off, all messages that should have been received during the time I have no Internet access are stored in the server, and I do not get them until a new one arrives when I have turned one of my network connections back on.
So, if I receive 20 new messages during the night, when I have my WiFi/3G off, when I switch my WiFi on in the morning I get no messages, and when the first new message arrives I get the 21 push notifications at once.
The question is, then... is there any way around this? Is it a problem of my implementation or this is the expected behaviour and I should have to find some workaround?
Thanks!
Small edit: I do not get the 21 notifications at once, since the push messages I send are collapsible, but I do not get the collapsed message until a new one arrives, anyway.