使用MQTT做为android的云推送
使用MQTT做为android的云推送
由于优秀的c2dm在国内是被墙的状态,为了保证世界人们都可用访问,所以只好采用mqtt方式
简介和如何使用见这里
http://tokudu.com/2010/how-to-implement-push-notifications-for-android/
代码见这里
https://github.com/tokudu/PhpMQTTClient
使用注意事项:
http://www.alphaworks.ibm.com/tech/rsmb/download,这里的rsmb_1.2.0.zip 一定要记得配,把端口1883启动起来
参考链接
http://stackoverflow.com/questions/1243066/does-android-support-near-real-time-push-notification
http://stackoverflow.com/questions/1378671/push-notifications-in-android-platform
http://blog.boxedice.com/2010/10/07/android-push-notifications-tutorial/
http://dalelane.co.uk/blog/?p=1599
http://tokudu.com/2010/how-to-implement-push-notifications-for-android/
http://blog.isidorey.com/2011/05/cloud-to-device-and-back-with-android.html
http://www.hardill.me.uk/wordpress/?p=207
http://tokudu.com/demo/android-push/
附加一个好玩的链接
posted on 2012-02-16 20:35 xiezhengcai 阅读(1547) 评论(0) 编辑 收藏 举报