Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java FCM使用firebase管理库通过防火墙发送消息_Java_Firebase_Firebase Cloud Messaging_Firebase Admin - Fatal编程技术网

Java FCM使用firebase管理库通过防火墙发送消息

Java FCM使用firebase管理库通过防火墙发送消息,java,firebase,firebase-cloud-messaging,firebase-admin,Java,Firebase,Firebase Cloud Messaging,Firebase Admin,在公司里,我们有防火墙。 我们已经启用了fcm.googleapis.com433地址。但这并没有起到任何作用。jboss应用程序仍然无法使用com.google.firebase:firebase admin库发送推送请求。 我知道IP的范围,但管理员不可能在我们公司维持这样的IP范围。 但是我们可以为url名称设置它(有人告诉我)。但是这个地址没有帮助。我已经调查过了 com.google.firebase:firebase-admin com.google.auth:google-

在公司里,我们有防火墙。
我们已经启用了
fcm.googleapis.com
433地址。但这并没有起到任何作用。jboss应用程序仍然无法使用
com.google.firebase:firebase admin
库发送推送请求。 我知道IP的范围,但管理员不可能在我们公司维持这样的IP范围。
但是我们可以为url名称设置它(有人告诉我)。但是这个地址没有帮助。我已经调查过了

com.google.firebase:firebase-admin    
com.google.auth:google-auth-library-oauth2-http 
发现其他地址很少:



还有其他人为这样的地址打开防火墙吗?也许我还需要点别的?(我把它发到了network ppl,但他们不会马上这么做,所以也许我可以在他们开始之前纠正它)

当时它对这3个地址有效。它已经工作了几天了。忘了在这里提了。如果有变化,我会尝试发布任何东西。我不确定何时使用第三个地址,第二个地址是在firebase机制初始化期间获取令牌。
为了确保您的项目提供的特定数据库url不需要在防火墙中破例,它会以参数形式发送到fcm.googleapis.com,谷歌可能会在那里使用它。如果能从fcm开发者那里得到官方的答案就好了,但是我无能为力。干杯


好的,我可以确认。在我在家屏蔽accounts.google.com和iid.googleapis.com(没有代理,所以测试没有问题)后,我无法使用firebase管理库发送推送。问题是idd.googleapis.com的IP移动速度非常快。仍然使用这些主机名,我确信我需要启用它们。现在我想知道这个库是否需要更多的主机名。这个图书馆有作者吗?在文档中找不到它,除了“大ip列表”或“启用所有”答案,这些都是不可接受的解决方案。