简体   繁体   中英

“TooManyMessages” Error coming from c2dm.intent.RECEIVE Intent

Does anyone have any documentation on this "TooManyMessages" error .

After I call the GoogleCloudMessaging send method I am getting an intent from com.google.android.c2dm.intent.RECEIVE with the following key/value pairs in the extras bundle.

Send error:
Bundle[{error=TooManyMessages, 
message_type=send_error, 
google.message_id=1, 
android.support.content.wakelockid=1}

This means that too many messages were stored in the GCM server for a single device without being delivered (which might happen if your device was offline while many messages were sent by your server).

Once the number of such messages reaches the limit, which is 100 if you don't use a collapse key, they are deleted from the GCM server, and you get that error message, which informes you your device should sync with your server in order to get the lost messages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM