Google推送通知在某些网络中不起作用

时间:2014-06-30 07:53:28

标签: android networking push-notification

我有一个Android应用程序(不在谷歌游戏中),它正在被一家公司(在他们的建筑物中)使用。它使用谷歌推送通知,实际通知意味着一切。只需客户在需要某人时按下我们自己开发的设备的按钮,我们就会向已授权的人发送通知。

所以我们开发并测试了它,它在我们的网络(我们的办公室wifi)中工作正常。 然后我们在他们的网络中测试它。它工作得很好。所以他们开始使用它。

但有时它会突然停止收到通知(在客户的建筑物内)。在这种情况下,如果我们将平板电脑连接到3G,则会再次启动。

总结一下,

当Android设备连接我的Office Wifi时,

推送通知正常工作

当Android设备连接到3G时,推送通知正常工作

当Android设备连接到我们的客户Wifi时,推送通知有效。

并且想法将非常有用,谢谢。

1 个答案:

答案 0 :(得分:0)

您的客户WIFI需要一些调整。为了正常工作,您需要打开以下端口:5228.5229.5230:

检查出来

The device accesses the GCM servers on ports 5228-5230. If your organization has a firewall that restricts the traffic to or from the Internet, you'll need to configure it to allow connectivity with GCM. The ports to open are: 5228, 5229, and 5230. GCM typically only uses 5228, but it sometimes uses 5229 and 5230. GCM doesn't provide specific IPs. It changes IPs frequently. We recommend against using ACLs but if you must use them, take a broad approach such as the method suggested in this support link.

希望有所帮助