博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
给你的Android APP推送消息可以使用GCM
阅读量:6687 次
发布时间:2019-06-25

本文共 1375 字,大约阅读时间需要 4 分钟。

hot3.png

给你的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 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

你可能感兴趣的文章
GCC参数
查看>>
win7 iis
查看>>
Use another project as lib
查看>>
Hibernate 优化策略
查看>>
教你深入系统的学习linux系统
查看>>
Excel VBA判断Office语言版本
查看>>
linux网桥
查看>>
java.lang.OutOfMemoryError: GC overhead limit exce
查看>>
os change folder owner/group
查看>>
【Linux】shell编程之给变量赋值的五种方法
查看>>
练习写自己的博文
查看>>
random select algorithm(选择算法)
查看>>
Introspector内省机制学习
查看>>
echarts动态多组数据显示
查看>>
xstream 去掉class
查看>>
Activiti数据库
查看>>
我所看过的书
查看>>
静态内部类与非静态内部类
查看>>
Cisco3750交换机堆叠配置要点
查看>>
Debian以及Ubuntu源设置
查看>>