I've been using Google Cloud Messaging for a while now. It is working well when it is connected to our Office wifi router and there is no problem in receiving each messages. When I switch it to mobile data or to other wifi network, it is not working and stops receiving messages anymore. After a while when I again connect to our Office router, all the messages keeps coming one after the other.
Server keeps sending messages every minute and so there is no possibilty of server inactivity. Does GCM only works in specific ideal condition ?
Edit: When I switch it to mobile data or to other wifi network, it is not working properly i.e GCM works for a while and then stops receiving the messages anymore.