android – Google Play服务需要访问哪些网址?

我的应用必须接收推送通知,现在在GoogleCloudMessaging.register()调用后获得SERVICE_NOT_AVAILABLE.

我的客户在他的办公室里有一个严格的防火墙,他无法访问Google Play服务.我需要向他提供Google Play服务需要访问的所有网址列表,以便将其添加到白名单中.

到目前为止,我的列表中只有一个网址:googleapis.com

我没有找到关于这个主题的任何信息,所以我将不胜感激任何帮助.

解决方法

看看 documentation for GCM,看来这是你的答案:

Note: If your organization has a firewall that restricts the traffic to or from the Internet,you need to configure it to allow connectivity with GCM in order for your Android devices to receive messages. 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,so you should allow your firewall to accept outgoing connections to all IP addresses contained in the IP blocks listed in 07001.

相关文章

Android 如何解决dialog弹出时无法捕捉Activity的back事件 在...
Android实现自定义带文字和图片的Button 在Android开发中经常...
Android 关于长按back键退出应用程序的实现最近在做一个Andr...
android自带的时间选择器只能精确到分,但是对于某些应用要求...