C2DM Implementation Checklist Step by Step
Android C2DM helps your app server push message to your app. It's a mechanism that the server ask the mobile app to fetch new data from server and update itself. C2DM is still in beta version, or Labs version. To use C2DM with your Android applications, you must first signup to request access.
The official doc has a lot of content.
To make it clear, I make the following checklist:
1 Things Before Coding
1.1 Create your Sender ID email account.
It's app-based. like "my-app@gmail.com"
1.2 Signup to request access
Go to the signup page , fill the form and submit. And you'll get an email from google in minutes or hours. Some people complain that no email reply. I chose the Estimated peak queries per second (QPS) 11-100, and got an email in less than half an hour. I think google may delay your request because the requested QPS>100 or too much quota per day.
You'll got an email like this:
2 Android Application (Client Side)
2.1 Register in AndroidManifest.xml
2.2 Send registration Intent
2.3 Receive and handle registration result
2.4 Send the registration ID to your server
2.5 Receive Message
Note: you must LOG IN your google account in order to receive message
3 Server Side
3.1 Receive registration ID
3.2 Get ClientLogin Token
3.2 Send message using ClientLogin Token
4 Notes:
4.1 C2DM makes no guarantee about delivery or order of messages
4.2 Your app can receive message without running.
4.3 C2DM require Android 2.2 or higher and Android Market app installed. If you are testing on Simulator, require Android 2.2 or higher with Google APIs SDK.
4.4 Must login Google account to receive message
4.5 The message size limit is 1024 bytes
- 大小: 60.1 KB
分享到:
相关推荐
Android Cloud to Device Messaging Framework
Google-Cloud-Messaging--Titanium-, 在 Titanium 中,Google云消息传递 Google-Cloud-Messaging--Titanium -注册带有GCM和处理发送到设备的通知的Titanium MODULE 。Android平台使用c2dm进行推送,但是因为c2dm停止...
php-firebase-cloud-messaging, 用于Firebase云消息传递的PHP API PHP Firebase云消息用于Firebase云消息传递的PHP API 。目前这个应用服务器库只支持通过HTTP发送消息/通知。请参阅原始Firebase文档:...
Google Cloud Messaging API 包装器 ... <artifactId>google-cloud-messaging-api-wrapper <version>0.3.0 Gradle compile('io.sprucehill:google-cloud-messaging-api-wrapper:0.3.0') 特拉维斯构建指标
Try Restcomm Cloud NOW for ...Android Mobile SDK to easily integrate communication features (WebRTC, messaging, presence, voice, video, screensharing) based on RestComm into native Mobile Applications.
赠送jar包:spring-messaging-5.0.8.RELEASE.jar; 赠送原API文档:spring-messaging-5.0.8.RELEASE-javadoc.jar; 赠送源代码:spring-messaging-5.0.8.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-...
ABB-IRC5-IRC5 Socket Messaging.pdf
Roadside-Assisted V2V Messaging.pdf
Google-Cloud-Messaging--Titanium- Android 平台正在使用 c2dm 进行推送通知,但由于 c2dm 已停止接受新用户,因此我们决定使用 google 提供的新服务,即 Google Cloud Messaging (GCM)。 当前最新版本是 0.5更改...
Jakarta EE 10 Messaging with RabbitMQ by Kevin Jones RabbitMQ is a cross-platform, cross-language ‘message broker.' This course will teach you how to use RabbitMQ’s Java library to publish and ...
Firebase云消息传递-钛金模块使用Axway Titanium中的本机Firebase SDK(iOS / Android)。 该存储库是项目的一部分。支持这项工作@hansemannn的整个Firebase支持由社区( @hansemannn和@m1ga )开发和维护。 为了...
flex-messaging-proxy.jarflex-messaging-proxy.jarflex-messaging-proxy.jarflex-messaging-proxy.jar
flex-messaging-remoting.jarflex-messaging-remoting.jarflex-messaging-remoting.jarflex-messaging-remoting.jar
spring-messaging-4.1.3.RELEASE.jarspring-messaging-4.1.3.RELEASE.jarspring-messaging-4.1.3.RELEASE.jarspring-messaging-4.1.3.RELEASE.jar
flex-messaging-common.jarflex-messaging-common.jarflex-messaging-common.jarflex-messaging-common.jar
Laravel开发-laravel-private-messaging Laravel 5的PM(私人消息).*
flex-messaging-opt.jarflex-messaging-opt.jarflex-messaging-opt.jarflex-messaging-opt.jar
Laravel开发-laravel-hubspot-messaging Laravel 5的简单通知
Part 4_ Short messaging.zip
Part 5_ Multimedia messaging.zip