给你的Android APP推送消息可以使用GCM

给你的Android APP推送消息可以使用GCM,不过如果有办法让app知道自己应该何时连接推送provider server,则没必要使用GCM了。


Google Cloud Messaging for 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.

To learn more about GCM, you can join the android-gcm group and read the following documents:

Getting Started
Read this document to learn the basic steps involved in developing Android applications based on GCM.
Architectural Overview
Read this document for a description of the underlying concepts and architecture in GCM.
Demo App Tutorial
Read this document to walk through setting up and running the GCM demo app.
Advanced Topics
Read this document to get a more in-depth understanding of key GCM features.
Migration
Read this document if you are a C2DM developer moving to GCM.

GCM also provides helper libraries for client and server development.

转载于:https://my.oschina.net/u/136923/blog/82827

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值