CN105634912A - Message pushing method based on Android system - Google Patents

Message pushing method based on Android system Download PDF

Info

Publication number
CN105634912A
CN105634912A CN201410661572.4A CN201410661572A CN105634912A CN 105634912 A CN105634912 A CN 105634912A CN 201410661572 A CN201410661572 A CN 201410661572A CN 105634912 A CN105634912 A CN 105634912A
Authority
CN
China
Prior art keywords
message
client
android
xmpp
method based
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
Application number
CN201410661572.4A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHENJIANG JINRUAN COMPUTER TECHNOLOGY CO LTD
Original Assignee
ZHENJIANG JINRUAN COMPUTER TECHNOLOGY CO LTD
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZHENJIANG JINRUAN COMPUTER TECHNOLOGY CO LTD filed Critical ZHENJIANG JINRUAN COMPUTER TECHNOLOGY CO LTD
Priority to CN201410661572.4A priority Critical patent/CN105634912A/en
Publication of CN105634912A publication Critical patent/CN105634912A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a message pushing method based on an Android system, which is realized based on XMPP (Extensible Messaging and Presence Protocol). The XMPP is a protocol based on XML (Extensive Markup Language), is used for instant messaging and on-line detection, and allows Internet users to transmit instant messages to any other people on the Internet. The message pushing method provides a Tomcat-based server application and an Android development jar package. When an XMPP component receives a pushed message, the message is broadcast in a certain format, so as to inform client other application to receive and process the message. When the client application needs to transmit an instant message to a server or other client, the message only needs to be broadcast in a certain format, the XMPP component can automatically receive the message and transmit the message to the specified other client. The message pushing method of the invention is simple in integration and simple in setting, in addition, communication of clients adopts a broadcast mode, thereby bringing great flexibility and expandability to the client application.

Description

A kind of information push method based on android system
Technical field
The present invention relates to a kind of information push method based on android system, belong to field of computer technology.
Background technology
Push function is more and more important in mobile phone application and development, has become as the essential option of mobile phone development. Message pushes, it is simply that the information needed by regularly transmitting user on the internet reduces a new technique of information overload. Push technology, by automatically delivering information to user, reduces the time of search on network. It is searched for according to the interest of user, filtration information, and it is regularly pushed to user, helps user to excavate valuable information expeditiously
When exploitation needs the Mobile solution with server interaction, it is substantially all needs and server interacts, including uploading data to server, from server, obtain data simultaneously.
Generally, between client and server, telecommunication customer end is actively, but this to exist for problem be exactly have renewal or server to issue a notice once server data client to be waited to connect to client could to realize. This mode makes message lose real-time.
Summary of the invention
The present invention relates to a kind of information push method based on android system, the propelling movement of the method Android message is based on XMPP and realizes Android propelling movement. It is used for instant message and on-line water flushing, and Internet user can be allowed to send instant message to all other men on the Internet.
Specific as follows:
1.Android message pushes assembly and is made up of server section and client part. Every part is all made up of XMPP assembly and external interface assembly. Connection management between XMPP assembly charge server and Android client, message communication, external interface assembly is responsible for receiving the order of application system, client application, sends the notification message received to application system.
2.Android message components provides the server based on Tomcat to apply and Android develops jar bag. Wherein applying based on the server of Tomcat and directly dispose on Tomcat, Android develops jar bag and introduces Android project. The server application of Android message components Tomcat is directly deployed in Tomcat, and port numbers arbitrarily sets.
3. when XMPP assembly receives PUSH message, broadcasting this message according to certain format, other application of notice client receive and process this message. Client application need to server or other clients send instant message time, only need to broadcast this message by certain format, XMPP assembly will this information and sending of automatic reception to other clients specified.
4. client can install specific application software, as long as it supports this transportation protocol. When service end active push Android message, client can receive corresponding message.
5. client possesses disconnection reconnecting, receives confirmation, reads the functions such as confirmation, message transmission, order execution, it is ensured that message can be pushed to client, also ensures that client can receive, read message simultaneously.
6. server comprises two parts, and one is the XMPP service intercepted on 5222 ports, is responsible for the XMPPConnection class with client and communicates, and effect is that user registers and authentication, and sends sending out notice message. Another part is Web server, adopts the http server of a lightweight, is responsible for receiving the Web request of user.
Detailed description of the invention
Embodiment one
Use MyEclipse8.6 as developing instrument, use special data base MySQL on market to set up the data base required for system, use NavicatforMySQL as database management tools.
Specific as follows:
1.Android message pushes assembly and is made up of server section and client part. Every part is all made up of XMPP assembly and external interface assembly. Connection management between XMPP assembly charge server and Android client, message communication, external interface assembly is responsible for receiving the order of application system, client application, sends the notification message received to application system.
2.Android message components provides the server based on Tomcat to apply and Android develops jar bag. Wherein applying based on the server of Tomcat and directly dispose on Tomcat, Android develops jar bag and introduces Android project. The server application of Android message components Tomcat is directly deployed in Tomcat, and port numbers arbitrarily sets.
3. when XMPP assembly receives PUSH message, broadcasting this message according to certain format, other application of notice client receive and process this message. Client application need to server or other clients send instant message time, only need to broadcast this message by certain format, XMPP assembly will this information and sending of automatic reception to other clients specified.
4. client can install specific application software, as long as it supports this transportation protocol. When service end active push Android message, client can receive corresponding message.
5. client possesses disconnection reconnecting, receives confirmation, reads the functions such as confirmation, message transmission, order execution, it is ensured that message can be pushed to client, also ensures that client can receive, read message simultaneously.
6. server comprises two parts, and one is the XMPP service intercepted on 5222 ports, is responsible for the XMPPConnection class with client and communicates, and effect is that user registers and authentication, and sends sending out notice message. Another part is Web server, adopts the http server of a lightweight, is responsible for receiving the Web request of user.
In addition to the implementation, the present invention can also have other embodiments. All employings are equal to replacement or the technical scheme of equivalent transformation formation, all fall within the protection domain of application claims.

Claims (7)

1. the present invention relates to a kind of information push method based on android system, it is characterised in that be based on XMPP and realize Android propelling movement; It is used for instant message and on-line water flushing, and Internet user can be allowed to send instant message to all other men on the Internet.
2. a kind of information push method based on android system according to claim 1, it is characterised in that Android message pushes assembly and is made up of server section and client part, and every part is all made up of XMPP assembly and external interface assembly.
3. a kind of information push method based on android system according to claim 1, it is characterized in that Android message components provides the server based on Tomcat to apply and Android develops jar bag, wherein applying based on the server of Tomcat and directly dispose on Tomcat, Android develops jar bag and introduces Android project.
4. a kind of information push method based on android system according to claim 1, it is characterised in that when XMPP assembly receives PUSH message, will broadcast this message according to certain format, and other application of notice client receive and also process this message.
5. a kind of information push method based on android system according to claim 1, it is characterized in that client can install specific application software, as long as it supports this transportation protocol, when service end active push Android message, client can receive corresponding message.
6. a kind of information push method based on android system according to claim 1, it is characterized in that client possesses disconnection reconnecting, receives confirmation, reads the functions such as confirmation, message transmission, order execution, guarantee that message can be pushed to client, also ensure that client can receive, read message simultaneously.
7. a kind of information push method based on android system according to claim 1, it is characterized in that server comprises two parts, one is the XMPP service intercepted on 5222 ports, it is responsible for the XMPPConnection class with client to communicate, effect is that user registers and authentication, and sends sending out notice message.
CN201410661572.4A 2014-11-19 2014-11-19 Message pushing method based on Android system Pending CN105634912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410661572.4A CN105634912A (en) 2014-11-19 2014-11-19 Message pushing method based on Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410661572.4A CN105634912A (en) 2014-11-19 2014-11-19 Message pushing method based on Android system

Publications (1)

Publication Number Publication Date
CN105634912A true CN105634912A (en) 2016-06-01

Family

ID=56049441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410661572.4A Pending CN105634912A (en) 2014-11-19 2014-11-19 Message pushing method based on Android system

Country Status (1)

Country Link
CN (1) CN105634912A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442028A (en) * 2013-07-24 2013-12-11 佳都新太科技股份有限公司 Mobile application data pushing method based on XMPP
CN103731802A (en) * 2012-10-12 2014-04-16 上海宝信软件股份有限公司 Device management method based on Android mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731802A (en) * 2012-10-12 2014-04-16 上海宝信软件股份有限公司 Device management method based on Android mobile terminal
CN103442028A (en) * 2013-07-24 2013-12-11 佳都新太科技股份有限公司 Mobile application data pushing method based on XMPP

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
变胖变强大: "Android消息推送", 《CSDN HTTP://BLOG.CSDN.NETCOCO_WONDERFULARTICLEDETAILS27175613》 *

Similar Documents

Publication Publication Date Title
CN103069755B (en) Use the method and system that the instant message of multiple client instance transmits
KR101233263B1 (en) System and method for providing push service using feedback information
CN106921717B (en) Message pushing method and system based on mobile terminal
KR20140029306A (en) Push message service system and method thereof
WO2006101556A3 (en) Enabling application wakeup on a mobile device with a hybrid client
CA2539468A1 (en) System and method for asynchronous wireless services using reverse service schema generation
WO2014029276A1 (en) Communication method and device
KR102138103B1 (en) Method of application connection for devices in a network
WO2007087306A3 (en) System operator independent server alerted synchronization system and methods
CN104539510A (en) Multi-protocol-based information pushing system and method
US9332406B2 (en) Method, apparatus, and system for updating contact information
CN103476027A (en) File transmission method for mobile terminal
CN102130853A (en) Group message interaction realization method and system
CN104871481A (en) Method and apparatus for cloud based power management of local network devices
WO2009086199A3 (en) Method and system for managing the reception of messages in a communication network
CN102185701A (en) Method and system for realizing group information interaction
CN103095748A (en) Method, server and system capable of sending updated microblog information of friend
WO2015027721A1 (en) Terminal status subscription method, apparatus and system
CA2533543A1 (en) System and method for managing communication for component applications
KR20190008595A (en) Gateway server for relaying between iot device on non-tcp/ip network and iot server based on onem2m and method thereof
JP2013077956A (en) Mobile terminal management system
US20100049804A1 (en) Instant Messaging
EP3015990B1 (en) Information processing device, and destination information updating method and program
Mahajan et al. Design of chatting application based on android bluetooth
CN105634912A (en) Message pushing method based on Android 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: 20160601