解析API推送通知(parse.com/GCM)URL,IP,协议和/或端口 [英] Parse API Push Notifications (parse.com/GCM) URLs, IPs, Protocols and/or Ports

查看:134
本文介绍了解析API推送通知(parse.com/GCM)URL,IP,协议和/或端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Parse API 在我的 Android 应用程式中推送通知,没有任何问题。

在我的 HotSpot 网络中无互联网工作。所以我需要在我的HotSpot网络中打开URL,Maybe Ports甚至协议,以允许应用推送它的通知。



我打开这些URL没有成功:

  *。apis.google.com 
* .googleapis.com
* .parse.com

小提琴手没有显示任何有用的东西。我想它可能会使用其他协议而不是HTTP。



我想知道Parse API使用哪些URL,IP,协议和或端口来工作并发送它通知?



如果我没有错,Parse正在使用Google Cloud Messaging推送其通知。但我不知道GCM网址。



任何帮助将不胜感激

解决方案

总之,打开这些IP /域名是不够的。



设备通过端口5228-5230访问GCM服务器。


注:如果您的组织使用防火墙将流量
限制在互联网上或来自互联网,则需要将其配置为允许与GCM建立
连接。要打开的端口是:5228,5229和5230.
GCM通常只使用5228,但它有时使用5229和5230. GCM
不提供特定的IP。它经常更改IP。我们建议您使用ACL
,但如果您必须使用它们,请采用宽泛的方法
,例如此支持链接中建议的方法。

以下是相关GCM文档的链接: https://开发人员。 google.com/cloud-messaging/http



在没有这些端口的情况下,最新的Android版本在端口443上回退。

I am using Parse API for pushing notifications in my Android app without problem.

The app should work without internet in my HotSpot network. So I need to open URLs, Maybe Ports or even protocols in my HotSpot network to allow the app to push its notifications.

I open these URLs without success:

*.apis.google.com
*.googleapis.com
*.parse.com

The fiddler is not showing anything useful. I guess that it may use another protocol instead of HTTP.

I want to know which URLs, IPs, protocols and or ports is used for Parse API to work and send its notifications?

If I'm not wrong, the Parse is using Google Cloud Messaging to push its notifications. But I don't know the GCM URLs either.

Any help would be appreciated

解决方案

In summary, opening these IPs/domains is not going to be sufficient.

The device accesses the GCM servers on ports 5228-5230.

Note: 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.

Here is the link to the relevant GCM documentation: https://developers.google.com/cloud-messaging/http

Latest Android versions fallback on port 443 in the absence of access to these ports.

这篇关于解析API推送通知(parse.com/GCM)URL,IP,协议和/或端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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