Android消息推送服务学习

Posted on Sat 18 August 2012 in it

一个免费的Android Push Notification Service

http://www.push-notification.org/ 可以进行演示: 1. 下载demo程序到手机,设置唯一id,启动; 2. 在网站的console里输入pushto 3. 手机上接到这个字串 开发说明: 客户端:下载apns.jar并集成到自己的代码中; 服务器端:通过网站提供的REST API向服务器发送通知

Google在Android上发布的消息服务框架

C2DM:Android Cloud to Device Messaging Framework

2012年6月26日官方宣布C2DM不建议使用,鼓励大家改用GCM 见:https://developers.google.com/android/c2dm/ C2DM支持Android 2.2及以上版本,参考资料比较多: http://www.ipragmatech.com/power-mobile-app-android-push-notification-c2dm.html

GCM:Google Cloud Messaging for Android

http://developer.android.com/guide/google/gcm/index.html 这是一个轻量服务,使用它可以下发一个实时通知或不大于4k的消息 帮助文档包含以下内容:

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. http://developer.android.com/guide/google/gcm/gcm.html 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.

最后一句说还包括对客户端及服务器端开发的帮助,感觉应该是支持自建消息推送服务的

还有不用Google标准自力更生的

-How to Implement Push Notifications for Android http://tokudu.com/2010/how-to-implement-push-notifications-for-android/ 这个猛人自己写这么一个服务的原因之一是想要支持android2.1