Google Play服务需要访问哪些URL? [英] What URLs do Google Play Services require access to?

查看:255
本文介绍了Google Play服务需要访问哪些URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

My app has to receive push-notifications and right now am getting SERVICE_NOT_AVAILABLE after GoogleCloudMessaging.register() call.

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

My client has a strict firewall in his office and he doesn't have access to Google Play Services. I need to provide him a list of all URL's that Google Play services needs access to, so he can add it to white list.

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

So far there's only one url in my list: googleapis.com

我没有找到关于此主题的任何信息,因此,我们将不胜感激.

I didn't find any information on this subject, so I will appreciate any help.

推荐答案

查看 GCM文档,看来这就是您的答案:

Looking at the documentation for GCM, it seems this is your answer:

注意::如果您的组织有一个防火墙,它限制了进出Internet的流量,则需要对其进行配置以允许与GCM进行连接,以便您的Android设备能够接收消息.打开的端口是:5228、5229和5230.GCM通常仅使用5228,但有时使用5229和5230.GCM不提供特定的IP,因此您应允许防火墙接受到所有包含的IP地址的传出连接在 Google的15169 ASN 中列出的IP块中.

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 Google's ASN of 15169.

使用FCM更新

用于防火墙处理的官方文档

这篇关于Google Play服务需要访问哪些URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆