Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What URLs do Google Play Services require access to?

My app has to receive push-notifications and right now am getting SERVICE_NOT_AVAILABLE after GoogleCloudMessaging.register() call.

My client has a strict firewall in his office and he doesn't have access to Google Play Services. I need to provide him a list of all URL's that Google Play services needs access to, so he can add it to white list.

So far there's only one url in my list: googleapis.com

I didn't find any information on this subject, so I will appreciate any help.

like image 543
Egor Neliuba Avatar asked Jan 06 '14 10:01

Egor Neliuba


1 Answers

Looking at the documentation for GCM, it seems this is your answer:

Note: 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.

Update with FCM

Official doc for firewall handling

like image 187
torkildr Avatar answered Oct 12 '22 01:10

torkildr