When we develop the applications that need to interact with the server, we basically need to get the server-side data, such as "earthquake emergency traffic" need to get the latest seismic information on the server.
There are generally two ways to get information on a server that is not regularly updated:
The first is the way the client uses pull, which is to get information on the server at a time and see if there is any updated information.
The second is the way the server uses push (push), when new information is available on the server side, push the latest information to the client . This allows the client to automatically receive the message.
While pull and push two ways to get server-side update information, it is obvious that push is more advantageous than pulling mode. Because the pull mode is more cost to the client's network traffic, and the main is the charge, but also need our program constantly to monitor the changes in the server.
From
Click on my
Android Implementation Push mode solution