" TooManyMessages"错误的c2dm.intent.RECEIVE意向到来 [英] "TooManyMessages" Error coming from c2dm.intent.RECEIVE Intent

查看:261
本文介绍了" TooManyMessages"错误的c2dm.intent.RECEIVE意向到来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有这个TooManyMessages错误的任何文件

在我称之为GoogleCloudMessaging发送方法,我正在从一个意图 com.google.android.c2dm.intent.RECEIVE 与临时演员下列键/值对捆绑。

 发送错误:
捆绑[{错误= TooManyMessages,
message_type = SEND_ERROR,
google.message_id = 1,
android.support.content.wakelockid = 1}
 

解决方案

这意味着太多的信息被存储在GCM服务器,一台设备而没有提供(这可能会发生,如果你的设备处于脱机状态,而许多消息被送往您的服务器)。

在这样的消息数量达到了极限,这是100,如果你不使用崩溃键,它们是从GCM服务器中删除,并且你会得到错误信息,informes您将设备应该同步您为了服务器以获取丢失的消息。

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.

这篇关于" TooManyMessages"错误的c2dm.intent.RECEIVE意向到来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆