Google Cloud Messaging - GCM - SERVICE_NOT_AVAILABLE

后端 未结 6 1855
小蘑菇
小蘑菇 2021-02-04 00:28

I am trying, to implement the new GCM, I am following Google get stated : http://developer.android.com/guide/google/gcm/gs.html

I getting stuck at getting my de

6条回答
  •  不要未来只要你来
    2021-02-04 01:22

    Remember that if you're behind a corporate firewall, some ports that GCM uses may not be allowed to communicate over the local wireless. I had this problem when trying to get my emulator to work initially. I had to get a special IP that allowed the ports listed below through.


    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.

    http://developer.android.com/google/gcm/gcm.html

提交回复
热议问题