Firebase android proxy setting

I have made an android app https://play.google.com/store/apps/details?id=com.confesco.maggi which works with firebase as database which works well when I use 3G net.The problem occurs when I use it under a proxy of our college it doesnot get connected to the database.Is there any way I can get around with this problem.Thanks in advance.

Upvotes: 13

Views: 3982

Answers (2)

Yusufk
Yusufk

Reputation: 1182

This article seems to suggest that it is possible. It applies the standard Java proxy directives and one specific one for Google API:

System.setProperty("https.proxyHost", "localhost");
System.setProperty("https.proxyPort", "3128");
System.setProperty("com.google.api.client.should_use_proxy", "true");

Upvotes: 2

mimming
mimming

Reputation: 13954

There is currently no workaround for using the Android client over a proxy, sorry. I've put this on the Firebase feature list and hopefully we can address it in the near future.

(Answer copied from a previously posted comment)

Upvotes: 5

Related Questions