I'm developing a small app for my course project (similar to Snapchat) that allows one to send and receive pictures and videos. I'm using a BaaS called Parse which uses GCM to deliver push notifications. However, the problem is that my campus uses a proxy network due to which numerous apps do not work (WhatsApp, Instagram) while some apps (Snapchat) work but their notifications are not delivered. Same is the case with my app.
Is there any possible way to overcome this problem assuming I do not have any influence over the proxy network and cellular network is out of options.
It all depends on your campus network access policy. You cant do if your campus proxy firewall doesnt provide access to these sites. However, you can ask them to allow these URL through their proxy firewall.
Or, simply you can use some other external proxy server by adding lines in your code
System.setProperty("https.proxyHost", "<IP>"); System.setProperty("https.proxyPort", "<Port>");
where you are trying to connect the Google APIs. Say if you are using something like this,
Before these lines where you attempting to connect to Google API, add the proxy setting lines, the above two lines. Also, try with your campus proxy as well some other external proxy, you will come to know issue is with your campus proxy or not.
Try this, hope this helps with your problem..!!!!!
As per google in order to receive GCM properly we have to open few ports. details below,
"If your organization has a firewall that restricts the traffic to or from the Internet, you need to configure it to allow connectivity with GCM in order for your Android devices to receive messages. The ports to open are: 5228, 5229, and 5230. GCM typically only uses 5228, but it sometimes uses 5229 and 5230. GCM doesn't provide specific IPs, so you should allow your firewall to accept outgoing connections to all IP addresses contained in the IP blocks listed in Google's ASN of 15169."
are you trying to send GCM through parse SDK? are you able to access those URLs?
Use Something like this,