Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 272
Anil Chandra Naidu Matcha Avatar asked Apr 02 '14 08:04

Anil Chandra Naidu Matcha


2 Answers

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");
like image 90
Yusufk Avatar answered Oct 23 '22 07:10

Yusufk


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)

like image 30
mimming Avatar answered Oct 23 '22 07:10

mimming