android - Do GCM reliabilty depends on specific network? -


i've been using google cloud messaging while now. working when connected our office wifi router , there no problem in receiving each messages. when switch mobile data or other wifi network, not working , stops receiving messages anymore. after while when again connect our office router, messages keeps coming 1 after other.

server keeps sending messages every minute , there no possibilty of server inactivity. gcm works in specific ideal condition ?

edit: when switch mobile data or other wifi network, not working i.e gcm works while , stops receiving messages anymore.

from note under following section: https://developers.google.com/cloud-messaging/http#message-with-payload--data-message

note: if organization has firewall restricts traffic or internet, need configure allow connectivity gcm in order gcm client apps receive messages. ports open are: 5228, 5229, , 5230. gcm typically uses 5228, uses 5229 , 5230. gcm doesn't provide specific ips, should allow firewall accept outgoing connections ip addresses contained in ip blocks listed in google's asn of 15169.

also, according https://stackoverflow.com/a/23784874/313113 connection fall port 443, seems android versions:

i don't know precisely android version introduced port 443 fallback, it's somewhere between 4.1.2 (not working) , 4.3 (working).


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -