給你的Android APP推送消息可使用GCM,不過若是有辦法讓app知道本身應該什麼時候鏈接推送provider server,則不必使用GCM了。android
Google Cloud Messaging for Android (GCM) is a service that helps developers send data from servers to their Android applications on Android devices. This could be a lightweight message telling the Android application that there is new data to be fetched from the server (for instance, a movie uploaded by a friend), or it could be a message containing up to 4kb of payload data (so apps like instant messaging can consume the message directly). The GCM service handles all aspects of queueing of messages and delivery to the target Android application running on the target device.app
To learn more about GCM, you can join the android-gcm group and read the following documents:ide
GCM also provides helper libraries for client and server development.fetch