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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With