Reputation: 41
https://developers.google.com/cloud-messaging/server#send-msg I saw this note : Note: There is a limit of 100 messages that can be stored without collapsing. If the limit is reached, all stored messages are discarded. When the device is back online, it receives a special message indicating that the limit was reached. The application can then handle the situation properly, typically by requesting a full sync from the app server.
I have no idea what is the special message from GCM look like and how can I handle it ?
Upvotes: 4
Views: 205
Reputation: 4627
implement
@Override public void onDeletedMessages() {
super.onDeletedMessages();
Log.w("mcheck", "onDeletedMessages");
Log.e("mcheck", "messages deleted");
}
from GcmListenerService.
That method will fier every time, gcm delete cached messages for any reason including exceed of 100 messages limit
Upvotes: 2