问题描述
我正在开发android应用.我需要将我的应用程序连接到firebase实时数据库,以获取一些信息并验证我的用户.但是,问题是我必须通过代理-我们公司的代理连接到Firebase.我检查了一些设置代理的解决方案,例如此.但是此解决方案将通过代理传递webView请求.
I'm developing android app. I need to connect my app to firebase real time db to get some information and authenticate my user. But, the problem is that I have to connect to firebase through proxy - our company proxy.I checked some solutions to set proxy such as this. but this solutions will pass webView requests through proxy.
有什么解决方案可以通过代理传递Firebase查询请求?有人对此有任何解决方案吗?
Is there any solution to pass firebase query requests through proxy?Does anyone have any solution for that?
推荐答案
经过多次谷歌搜索和测试了不同的方法之后,我发现无法使用代理将我的应用程序连接到Firebase实时数据库!为了解决这个问题,我找到了一个解决方案:在应用程序中使用VPN隧道连接(例如 psiphon-tunnel-core ),以隧道传输所有应用流量.但是,问题在于,它需要用户批准才能建立VPN连接.
After many googling and testing different methods, I found that there is no way to use proxy for connecting my app to firebase real time db!In order to round away this problem I find a solution: Using VPN tunneling connection in app (such as psiphon-tunnel-core) in order to tunnel all app traffic. But, the problem is that it required user approve to make VPN connection.
因此,我认为我们应该结束本主题.但是,如果任何人有任何建议,我将不胜感激.
So, I think we should close this topic. But, if anyone anytime has any suggestion I will appreciate to add in comment.
这篇关于使用代理进行Firebase实时数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!