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性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...