android - Receiving FCM (GCM) behind proxy on Android
问题描述
We have an app that uses FCM (ex GCM) for push messaging and notification on Android devices.
We have an use case where the app won't have open access to Google Play Services as it will be deployed on a corporate network - well it is a "everything closed except fixed servers with fixed IP addresses and ports" firewall. Direct connection to these services will not be allowed, but we can provide our own http/s or socks proxy to access whatever we want.
To my latest knowledge and searches on SO, even if you specify a proxy on android, the proxy will only be used if your app is set up to use it (no problem), but Google Play Services and Firebase will just ignore the proxy setting.
Has this changed? Can Firebase/FCM/Google play services run through the proxy specified in Android? And if so, from which android version?
Thank you, Nicolas
解决方案
这是来自 firebase 支持的最新信息(简短回答:否)
" 不幸的是,Firebase 云消息传递目前并未设计为支持代理,并且不会尝试解决所有网络状况。另一种方法是将 FCM 列入白名单,根本不通过代理。您应该将 IPv4 中的所有 IP 地址列入白名单和 IPv6 块在 Google 的 ASN 15169 中列出。有关 FCM 端口的更多信息,请参阅此文档。 https://firebase.google.com/docs/cloud-messaging/concept-options#ports_and_your_firewall "
如果有人有解决方法的想法,请随时分享:) 谢谢,尼古拉斯
推荐阅读
- http - 如何在 nifi 中使用调用 http 来执行 GET 请求?
- c# - 在 HTTP GET 上使用 Oracle DB 在 Asp.net Web API 中处理来自 DB 的空值
- docker - 错误:无法在未配置默认本地部署的情况下上传到虚拟存储库(Docker 工件)
- javascript - Javascript多维数组,数据推送在每一行中添加相同的数据
- javascript - 要求和导入不适用于 Electron 中的模块
- python - 将字符串解析为 Sympy 方程时出现 TypeError
- payment-gateway - 支付成功后Realex支付网关不返回商家网站
- python - 如何绘制学习率与准确性sklearn?
- html - 如何从框架集框架内更改浏览器窗口的 URL?
- r - 如何从 xts zoo 对象矩阵中的每个对象访问 coredata