简体   繁体   English

Android“Urban Airship” - GCM - 未找到有效的设备令牌

[英]Android “Urban Airship” - GCM - No active device tokens found

Ok I have recently upgraded the app from C2DM to GCM. 好的,我最近将应用程序从C2DM升级到GCM。 For some reason I keep getting - 'No active device tokens found for alias' intermittently. 由于某种原因,我一直在 - '没有找到别名的有效设备令牌'间歇性地。 I observed it happens when you leave the phone for some time or restart the phone. 我发现当你离开手机一段时间或重新启动手机时会发生这种情况。 When i connect the adb I can see "com.zeebox.android.caa:com.urbanairship.push.process" in the process list. 当我连接adb时,我可以在进程列表中看到“com.zeebox.android.caa:com.urbanairship.push.process”。

Also, Is there any limit on no. 此外,没有限制。 of messages a device can receive? 设备可以接收的消息?

Any help or pointers will be useful. 任何帮助或指针都会很有用。 Thanks 谢谢

Sounds like a bug with UrbanAirship, you should bring it up with them. 听起来像是UrbanAirship的一个bug,你应该把它们带上来。 Also you don't explain what you did when you "upgraded" to GCM. 您也没有解释在“升级”到GCM时所执行的操作。 If UA is still using C2DM then you can't just switch to GCM, there are changes that need to be made on the server side (which UrbanAirship controls in this case) 如果UA仍在使用C2DM,那么您不能只切换到GCM,需要在服务器端进行更改(在这种情况下UrbanAirship控制)

U need to implement the GCM instead of Arnoid Urban ship.You are receiving the invalid token because of the change of policies of android.You can implement GCM with the help of the following link.Its the best tutorial i have ever found related to GCM. 你需要实现GCM而不是Arnoid Urban ship。你因为android的策略改变而收到无效令牌。你可以借助以下链接实现GCM。这是我发现的与GCM有关的最好的教程。 http://androidmyway.wordpress.com/tag/android-gcm/ http://androidmyway.wordpress.com/tag/android-gcm/

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

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