GCM停止一段时间后工作 [英] GCM stop working after some time
问题描述
我用我的应用程序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.
这一个问题,开到谷歌在这里:<一href=\"https://productforums.google.com/forum/#!category-topic/nexus/connecting-to-networks-and-devices/fslYqYrULto\" rel=\"nofollow\">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.
这篇关于GCM停止一段时间后工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!