FCM send msg through firewall using firebase-admin library

吃可爱长大的小学妹 提交于 2019-12-11 11:51:46

问题


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

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)


回答1:


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


来源:https://stackoverflow.com/questions/50720314/fcm-send-msg-through-firewall-using-firebase-admin-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!