基于Android平台的消息推送研究与实现
详细信息    查看全文 | 推荐本文 |
  • 英文篇名:Research and Implementation of Message Push Based on Android
  • 作者:倪红军
  • 英文作者:NI Hong-jun;School of Information Engineering,Taizhou College,Nanjing Normal University;
  • 关键词:消息推送 ; 长连接 ; AlarmManager ; Android
  • 英文关键词:message push;;long connection;;AlarmManager;;Android
  • 中文刊名:SYSY
  • 英文刊名:Research and Exploration in Laboratory
  • 机构:南京师范大学泰州学院信息工程学院;
  • 出版日期:2014-05-15
  • 出版单位:实验室研究与探索
  • 年:2014
  • 期:v.33;No.219
  • 基金:Google中国大学合作部2012年Android创新(开发)重点资助项目(SOW12-11/64005799)
  • 语种:中文;
  • 页:SYSY201405025
  • 页数:5
  • CN:05
  • ISSN:31-1707/T
  • 分类号:104-108
摘要
针对Android平台的智能终端在获取推送消息时存在的与服务器端数据同步、费电、耗流量和推送成本高等问题,通过对传统Pull和Push方式的简单轮询、短信服务、持久连接和长轮询等四种技术的分析和对Android平台目前采用的C2DM、MQTT、XMPP等方案的研究,发现了具体实现时可能出现的向下兼容性不好、硬件成本高和性能不稳定等不足。探讨了一种基于AlarmManager机制在移动终端与服务器之间维持TCP长连接来实现实时推送的方案。最后结合国内采用该方案的极光推送JPush平台设计了一个由服务器端和Android客户端组成的校园快讯系统。
        When the terminal for Android Gets Push messages and has data synchronization with the server,it leads to high costs of electricity,consumption flow and high cost of push. To resolve these problems,this paper analyzes four kinds of technology of the traditional Pull and Push,i. e.,in the way of simple polling,SMS services,persistent connections and long polling.,and Rresearch on Android platform currently used in the scheme of C2DM,MQTT,and XMPP. It is fFound that at the concrete implementation down has bad compatibility and high cost of hardware,and performance is not stable,etc. The paper Ddiscusses a scheme of real-time message push for by using AlarmManager mechanism to maintain TCP long connection between the terminal and the server maintenance TCP long connection. Finally,combining JPush platform to design a alert system of campus is designed to composed theof Sserver and the Android Clientclients.
引文
[1]沈洪洲,宗乾进,袁勤俭.应用Google云消息框架C2DM实现商务信息推送服务[J].现代图书情报技术,2012,28(6):78-83.SHEN Hong-zhou,ZONG Qian-jin,YUAN Qin-jian.Implementation of Commerce Information Push Service Using Google C2DM[J].New Technology of Library and Information Service,2012,28(6):78-83.
    [2]华春,胡明.Push和Pull两种调度机制的仿真分析与研究[J].光通信技术,2008,32(10):57-59.HUA Chun,HU Ming.Analysis and simulation to push scheme and pull scheme[J].Optical Communication Technology,2008,32(10):57-59.
    [3]SMILJANIC A.Rate and Delay Guarantees Provided by Clos Packet Switches With Load Balancing[J].IEEE/ACM Transactions on NetWorking,2008,16(1):170-181.
    [4]Thompson T.The Android Mobile Phone Platform[J].The World of Software Development,2008,33(9):40-47.
    [5]张长学,张伟,董智明.移动推送技术面面观[J].移动通信,2011,35(5):21-27.ZHANG Chang-xue,ZHANG Wei,DONG Zhi-ming.Aspects of mobile Push Technology[J].Mobile Communications,2011,35(5):21-27.
    [6]梁鹏,欧阳秀平,董越,等.PUSH技术在WAP2.0中的应用[J].电信网技术,2003(12):56-60.LIANG Peng,OU Yang Xiu-ping,DONG Yue,et al.Push Technology In the Application of WAP2.0[J].Telecommunication NetWork Technology,2003(12):56-60.
    [7]张思全,张占松.WAP2.0 PUSH技术在无线网络中的应用[J].电子质量,2003(1):124-127.ZHANG Si-quan,ZHANG Zhan-song.Wap 2.0 And Push Application In Wireless NetWork[J].Electronics Quality,2003(1):124-127.
    [8]周虹,张蓓,姜爱蓉,等.馆藏书目信息自助短信推送服务的设计与实现[J].现代图书情报技术,2011(7-8):127-131.ZHOU Hong,ZHANG Bei,JIANG Ai-rong,et al.Design and Implementation of Library Bibliography Information Self SMS Push Service[J].New Technology of Library and Information Service,2011,(7-8):127-131.
    [9]余勇.基于ASP.NET及COMET技术的WEB即时通信系统的设计与实现[J].电脑与电信,2010(9):36-40.YU Yong.Design and Practice of the Web Instant Messaging System Based on ASP.NET and Comet Technology[J].Computer&Telecommunication,2010(9):36-40.
    [10]戚永军,翟智平,耿娟平.基于Comment的Web即时通讯系统设计与实现[J].计算机科学,2012,39(10):72-75.QI Yong-jun,ZHAI Zhi-ping,GENG Juan-ping.Design and Implementation on Web Instant Messaging System Based on Comet[J].Computer Science.2012,39(10:72-75.
    [11]Google.AndroidCloudtoDeviceMessagingFramework[EM/OL].[2012-04-09].https://developers.google.com/android/C2DM.
    [12]Android推送方案探讨[EM/OL].http://wenku.baidu.com/view/ea7e06d17f1922791688e86b.html.
    [13]张京,刘甫迎.基于Android云计算消息框架(C2DM)的FoxNews_MID手持移动系统的研究[J].计算机科学,2011,38(10A):461-463.ZHANG Jing,LIU Fu-ying.Study and Implementation of FoxNewsMID Based on Android C2DMK[J].Computer Science,2011,38(10A):461-463.
    [14]刘甫迎,刘焱.Android移动编程实用教程[M].北京:电子工业出版社,2011.
    [15]Android广播事件处理闹钟实例[EM/OL].http://wenku.baidu.com/view/3c2f7f916bec0975f465e277.html.
    [16]深入学习android之AlarmManager.[EM/OL].http://jinguo.iteye.com/blog/799778.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700