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/