简体   繁体   English

C2DM注册将“空”返回给设备

[英]C2DM registration returning “null” to device

Occasionally devices receive "null" or "" from Google for C2DM registration in place of the ID. 有时,设备会从Google接收“空”或“”来代替ID进行C2DM注册。 As these are remote devices, I can not simply ask the user to try again. 由于这些是远程设备,因此我不能简单地要求用户重试。

Is there any known reason why this would be happening, and how can I correct it? 是否有任何已知的原因会导致这种情况发生,我该如何纠正?

This may also happen when a device (or rather your code) requests C2DM token too often. 当设备(或您的代码)过于频繁地请求C2DM令牌时,也会发生这种情况。 Google considers that as robot generated requests and sends captcha challenge instead of the token. Google认为这是由机器人生成的请求并发送验证码质询而非令牌。

I have a test android device (which I use to test my code on) that can no longer register for C2DM messages as it does not receive the registration token because it has too many C2DM token request on its account. 我有一个测试android设备(用于测试我的代码),该设备无法再注册C2DM消息,因为它的帐户上有太多C2DM令牌请求,因此无法接收注册令牌。

Question here is probably how to un-ban these devices? 这里的问题可能是如何取消禁止这些设备?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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