android - 代理后未收到 Firebase 通知

标签 android firebase proxy firebase-cloud-messaging firebase-notifications

Firebase 不能在代理后面工作吗?

我正在为我学院的学生制作一个 Android 应用程序。 当应用程序通过代理服务器连接到互联网时,它不会收到通知。

但是只要我打开移动数据,就会收到通知。

我该如何解决这个问题?

最佳答案

Elvis 是正确的,但我想指出 documentation讨论的地方。

If your organization has a firewall that restricts the traffic to or from the Internet, you need to configure it to allow connectivity with FCM in order for your Firebase Cloud Messaging client apps to receive messages. The ports to open are: 5228, 5229, and 5230. FCM typically only uses 5228, but it sometimes uses 5229 and 5230. FCM 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.

关于android - 代理后未收到 Firebase 通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40133703/

相关文章:

Android 蓝牙连接更改蓝牙图标?在状态栏

java - 将 Android 应用程序安装限制在 Android 手机上

android - TlistView OnItemClick 在 iOS 上选择第一条记录

java - 实现 SimpleCursorAdapter 时出错

javascript - 如何从密码字段中隐藏除一个字符以外的所有字符

ios - 在 Firebase 中获取 child 的 child 的值(value)

java - HTTP代理可以修改TCP Java字节流吗?

Firebase 云函数外壳 : add authentication token in order to call callable

python - 检查 python/selenium 中的代理

c# - 如何使用 Web Proxy 绕过网络?