FCM使用firebase-admin库通过防火墙发送消息 [英] FCM send msg through firewall using firebase-admin library

查看:85
本文介绍了FCM使用firebase-admin库通过防火墙发送消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在公司中,我们有防火墙.
我们已启用fcm.googleapis.com 433地址.但是它没有帮助. jboss应用程序仍然无法使用com.google.firebase:firebase-admin库发送推送请求. 我知道IP范围,但是管理员无法在我们公司中维持这样的IP范围.
但是我们可以为URL名称设置它(有人告诉我).但是这一点还没有帮助.我研究了

In company we have firewall.
We've enabled fcm.googleapis.com 433 adress. But it havent helped. Still jboss application can not send push request using com.google.firebase:firebase-admin library. I know about range of IPs but that is not possible for admins to maintain such range of IPs in our company.
But we can set it for url names (I was told so). But this one addres havent helped. I've looked into

com.google.firebase:firebase-admin    
com.google.auth:google-auth-library-oauth2-http 

并发现了其他几个地址:

And found few other addresses:

https://accounts.google.com
https://iid.googleapis.com

https://accounts.google.com
https://iid.googleapis.com

是否有人为这种地址打开了防火墙?也许我还需要其他东西? (我已经将其发送到网络ppl,但他们不会立即执行,因此也许我可以在开始之前进行更正)

Have anyone else opened firewall for such adresses? Maybe I need something else? (Ive sent it to network ppl, but they wont do it immediately, so maybe I can correct it before they start)

推荐答案

在那一刻,它适用于这3个地址.现在已经工作了几天.忘了在这里提到它.如果有任何更改,将尝试发布任何内容.我不确定何时使用第三个地址,第二个是在初始化Firebase机制以获取令牌时使用.
确保没有必要在防火墙中对项目指定的特定数据库URL进行例外处理,将其作为参数发送到fcm.googleapis.com,并且可能由Google以某种方式在其中使用.对于fcm开发人员之一的官方答复,这将是很好的选择,但无济于事.干杯

For that moment it worked for those 3 addresses. It is working for few days now. Forgot to mention it here. Will try post anything if it's gonna change. I am not sure when 3rd address is used, second one is during initialization of firebase mechanisms to take token.
For sure there is no need to make exception in firewall for specific database url that is given by your project, it is sent in parameters to fcm.googleapis.com and probably google use it somehow there. Would be nice for official answer here from one of fcm developers, but cant help it. Cheers

  • https://fcm.googleapis.com
  • https://accounts.google.com
  • https://iid.googleapis.com

这篇关于FCM使用firebase-admin库通过防火墙发送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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