我用我的应用程序GCM服务。它工作正常,但一段时间后它将停止接收GCM通知。我不得不重新启动设备。有什么办法避免这种情况?
I'm using GCM service in my app. It is working fine, however some time it stops receiving GCM notifications. I have to restart the device. Is there any way to avoid this?
这与一些无线路由器和移动运营商一个已知的问题,它基本上是一个TCP超时问题,实际上解决方案是实现一个发送到每5分钟的客户心跳服务
This a known problem with some wifi routers and mobile carriers, it's basically a tcp timeout problem and actually solution is implement a heartbeat service that send to clients every 5 mins.
这一个问题,开到谷歌在这里:https://productforums.google.com/forum/#!category-topic/nexus/connecting-to-networks-and-devices/fslYqYrULto他们同意但目前的问题。
This a opened issue to google here: https://productforums.google.com/forum/#!category-topic/nexus/connecting-to-networks-and-devices/fslYqYrULto They agree there is currently an issue.