CN103442028A - Mobile application data pushing method based on XMPP - Google Patents
Mobile application data pushing method based on XMPP Download PDFInfo
- Publication number
- CN103442028A CN103442028A CN201310317956XA CN201310317956A CN103442028A CN 103442028 A CN103442028 A CN 103442028A CN 201310317956X A CN201310317956X A CN 201310317956XA CN 201310317956 A CN201310317956 A CN 201310317956A CN 103442028 A CN103442028 A CN 103442028A
- Authority
- CN
- China
- Prior art keywords
- xmpp
- mobile application
- link
- application data
- program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention discloses a mobile application data pushing method based on XMPP protocol implementation. The mobile application data pushing method based on XMPP protocol implementation is mainly used for the field of distributed application notification and personalized data pushing, and mainly achieves the purpose that when a mobile internet network is unstable, safe and reliable notification data pushing is provided. The mainly adopted technical method comprises the steps that interactive processes are carried out when network connection is built; safe and reliable transmission notification is adopted, and perfect authentication and authorization mechanisms are carried out; when network connection links are broken, reconnection is automatically carried out; when multiple application coexists, only one link is built to carry out communication, electricity losses caused by multiple long connections are reduced; Android backstage services are adopted to carry out connection link management and notification data broadcasting, and therefore application Activity interaction is not affected; information pushing services are provided and an API interface is opened to ensure that a third-party application system has an access to the API interface easily.
Description
Technical field
The present invention relates to the mobile Internet field, particularly relate to a kind of mobile application data method for pushing based on XMPP.
Background technology
Mobile phone application based on the Android platform is more and more, increasing people uses smart mobile phone to be checked and accepted mail, the operations such as view Internet webpage, smart mobile phone has largely covered the function of computer, bring a lot of conveniences to people, as flexibility: smart mobile phone, with respect to computer, has light characteristics, very applicable carrying; Recreational, smart mobile phone has transducer miscellaneous, utilizes these transducers can realize compass, the functions such as upset turn off the alarm; Real-time, by Virtual network operator, smart mobile phone is connecting Internet whenever and wherever possible, and message has more real-time.Yet for all mobile application developers and Yan Douhui faces a problem, that is exactly how to the application of having issued, to use state, frequency of utilization to do statistics, if application has redaction to issue, how to notify user mobile phone terminal?
Existing implementation is the mode that adopts training in rotation, by client, regularly initiates request, and whether the data of paying close attention to this client of inquiry service end change.Obviously, the drawback of this scheme is that real-time is too poor.Yet the mobile application propelling movement scheme based on the XMPP agreement just can solve the problem faced above, by keeping user mobile phone end and long a connection of server end, thereby can accomplish immediately efficiently message push to user mobile phone.
It is real-time that this scheme has message push, the network traffics less, and electric quantity consumption is also less.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of mobile application propelling movement scheme based on the XMPP agreement, to solve prior art, realizes pushing the poor drawback of real-time in mobile Internet.
For achieving the above object, the invention provides a kind of mobile application propelling movement scheme based on the XMPP agreement, comprise link management layer, message encoding and decoding layer, safety certification layer and open interface layer program;
Described link management layer program, for: IP based network is set up reliable and stable link, and provides long and connect heartbeat and survey mechanism, and while causing linking disconnection due to non-controlled reason, automatically the detection of link and reconnecting and the broadcast of link connection state.
Described message encoding and decoding layer program, for: realize the Code And Decode to the XMPP agreement, message context associate management, and the support of XMPP Extended Protocol.
Described safety certification layer program, for: realize on the XMPP connecting channel carrying out safe and reliable transmission, prevent that the content of transmission from being intercepted and distorting.
Described open interface OpenAPI program, for: service end externally exposes access interface, makes third party's system can easily and be easy to use the notice of mobile application to promote service.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is system configuration schematic diagram in the embodiment of the present invention one;
Fig. 2 is schematic flow sheet in the embodiment of the present invention one;
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.Obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
Embodiment mono-, referring to Fig. 1, and Fig. 2.
The invention provides a kind of mobile application data based on XMPP and push scheme, described XMPP push server, for: receive the propelling movement request of application server, the request of propelling movement comprises the propelling movement content and pushes object, by the XMPP agreement, is sent to mobile application terminal.
The course of work of said system, referring to Fig. 2, specifically comprises the following steps:
Step 1, mobile terminal starts after application the connection request that can initiate with push server first, at first, sends the agreement of consulting safe transmission, after receiving the negotiation security protocol that push server returns, just with this kind of agreement, carries out the message transmission;
Step 2, mobile terminal sends registration request first, sends the register Extended Protocol request of an XMPP, and the information such as device number of this mobile terminal send in the lump simultaneously, and push server receives that response shows to be registered to the push server success.This request only just sends when mobile terminal is accessed first.
Step 3, mobile terminal sends and logs in request, after the push server authentication success, returns to success response.
Step 4, third party's system, due to certain service needed, by the open interface of push server, sends the PUSH message notice request to it.
Step 5, push server is searched the device number that this request pushes after receiving this propelling movement request in database, with this, sending out notice is pushed on the mobile terminal of appointment.
Step 6, after push server finds the device number of corresponding mobile terminal, be about to sending out notice and be pushed to this mobile terminal.
Therefore the mobile application data of a kind of XMPP provided by the invention pushes scheme, and following advantage is arranged.
(1) reliability is high
The present invention uses the long stable channels connected based on TCP, and message is reliable and stable in Internet Transmission, so the present invention has the characteristics of high reliability.
(2) real-time is high
The present invention uses and carries out message push based on XMPP, and message at once sends and do not have delay, and not only efficiency is high but also real-time is also high, so the present invention has the characteristics of high real-time.
(3) safe
The present invention uses the mode of transmission security protocol negotiation, can effectively guarantee the fail safe of the PUSH message of transmission, and difficult quilt is intercepted and captured and distorted.
(4) implement simply, to promote easily
The content protocol pushed can be by concrete application program customized, the communication class application program can be used the present invention to realize the live chat message push, the news category application program can be used the present invention to realize that news pushes, unique being restricted to of agreement, the word of every propelling movement content must be less than the number upper limit of note word, so the present invention has the characteristics of applied range.
The above is only the specific embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (7)
1. the mobile application data method for pushing based on XMPP, is characterized in that, comprises link management layer program;
Described link management layer program, for: IP based network is set up reliable and stable link, and provides long and connect heartbeat and survey mechanism, and while causing linking disconnection due to non-controlled reason, automatically the detection of link and reconnecting and the broadcast of link connection state.
2. the mobile application data method for pushing based on XMPP, is characterized in that, comprises message encoding and decoding layer program;
Described message encoding and decoding layer program, for: realize the Code And Decode to the XMPP agreement, message context associate management, and the support of XMPP Extended Protocol.
3. the mobile application data method for pushing based on XMPP, is characterized in that, comprises message safety authentication layers program;
Described safety certification layer program, for: realize on the XMPP connecting channel carrying out safe and reliable transmission, prevent that the content of transmission from being intercepted and distorting.
4. the mobile application data method for pushing based on XMPP, is characterized in that, comprises open interface OpenAPI program;
Described open interface OpenAPI program, for: service end externally exposes access interface, makes third party's system can easily and be easy to use the notice of mobile application to promote service.
5. method according to claim 1, is characterized in that, also comprises: the management of XMPP connecting link route, service end can support the mode with cluster extending transversely to dispose, thereby supports the high concurrent and high performance requirements of connecting link how long.
6. method according to claim 1, is characterized in that, also comprises: during for an a plurality of application of mobile terminal, only keep a background service, i.e. same long the connection used in many application, rather than a connection of an application.
7. method according to claim 2, is characterized in that, also comprises: NameSpace in the XMPP agreement is simplified, optimize transfer structure in the XMPP agreement, thereby reduce the shared bandwidth of Internet Transmission.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310317956XA CN103442028A (en) | 2013-07-24 | 2013-07-24 | Mobile application data pushing method based on XMPP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310317956XA CN103442028A (en) | 2013-07-24 | 2013-07-24 | Mobile application data pushing method based on XMPP |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103442028A true CN103442028A (en) | 2013-12-11 |
Family
ID=49695693
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310317956XA Pending CN103442028A (en) | 2013-07-24 | 2013-07-24 | Mobile application data pushing method based on XMPP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103442028A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104219296A (en) * | 2014-08-25 | 2014-12-17 | 华中科技大学 | Android cloud pushing method and system |
CN105634912A (en) * | 2014-11-19 | 2016-06-01 | 镇江金软计算机科技有限责任公司 | Message pushing method based on Android system |
CN107835150A (en) * | 2017-09-15 | 2018-03-23 | 广州唯品会研究院有限公司 | A kind of full media customer service dispatching method and system |
CN108512586A (en) * | 2018-04-17 | 2018-09-07 | Oppo广东移动通信有限公司 | Signal processing method and device, electronic equipment, computer readable storage medium |
CN109784895A (en) * | 2018-12-12 | 2019-05-21 | 四川商通实业有限公司 | The unified access method and its system of multi-thread upper trade company's list platform |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557399A (en) * | 2009-05-20 | 2009-10-14 | 深圳市汇海科技开发有限公司 | Method for compression and decompression of XMPP protocol transmission data |
CN102438027A (en) * | 2012-01-17 | 2012-05-02 | 深圳市乐唯科技开发有限公司 | System and method for expanding extensible messaging and presence protocol (XMPP) server open platform |
CN102801742A (en) * | 2012-08-31 | 2012-11-28 | 江苏景云云计算有限公司 | XMPP (Extensible Messaging and Presence Protocol)-based messaging system and method |
CN103001860A (en) * | 2012-12-20 | 2013-03-27 | 北京思特奇信息技术股份有限公司 | Achieving system for converged communication Web instant messages |
-
2013
- 2013-07-24 CN CN201310317956XA patent/CN103442028A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101557399A (en) * | 2009-05-20 | 2009-10-14 | 深圳市汇海科技开发有限公司 | Method for compression and decompression of XMPP protocol transmission data |
CN102438027A (en) * | 2012-01-17 | 2012-05-02 | 深圳市乐唯科技开发有限公司 | System and method for expanding extensible messaging and presence protocol (XMPP) server open platform |
CN102801742A (en) * | 2012-08-31 | 2012-11-28 | 江苏景云云计算有限公司 | XMPP (Extensible Messaging and Presence Protocol)-based messaging system and method |
CN103001860A (en) * | 2012-12-20 | 2013-03-27 | 北京思特奇信息技术股份有限公司 | Achieving system for converged communication Web instant messages |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104219296A (en) * | 2014-08-25 | 2014-12-17 | 华中科技大学 | Android cloud pushing method and system |
CN105634912A (en) * | 2014-11-19 | 2016-06-01 | 镇江金软计算机科技有限责任公司 | Message pushing method based on Android system |
CN107835150A (en) * | 2017-09-15 | 2018-03-23 | 广州唯品会研究院有限公司 | A kind of full media customer service dispatching method and system |
CN108512586A (en) * | 2018-04-17 | 2018-09-07 | Oppo广东移动通信有限公司 | Signal processing method and device, electronic equipment, computer readable storage medium |
CN109784895A (en) * | 2018-12-12 | 2019-05-21 | 四川商通实业有限公司 | The unified access method and its system of multi-thread upper trade company's list platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102546794B (en) | Method for directly communicating browser client with back-end server as well as gateway and communication system | |
CN103442028A (en) | Mobile application data pushing method based on XMPP | |
CN101795222B (en) | Multi-stage forward service system and method | |
WO2014059813A1 (en) | Data transmission method and terminal device | |
CN103220292A (en) | Cross-safe-area data transmission method and system | |
WO2015078140A1 (en) | Internet authentication method for wireless network | |
CN103369515A (en) | Internet access method used for mobile terminal and free internet-access system | |
CN104517154A (en) | E-bike reservation and renting system based on Internet of Things | |
CN102724322A (en) | Remote control method and device | |
CN103780641A (en) | Cloud desktop access method, home gateway and system | |
WO2010148914A1 (en) | Method and apparatus for creating dial-up service | |
JPH11265347A (en) | Distributed network computing system, information switching device and method to be used for the system and computer readable storage medium storing information switching method program information | |
CN108683653A (en) | A kind of active message push system based on WebSocket | |
CN103209392A (en) | Cross-process and multi-application massage pushing method and device | |
CN103618967A (en) | Method and device for interaction of mobile terminal and television end | |
WO2012000227A1 (en) | Method of p2p video communication implemented on web page | |
CN107332894B (en) | Live broadcast method, device and system, server and storage medium | |
EP2693691B1 (en) | Method and apparatus for initializing gateway in device management system | |
CN103716230A (en) | Message sending method, device and server | |
CN101599921A (en) | A kind of enterprise instant communication system and document transmission method thereof | |
CN103731549A (en) | Method for managing messages of smartphone terminals | |
CN102694788B (en) | Method and system for providing client side remote service from server side | |
CN103731449A (en) | Method, system and device for pushing information to mobile terminal | |
CN112491614B (en) | Configuration information online automatic validation method and system for embedded equipment | |
CN102413454B (en) | Method for data transmission and always online gateway (AOG) system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20131211 |