[go: up one dir, main page]

CN103874035B - A kind of Mobile terminal message push method and equipment - Google Patents

A kind of Mobile terminal message push method and equipment Download PDF

Info

Publication number
CN103874035B
CN103874035B CN201210539529.1A CN201210539529A CN103874035B CN 103874035 B CN103874035 B CN 103874035B CN 201210539529 A CN201210539529 A CN 201210539529A CN 103874035 B CN103874035 B CN 103874035B
Authority
CN
China
Prior art keywords
connection channel
mobile terminal
long connection
short message
push server
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.)
Active
Application number
CN201210539529.1A
Other languages
Chinese (zh)
Other versions
CN103874035A (en
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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201210539529.1A priority Critical patent/CN103874035B/en
Publication of CN103874035A publication Critical patent/CN103874035A/en
Application granted granted Critical
Publication of CN103874035B publication Critical patent/CN103874035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开一种移动终端消息推送方法及设备,该方法包括:移动终端接收到短消息网关推送的短消息后,将短消息分发至移动终端的应用程序,并检测本设备与推送服务器之间的长连接通道是否建立;若本设备与推送服务器之间的长连接通道未建立,则向推送服务器发起建立长连接通道的请求,并在长连接通道建立后保持该长连接通道;其中,短消息是推送服务器在其与移动终端之间的长连接通道未建立,或者,通过长连接通道向移动终端推送消息失败的情况下,通过短消息网关推送的;当移动终端上配置的长连接休眠事件被触发,且本设备与推送服务器之间建立有长连接通道,则移动终端断开本设备与推送服务器之间的长连接通道。

The invention discloses a mobile terminal message push method and device. The method comprises: after the mobile terminal receives the short message pushed by the short message gateway, distributes the short message to the application program of the mobile terminal, and detects the connection between the device and the push server. Whether the long-term connection channel is established; if the long-term connection channel between the device and the push server is not established, it will initiate a request to the push server to establish a long-term connection channel, and maintain the long-term connection channel after the long-term connection channel is established; among them, the short The message is pushed by the push server through the short message gateway when the long connection channel between itself and the mobile terminal has not been established, or when the push message to the mobile terminal fails through the long connection channel; when the long connection configured on the mobile terminal is dormant When the event is triggered and a long connection channel is established between the device and the push server, the mobile terminal disconnects the long connection channel between the device and the push server.

Description

一种移动终端消息推送方法及设备A mobile terminal message push method and device

技术领域technical field

本发明涉及通信网络技术领域,尤其涉及一种移动终端消息推送方法及设备。The present invention relates to the technical field of communication networks, in particular to a mobile terminal message pushing method and device.

背景技术Background technique

移动终端推送服务是指服务器定向将信息实时送达移动终端的服务。移动终端推送服务的原理很简单,就是通过建立一条移动终端与服务器的连接链路,当有推送消息需要发送到移动终端时,通过此链路发送即可。The mobile terminal push service refers to the service in which the server directs information to the mobile terminal in real time. The principle of the mobile terminal push service is very simple, that is, by establishing a connection link between the mobile terminal and the server, when there is a push message to be sent to the mobile terminal, it can be sent through this link.

现有的移动终端消息推送方案主要可以分为如下两类:Existing mobile terminal message push solutions can be mainly divided into the following two categories:

1、通过短消息方式实现消息推送。由服务器发送一条特殊格式的短消息到移动终端的推送服务客户端,该客户端截获并解析该短消息以获取消息内容,或者通过短消息中包含的指令或URL(Uniform/Universal Resource Locator,统一资源定位符)获取更多内容。WAP-PUSH(推入信息)均采用类似的机制实现。1. Realize message push through short message. The server sends a short message in a special format to the push service client of the mobile terminal, and the client intercepts and parses the short message to obtain the content of the message, or through the instruction or URL (Uniform/Universal Resource Locator, unified resource locator) for more content. WAP-PUSH (push information) is implemented using a similar mechanism.

2、通过建立TCP(Transmission Control Protocol,传输控制协议)长连接实现消息推送。移动终端的推送服务客户端会与服务器一直保持TCP长连接,以实现消息的实时到达。长连接一般通过HTTP(HTTP-Hypertext transfer protocol,超文本传送协议)Long-pull(长连接)的方式实现,即客户端循环的发起间隔为一定时长(比如10分钟)的HTTP请求,与服务器建立连接后,服务器处于等待状态,当有消息需要推送时,服务器将需要推送的消息返回给客户端。2. Realize message push by establishing TCP (Transmission Control Protocol, Transmission Control Protocol) long connection. The push service client of the mobile terminal will always maintain a TCP long connection with the server to realize the real-time arrival of the message. Long-term connections are generally implemented through HTTP (HTTP-Hypertext transfer protocol, hypertext transfer protocol) Long-pull (long connection), that is, the client cycle initiates HTTP requests with a certain period of time (such as 10 minutes), and establishes with the server After the connection, the server is in a waiting state. When there is a message to be pushed, the server returns the message to be pushed to the client.

在实际应用中,服务器和移动终端之间是通过一种方式实现消息推送的,即通过短消息方式或者TCP长连接方式实现,而这两种消息推送方式分别存在各自的问题:In practical applications, the message push is implemented between the server and the mobile terminal in one way, that is, through the short message method or the TCP long connection method, and these two message push methods have their own problems:

1、基于短消息实现的移动终端消息推送,一般需要移动运营商的短消息网关支持,从而费用较高。而且短消息方式存在数据容量小,传输时延较长等局限,不适用于发送频率高,数据量大和对实时性要求高的场景。1. The mobile terminal message push based on the short message generally needs the support of the short message gateway of the mobile operator, so the cost is relatively high. Moreover, the short message method has limitations such as small data capacity and long transmission delay, and is not suitable for scenarios with high sending frequency, large data volume, and high real-time requirements.

2、基于长连接方式实现的移动终端消息推送,会增加移动终端的耗电量,尤其是当网络状况不好的情况下,移动终端自身的重连机制会造成耗电量倍增,而且会导致推送消息到达延时。此外,长连接方式会消耗过多的服务器端连接资源,从而使得每个服务器可服务的移动终端客户端数量相对较少。2. The mobile terminal message push based on the long connection method will increase the power consumption of the mobile terminal, especially when the network condition is not good, the reconnection mechanism of the mobile terminal itself will double the power consumption and cause Push message arrival delay. In addition, the persistent connection method consumes too many server-side connection resources, so that the number of mobile terminal clients that each server can serve is relatively small.

因此,亟需移动终端消息推送方案出现,用以解决上述技术问题。Therefore, there is an urgent need for a mobile terminal message push solution to solve the above technical problems.

发明内容Contents of the invention

本发明实施例提供了一种移动终端消息推送方法及设备,用以增强移动终端消息推送的灵活性以及对网络环境的适应性。The embodiment of the present invention provides a mobile terminal message pushing method and device, which are used to enhance the flexibility of the mobile terminal message pushing and the adaptability to the network environment.

为了实现上述目的,本发明实施例采用以下技术手段:In order to achieve the above purpose, the embodiment of the present invention adopts the following technical means:

本发明实施例提供一种移动终端消息推送方法,所述方法包括:An embodiment of the present invention provides a mobile terminal message push method, the method comprising:

移动终端接收到短消息网关推送的短消息后,将所述短消息分发至移动终端的应用程序,并检测本设备与推送服务器之间的长连接通道是否建立;若本设备与推送服务器之间的长连接通道未建立,则向所述推送服务器发起建立长连接通道的请求,并在长连接通道建立后保持该长连接通道;其中,所述短消息是所述推送服务器在其与所述移动终端之间的长连接通道未建立,或者,通过长连接通道向所述移动终端推送消息失败的情况下,通过短消息网关推送的;After the mobile terminal receives the short message pushed by the short message gateway, the short message is distributed to the application program of the mobile terminal, and detects whether the long connection channel between the device and the push server is established; If the long connection channel is not established, a request for establishing a long connection channel is initiated to the push server, and the long connection channel is maintained after the long connection channel is established; wherein, the short message is between the push server and the The long connection channel between the mobile terminals is not established, or, in the case of failure to push the message to the mobile terminal through the long connection channel, it is pushed through the short message gateway;

当所述移动终端上配置的长连接休眠事件被触发,且本设备与所述推送服务器之间建立有长连接通道时,所述移动终端断开本设备与所述推送服务器之间的长连接通道。When the long connection dormancy event configured on the mobile terminal is triggered, and a long connection channel is established between the device and the push server, the mobile terminal disconnects the long connection between the device and the push server aisle.

本发明实施例还提供一种移动终端,包括:接收模块、分发模块、处理模块以及收发模块;The embodiment of the present invention also provides a mobile terminal, including: a receiving module, a distribution module, a processing module, and a transceiver module;

接收模块,用于接收到短消息网关推送的短消息;其中,所述短消息是所述推送服务器在其与所述移动终端之间的长连接通道未建立,或者,通过长连接通道向所述移动终端推送消息失败的情况下,通过短消息网关推送的;The receiving module is used to receive the short message pushed by the short message gateway; wherein, the short message is that the long connection channel between the push server and the mobile terminal has not been established, or the long connection channel is sent to the mobile terminal through the long connection channel In the case that the mobile terminal fails to push the message, it is pushed through the short message gateway;

分发模块,用于将所述接收模块接收到的短消息分发至移动终端的应用程序;A distribution module, configured to distribute the short message received by the receiving module to the application program of the mobile terminal;

处理模块,用于检测本设备与推送服务器之间的长连接通道是否建立,若未建立,则通过所述收发模块向所述推送服务器发起建立长连接通道的请求,并在长连接通道建立后保持该长连接通道;否则,保持该长连接通道;以及,当所述移动终端上配置的长连接休眠事件被触发,且本设备与所述推送服务器之间建立有长连接通道时,断开本设备与所述推送服务器之间的长连接通道。The processing module is used to detect whether the long connection channel between the device and the push server is established, if not established, send a request for establishing a long connection channel to the push server through the transceiver module, and after the long connection channel is established Keep the long connection channel; otherwise, keep the long connection channel; and, when the long connection dormancy event configured on the mobile terminal is triggered, and when a long connection channel is established between the device and the push server, disconnect A long connection channel between the device and the push server.

本发明实施例提供的移动终端消息推送方案中,移动终端通过采用长连接休眠机制,控制移动终端与推送服务器之间的长连接通道的连接或断开,在保证推送消息传输实时性的前提下,实现传输效率、运行成本和移动终端耗电量之间的最佳平衡。In the mobile terminal message push solution provided by the embodiment of the present invention, the mobile terminal controls the connection or disconnection of the long connection channel between the mobile terminal and the push server by adopting the long connection dormancy mechanism, under the premise of ensuring the real-time transmission of the push message , to achieve the best balance between transmission efficiency, operating cost and power consumption of mobile terminals.

本发明实施例还提供一种移动终端消息推送方法,所述方法包括:The embodiment of the present invention also provides a mobile terminal message push method, the method comprising:

推送服务器接收应用服务器发送的推送消息后,检测所述推送消息的目的移动终端与所述推送服务器之间的长连接通道是否建立;After the push server receives the push message sent by the application server, it detects whether the long connection channel between the destination mobile terminal of the push message and the push server is established;

若长连接通道未建立,则所述推送服务器通过短消息网关,将所述推送消息以短消息方式发送给所述目的移动终端;若长连接通道已建立,则所述推送服务器通过已建立的长连接通道,将所述推送消息推送给所述目的移动终端。If the long connection channel is not established, then the push server sends the push message to the destination mobile terminal in a short message through the short message gateway; if the long connection channel has been established, then the push server passes the established A long connection channel, pushing the push message to the destination mobile terminal.

本发明实施例还提供一种推送服务器,包括:接收模块、处理模块、发送模块以及收发模块;The embodiment of the present invention also provides a push server, including: a receiving module, a processing module, a sending module, and a sending and receiving module;

接收模块,用于接收应用服务器发送的推送消息;The receiving module is used to receive the push message sent by the application server;

处理模块,用于在所述接收模块接收到应用服务器发送的推送消息后,检测所述推送消息的目的移动终端与本设备之间的长连接通道是否建立;若长连接通道未建立,则指示所述发送模块通过短消息网关,将所述推送消息以短消息方式发送给所述目的移动终端;若长连接通道已建立,则指示所述收发模块通过已建立的长连接通道,将所述推送消息推送给所述目的移动终端。The processing module is used to detect whether the long connection channel between the destination mobile terminal of the push message and the device is established after the receiving module receives the push message sent by the application server; if the long connection channel is not established, then indicate The sending module sends the push message to the destination mobile terminal as a short message through the short message gateway; if the long connection channel has been established, then instructs the transceiver module to send the push message to the mobile terminal through the established long connection channel. The push message is pushed to the destination mobile terminal.

本发明实施例提供的移动终端消息推送方案中,推送服务器优先通过已建立的长连接通道向移动终端推送消息,在长连接方式不可用时,通过短消息网关向移动终端推送消息,以相对少成本实现实时数据推送,避免了过长的推送消息延时,解决了移动终端不断进行连接重试造成的耗电量激增的问题,增强了移动终端消息推送的灵活性以及对网络环境的适应性,减小推送服务器的资源消耗。In the mobile terminal message push solution provided by the embodiment of the present invention, the push server preferentially pushes messages to the mobile terminal through the established long connection channel, and when the long connection mode is not available, pushes the message to the mobile terminal through the short message gateway, with a relatively low cost. Realize real-time data push, avoid too long push message delay, solve the problem of power consumption surge caused by continuous connection retry of mobile terminal, enhance the flexibility of mobile terminal message push and adaptability to network environment, Reduce the resource consumption of the push server.

附图说明Description of drawings

图1为本发明实施例的网络架构示意图;FIG. 1 is a schematic diagram of a network architecture of an embodiment of the present invention;

图2为本发明实施例提供的推送服务器推送消息的流程示意图;FIG. 2 is a schematic flow diagram of a push message provided by a push server according to an embodiment of the present invention;

图3为本发明实施例提供的移动终端接收推送消息的流程示意图;FIG. 3 is a schematic flow diagram of a mobile terminal receiving a push message according to an embodiment of the present invention;

图4为本发明实施例提供的移动终端结构示意图;FIG. 4 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;

图5为本发明实施例提供的推送服务器结构示意图。FIG. 5 is a schematic structural diagram of a push server provided by an embodiment of the present invention.

具体实施方式Detailed ways

针对现有技术存在的上述问题,本发明实施例提供了一种移动终端消息推送方案。下面结合附图对本发明实施例进行详细描述。In view of the above-mentioned problems in the prior art, an embodiment of the present invention provides a mobile terminal message push solution. Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

图1示出了本发明实施例所适用的系统架构,其中包括:移动终端11、推送服务器12、应用服务器13和短消息网关14。应用服务器13用于下发推送消息,推送服务器12用于将推送消息推送至移动终端11;短消息网关14主要用于接收推送服务器12发送的推送消息,并以短消息方式发送至移动终端11;移动终端11可以是手机、平板电脑等支持SIM(Subscriber Identity Module客户识别模块)卡的移动设备,或是其它能够与网络侧进行无线通信的移动设备。FIG. 1 shows the applicable system architecture of the embodiment of the present invention, which includes: a mobile terminal 11 , a push server 12 , an application server 13 and a short message gateway 14 . The application server 13 is used to send push messages, and the push server 12 is used to push the push messages to the mobile terminal 11; the short message gateway 14 is mainly used to receive the push messages sent by the push server 12, and send them to the mobile terminal 11 in a short message mode The mobile terminal 11 can be a mobile device such as a mobile phone or a tablet computer that supports a SIM (Subscriber Identity Module) card, or other mobile devices capable of wireless communication with the network side.

以下结合上述系统架构和图2,详细说明推送服务器推送消息的流程,如图所示,该流程包括以下步骤:The process of pushing messages by the push server will be described in detail below in combination with the above system architecture and Figure 2. As shown in the figure, the process includes the following steps:

步骤201,推送服务器接收应用服务器发送的推送消息。Step 201, the push server receives the push message sent by the application server.

具体的,推送消息的发送目标字段中携带有目的移动终端信息,例如,移动终端的手机号码、设备ID等,还可携带有令牌。Specifically, the sending target field of the push message carries information about the target mobile terminal, for example, the mobile phone number and device ID of the mobile terminal, and may also carry a token.

推送服务器接收到应用服务器发送的推送消息后,按照接收的先后顺序,在本地生成消息队列,推送服务器根据消息队列中推送消息的顺序,进行推送服务处理。优选的,推送服务器可以根据目的移动终端信息,划分消息队列,并按照接收时间顺序对消息队列中的消息进行排序,例如,将同一移动终端手机号码对应的待推送消息,按照接收的先后顺序,放入该移动终端手机号码对应的消息队列。After the push server receives the push messages sent by the application server, it generates a message queue locally in the order in which it is received, and the push server performs push service processing according to the order of the push messages in the message queue. Preferably, the push server can divide the message queue according to the information of the destination mobile terminal, and sort the messages in the message queue according to the order of receiving time. Put it into the message queue corresponding to the mobile phone number of the mobile terminal.

步骤202,推送服务器根据推送消息携带的目的移动终端信息,定位推送服务器与移动终端之间的长连接通道标识,其中,长连接通道标识可以为长连接通道地址。Step 202, the push server locates the persistent connection channel identifier between the push server and the mobile terminal according to the destination mobile terminal information carried in the push message, wherein the persistent connection channel identifier may be a persistent connection channel address.

步骤203,推送服务器检测长连接通道标识对应的长连接通道是否建立,若长连接通道已建立,则执行步骤204;若长连接通道未建立,则执行步骤205-206。In step 203, the push server detects whether the persistent connection channel corresponding to the persistent connection channel identifier is established, and if the persistent connection channel is established, execute step 204; if the persistent connection channel is not established, execute steps 205-206.

步骤204,推送服务器通过已建立的长连接通道,将推送消息推送给目的移动终端。Step 204, the push server pushes the push message to the destination mobile terminal through the established persistent connection channel.

步骤205-206,推送服务器通过短消息网关,将推送消息以短消息方式发送给目的移动终端。In steps 205-206, the push server sends the push message to the destination mobile terminal in the form of a short message through the short message gateway.

具体的,当推送服务器检测到与目的移动终端之间的长连接未建立时,推送服务器将推送消息和目的移动终端信息(例如,IMSI(International MobileSubscriberIdentification Number,国际移动用户识别码)、IMEI(International MobileEquipment Identity,国际移动设备身份码)等通信号码)发送给短消息网关,短消息网关根据目的移动终端信息,以短消息方式将推送消息发送给目的移动终端。Specifically, when the push server detects that the persistent connection with the destination mobile terminal has not been established, the push server will push the message and destination mobile terminal information (for example, IMSI (International Mobile Subscriber Identification Number, International Mobile Subscriber Identification Number), IMEI (International Mobile Subscriber MobileEquipment Identity, international mobile equipment identity code) and other communication numbers) to the short message gateway, and the short message gateway sends the push message to the destination mobile terminal in the form of a short message according to the information of the destination mobile terminal.

进一步的,在上述步骤204中,若推送服务器通过已建立的长连接通道向移动终端推送消息失败,则通过短消息网关,将推送消息以短消息方式推送给目的移动终端。Further, in the above step 204, if the push server fails to push the message to the mobile terminal through the established long connection channel, the push message is pushed to the destination mobile terminal in the form of a short message through the short message gateway.

通过上述流程可以看出,推送服务器优先通过已建立的长连接通道向移动终端推送消息,在长连接方式不可用(包括:长连接通道未建立或者通过长连接通道推送消息失败)时,通过短消息网关向移动终端推送消息,以相对少成本实现实时数据推送,避免了过长的消息延时,解决了移动终端不断进行连接重试造成的耗电量激增的问题,增强了网络环境的适应性,减小推送服务器的资源消耗。It can be seen from the above process that the push server gives priority to pushing messages to the mobile terminal through the established long connection channel. The message gateway pushes messages to mobile terminals, realizes real-time data push at a relatively low cost, avoids excessive message delay, solves the problem of power consumption surge caused by continuous connection retries of mobile terminals, and enhances the adaptability of the network environment performance, reducing the resource consumption of the push server.

为了保证推送服务器能够将大批量的推送消息顺利推送至目的移动终端,还可以在推送服务器上预先设置推送消息数量阈值,当推送服务器上的发往某一移动终端的待推送消息数量达到该阈值,且推送服务器与目的移动终端之间的长连接通道未建立的情况下,推送服务器通过短消息网关向移动终端发送通知短消息,以通知移动终端发起建立长连接通道的请求。移动终端接收到通知短消息后,向推送服务器发起建立长连接通道的请求。当推送服务器和该移动终端之间的长连接通道建立后,推送服务器就可以通过该长连接通道推送大批量的推送消息,保证了推送消息能够及时、有效送达至移动终端。In order to ensure that the push server can push a large number of push messages to the destination mobile terminal smoothly, a threshold value for the number of push messages can also be preset on the push server. , and if the persistent connection channel between the push server and the destination mobile terminal has not been established, the push server sends a notification short message to the mobile terminal through the short message gateway to notify the mobile terminal to initiate a request for establishing a persistent connection channel. After receiving the notification short message, the mobile terminal initiates a request to the push server to establish a persistent connection channel. After the long connection channel between the push server and the mobile terminal is established, the push server can push a large number of push messages through the long connection channel, ensuring that the push messages can be delivered to the mobile terminal in a timely and effective manner.

推送服务器可以采用长连接方式或者短消息方式向移动终端推送消息,移动终端对接收到的推送消息进行处理。以下结合图3,详细说明推送服务器采用短消息方式,通过短消息网关向移动终端推送消息之后,移动终端接收推送的短消息的流程,如图所示,该流程包括以下步骤:The push server may push messages to the mobile terminal in the form of a long connection or a short message, and the mobile terminal processes the received push messages. Below in conjunction with Fig. 3, describe in detail that the push server adopts the short message mode, and after the message is pushed to the mobile terminal by the short message gateway, the mobile terminal receives the flow of the pushed short message, as shown in the figure, the flow includes the following steps:

步骤301,移动终端接收短消息网关推送的短消息。Step 301, the mobile terminal receives the short message pushed by the short message gateway.

具体的,该短消息是推送服务器与移动终端之间的长连接通道未建立,或者,推送服务器通过长连接通道向移动终端推送消息失败的情况下,推送服务器通过短消息网关推送的。Specifically, the short message is pushed by the push server through the short message gateway when the long connection channel between the push server and the mobile terminal has not been established, or when the push server fails to push the message to the mobile terminal through the long connection channel.

步骤302,移动终端将该短消息分发至本设备上的相应客户端应用。Step 302, the mobile terminal distributes the short message to the corresponding client application on the device.

步骤303,移动终端检测本设备与推送服务器之间的长连接通道是否建立,若长连接通道未建立,则执行步骤304;若长连接通道已建立,则保持该长连接通道。In step 303, the mobile terminal detects whether the long-term connection channel between the device and the push server is established, and if the long-term connection channel is not established, then executes step 304; if the long-term connection channel is established, then maintains the long-term connection channel.

移动终端检测本设备与推送服务器之间的长连接通道是否建立的实现过程属于现有技术,在此不再赘述。The implementation process for the mobile terminal to detect whether the long connection channel between the device and the push server is established belongs to the prior art, and will not be repeated here.

步骤304,移动终端向推送服务器发起建立长连接通道的请求,并在长连接通道建立后保持该长连接通道。In step 304, the mobile terminal initiates a request to the push server to establish a persistent connection channel, and maintains the persistent connection channel after the persistent connection channel is established.

具体的,移动终端保持该长连接通道,可以通过以下2种方式实现:Specifically, the mobile terminal maintains the long connection channel, which can be implemented in the following two ways:

方式1、移动终端向推送服务器循环的发起间隔为一定时长的HTTP请求,即在心跳时间到达时,发送HTTP Long-pull请求,以进行长连接的重连;Method 1. The mobile terminal sends an HTTP request to the push server with a cycle interval of a certain period of time, that is, when the heartbeat time arrives, an HTTP Long-pull request is sent to reconnect the long connection;

方式2、移动终端向推送服务器发送心跳检测消息,并通过能否接收到推送服务器返回的响应消息,判断当前长连接通道是否保持,若长连接通道断开,则重新建立长连接通道。Method 2. The mobile terminal sends a heartbeat detection message to the push server, and judges whether the current persistent connection channel is maintained by receiving the response message returned by the push server. If the persistent connection channel is disconnected, re-establish the persistent connection channel.

优选的,为了保证移动终端与推送服务器之间长连接通道得以建立,移动终端还设置了重试机制,当移动终端与推送服务器之间的长连接通道建立失败时,还可执行以下步骤:移动终端根据预设的次数,或者,在预设时长内,向推送服务器发起建立长连接通道的请求。Preferably, in order to ensure that the long connection channel between the mobile terminal and the push server is established, the mobile terminal is also provided with a retry mechanism. When the long connection channel between the mobile terminal and the push server fails to be established, the following steps can also be performed: The terminal initiates a request to the push server to establish a persistent connection channel according to a preset number of times, or within a preset time period.

在网络状况不理想的情况下,现有的移动终端不断尝试与推送服务器建立长连接通道,而这种重试往往是徒劳的,会造成移动终端耗电量的激增,而且,由于采用单一的长连接方式推送消息,在网络连接出现问题的情况下,造成推送消息到达延时。而本发明实施例通过在移动终端侧设置重试机制,在有限的时长内或者有限的次数内尝试建立长连接通道,一旦长连接通道建立失败,则放弃长连接方式,而采用短消息方式接收推送消息,从而避免了移动终端电量激增的问题,并且保证推送消息能够及时到达。In the case of unsatisfactory network conditions, existing mobile terminals continue to try to establish a long connection channel with the push server, and such retries are often futile, which will cause a sharp increase in power consumption of the mobile terminal. Moreover, due to the use of a single Pushing messages in the long connection mode will cause a delay in the arrival of push messages in the case of network connection problems. However, the embodiment of the present invention sets up a retry mechanism on the mobile terminal side to try to establish a long connection channel within a limited duration or a limited number of times. Once the long connection channel fails to be established, the long connection mode is abandoned and the short message mode is used to receive Push messages, thereby avoiding the problem of a surge in the power of the mobile terminal, and ensuring that the push messages can arrive in time.

优选的,在步骤304之前,移动终端还可以检测本设备当前所处的模式。若移动终端检测到本设备处于交互模式,则执行步骤304。Preferably, before step 304, the mobile terminal can also detect the current mode of the device. If the mobile terminal detects that the device is in the interactive mode, step 304 is performed.

在实际应用当中,移动终端可以处于交互模式和非交互模式,移动终端当前进行业务处理或者应用处理时,处于交互模式,例如,移动终端处于应用程序前台的模式,或者移动终端进行通话、接收短消息等模式。移动终端当前未做任何业务处理或者应用处理时,处于非交互模式,例如,移动终端处于待机模式或锁屏模式。移动终端可以根据用户的操作指令,或者根据触发事件,在非交互模式和交互模式之间切换。例如,用户开启客户端应用,或者接收短消息,触发移动终端从非交互模式切换到交互模式;又例如,用户设置移动终端待机,或者,在预设时长内未接收到消息的情况下,触发移动终端从交互模式切换到非交互模式。In practical applications, the mobile terminal can be in interactive mode and non-interactive mode. When the mobile terminal is currently performing business processing or application processing, it is in the interactive mode. message and other modes. When the mobile terminal is not currently performing any business processing or application processing, it is in a non-interactive mode, for example, the mobile terminal is in a standby mode or a screen lock mode. The mobile terminal can switch between a non-interactive mode and an interactive mode according to a user's operation instruction or according to a trigger event. For example, the user starts the client application, or receives a short message, triggering the mobile terminal to switch from the non-interactive mode to the interactive mode; another example, the user sets the mobile terminal to standby, or, when no message is received within a preset time period, triggers The mobile terminal switches from interactive mode to non-interactive mode.

可以看出,当移动终端处于交互模式时,若此时移动终端与推送服务器之间的长连接通道未建立,为了保证能够及时有效的接收到推送消息,需要建立移动终端与推送服务器之间的长连接通道,以使推送服务器通过该长连接通道推送消息。It can be seen that when the mobile terminal is in the interactive mode, if the long connection channel between the mobile terminal and the push server is not established at this time, in order to ensure that the push message can be received in a timely and effective manner, it is necessary to establish a connection between the mobile terminal and the push server. A long connection channel, so that the push server can push messages through the long connection channel.

需要说明的是,在上述流程中,步骤302与步骤303的执行顺序不限。It should be noted that, in the above process, the execution order of step 302 and step 303 is not limited.

进一步的,当移动终端上配置的长连接休眠事件被触发,且移动终端与推送服务器之间建立有长连接通道时,移动终端断开本设备与推送服务器之间的长连接通道。Further, when the persistent connection dormancy event configured on the mobile terminal is triggered and a persistent connection channel is established between the mobile terminal and the push server, the mobile terminal disconnects the persistent connection channel between the device and the push server.

移动终端上配置的长连接休眠事件在以下之一或任意组合的情况下被触发:The persistent connection dormancy event configured on the mobile terminal is triggered under one or any combination of the following conditions:

1、移动终端在设定长时间内未接收到推送消息(包括通过长连接通道接收或者通过短消息方式接收);1. The mobile terminal has not received the push message (including receiving it through a long connection channel or receiving it through a short message) within a set period of time;

2、移动终端从交互模式切换到非交互模式;2. The mobile terminal switches from interactive mode to non-interactive mode;

3、移动终端从交互模式切换到非交互模式,且处于非交互模式的持续时间大于预设时长。3. The mobile terminal switches from the interactive mode to the non-interactive mode, and the duration of being in the non-interactive mode is longer than a preset duration.

需要说明的是,长连接休眠事件不限于以上所举,例如,还可以根据当前的网络状况、电量情况、用户的操作情况和使用习惯进行设定和调整。It should be noted that the long-connection dormancy event is not limited to the ones mentioned above, for example, it can also be set and adjusted according to the current network status, power status, user's operation status and usage habits.

通过设置长连接休眠事件触发移动终端断开本设备与推送服务器之间的长连接通道,可以在不影响移动终端进行业务处理的前提下,节省移动终端的耗电量。By setting the long connection sleep event to trigger the mobile terminal to disconnect the long connection channel between the device and the push server, the power consumption of the mobile terminal can be saved without affecting the service processing of the mobile terminal.

进一步的,如果移动终端接收到短消息网关发送的通知短消息,说明推送服务器将向移动终端推送大批量的推送消息,则移动终端会向推送服务器发起建立长连接通道的请求,并在长连接通道建立后保持该长连接通道,以便后续通过长连接通道接收推送服务器推送的大批量的推送消息。Further, if the mobile terminal receives the notification short message sent by the short message gateway, indicating that the push server will push a large number of push messages to the mobile terminal, the mobile terminal will initiate a request to the push server to establish a long connection channel, and in the long connection After the channel is established, keep the long connection channel, so that you can receive a large number of push messages pushed by the push server through the long connection channel.

通过上述流程可以看出,移动终端通过采用长连接休眠机制,控制移动终端与推送服务器之间的长连接通道的连接或断开,在保证推送消息传输实时性的前提下,实现传输效率、运行成本和移动终端耗电量之间的最佳平衡。It can be seen from the above process that the mobile terminal controls the connection or disconnection of the long connection channel between the mobile terminal and the push server by adopting the long connection dormancy mechanism, and realizes transmission efficiency, operation The best balance between cost and power consumption of mobile terminals.

与基于短消息方式推送消息的方案相比较,本发明实施例方案成本相对较低,且实时性更好,吞吐量更大;与传统的TCP长连接方式推送消息的方案相比,具有节约移动终端耗电量等优点,同时适应性更好,避免了坏连接造成的延时问题。Compared with the scheme of pushing messages based on short message mode, the scheme of the embodiment of the present invention has relatively low cost, better real-time performance, and higher throughput; compared with the scheme of pushing messages in traditional TCP long connection mode, it has the advantages of saving mobile Advantages such as terminal power consumption, and better adaptability, avoiding the delay problem caused by bad connections.

基于相同的技术构思,本发明实施例还提供了一种移动终端,如图4所示,该移动终端包括:接收模块41、分发模块42、处理模块43以及收发模块44;Based on the same technical concept, the embodiment of the present invention also provides a mobile terminal, as shown in FIG. 4 , the mobile terminal includes: a receiving module 41, a distribution module 42, a processing module 43, and a transceiver module 44;

接收模块41,用于接收到短消息网关推送的短消息;其中,所述短消息是推送服务器在其与本设备之间的长连接通道未建立,或者,通过长连接通道向所述移动终端推送消息失败的情况下,通过短消息网关推送的;The receiving module 41 is used to receive the short message pushed by the short message gateway; wherein, the short message is that the long connection channel between the push server and the device has not been established, or sends the message to the mobile terminal through the long connection channel In the case of failure to push the message, it is pushed through the short message gateway;

分发模块42,用于将接收模块41接收到的短消息分发至本设备的应用程序;The distribution module 42 is used to distribute the short message received by the receiving module 41 to the application program of the device;

处理模块43,用于检测本设备与所述推送服务器之间的长连接通道是否建立,若未建立,则通过收发模块44向所述推送服务器发起建立长连接通道的请求,并在长连接通道建立后保持该长连接通道;否则,保持该长连接通道;以及,当本设备上配置的长连接休眠事件被触发,且本设备与所述推送服务器之间建立有长连接通道时,断开本设备与所述推送服务器之间的长连接通道。The processing module 43 is used to detect whether the long connection channel between the device and the push server is established, if not established, then send and receive a request to the push server to establish a long connection channel through the transceiver module 44, and in the long connection channel Keep the long connection channel after establishment; otherwise, keep the long connection channel; and, when the long connection dormancy event configured on the device is triggered and a long connection channel is established between the device and the push server, disconnect A long connection channel between the device and the push server.

处理模块43还用于,在向所述推送服务器发起建立长连接通道的请求之前,检测本设备当前所处的模式;The processing module 43 is also used to detect the current mode of the device before initiating a request to the push server to establish a long connection channel;

处理模块43具体用于,若检测到本设备处于交互模式,则通过收发模块44向所述推送服务器发起建立长连接通道的请求。The processing module 43 is specifically configured to, if it is detected that the device is in the interactive mode, initiate a request for establishing a long connection channel to the push server through the sending and receiving module 44 .

接收模块41还用于,接收所述短消息网关发送的通知短消息;所述通知短消息是所述推送服务器通过所述短消息网关发送的,用于通知本设备发起建立长连接通道的请求;The receiving module 41 is also used to receive the notification short message sent by the short message gateway; the notification short message is sent by the push server through the short message gateway, and is used to notify the device to initiate a request to establish a long connection channel ;

处理模块43还用于,在接收模块41接收到所述短消息网关发送的通知短消息后,通过收发模块44向所述推送服务器发起建立长连接通道的请求。The processing module 43 is also configured to, after the receiving module 41 receives the notification short message sent by the short message gateway, initiate a request to the push server to establish a long connection channel through the sending and receiving module 44 .

移动终端上配置的长连接休眠事件在以下之一或任意组合的情况下被触发:The persistent connection dormancy event configured on the mobile terminal is triggered under one or any combination of the following conditions:

所述移动终端在设定长时间内未接收到所述短消息网关推送的短消息;The mobile terminal has not received the short message pushed by the short message gateway within a set long time;

所述移动终端从交互模式切换到非交互模式;The mobile terminal switches from an interactive mode to a non-interactive mode;

所述移动终端从交互模式切换到非交互模式,且处于非交互模式的持续时间大于预设时长。The mobile terminal is switched from the interactive mode to the non-interactive mode, and the duration of the non-interactive mode is longer than a preset duration.

处理模块43还用于,在通过收发模块44向所述推送服务器发起建立长连接通道的请求之后,若长连接通道建立失败,则根据预设的次数,或者,在预设的时长内,通过收发模块44向所述推送服务器发起建立长连接通道的请求。The processing module 43 is also used for, after the sending and receiving module 44 initiates a request for establishing a long connection channel to the push server, if the long connection channel fails to be established, according to a preset number of times, or within a preset time period, pass The transceiver module 44 initiates a request to the push server to establish a long connection channel.

收发模块44还用于通过长连接通道接收所述推送服务器发送的推送消息。The transceiver module 44 is also configured to receive the push message sent by the push server through the long connection channel.

基于相同的技术构思,本发明实施例还提供了一种推送服务器,如图5所示,该推送服务器包括:接收模块51、处理模块52、发送模块53、收发模块54以及长连接处理模块55;Based on the same technical concept, the embodiment of the present invention also provides a push server. As shown in FIG. ;

接收模块51,用于接收应用服务器发送的推送消息;A receiving module 51, configured to receive a push message sent by an application server;

处理模块52,用于在接收模块51接收到应用服务器发送的推送消息后,检测所述推送消息的目的移动终端与本设备之间的长连接通道是否建立;若长连接通道未建立,则指示发送模块53通过短消息网关,将所述推送消息以短消息方式发送给所述目的移动终端;若长连接通道已建立,则指示收发模块54通过已建立的长连接通道,将所述推送消息推送给所述目的移动终端。The processing module 52 is used to detect whether the long connection channel between the destination mobile terminal of the push message and the device is established after the receiving module 51 receives the push message sent by the application server; if the long connection channel is not established, then indicate The sending module 53 sends the push message to the destination mobile terminal as a short message through the short message gateway; if the long connection channel has been established, then instructs the transceiver module 54 to send the push message to the mobile terminal through the established long connection channel. Push to the target mobile terminal.

处理模块52还用于,若收发模块54通过已建立的长连接通道,将所述推送消息推送给所述目的移动终端失败,则指示发送模块53通过所述短消息网关,将所述推送消息以短消息方式发送给所述目的移动终端。The processing module 52 is also used to, if the transceiver module 54 fails to push the push message to the destination mobile terminal through the established long connection channel, then instructs the sending module 53 to send the push message to the target mobile terminal through the short message gateway. Send it to the destination mobile terminal in the form of a short message.

处理模块52还用于,当发往同一移动终端的待推送消息的数量达到预设值,但本设备与所述移动终端之间的长连接通道未建立时,指示发送模块53通过所述短消息网关,向待推送消息数量达到预设值的移动终端发送通知短消息,以通知所述移动终端发起建立长连接通道的请求。The processing module 52 is also used to instruct the sending module 53 to pass the short message when the number of messages to be pushed sent to the same mobile terminal reaches a preset value, but the long connection channel between the device and the mobile terminal is not established. The message gateway sends a notification short message to a mobile terminal whose number of messages to be pushed reaches a preset value, so as to notify the mobile terminal to initiate a request for establishing a long connection channel.

长连接处理模块55为推送服务器现有模块,用于对收发模块54接收到的建立长连接通道的请求进行响应。The persistent connection processing module 55 is an existing module of the push server, and is used for responding to the request for establishing a persistent connection channel received by the transceiver module 54 .

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端设备(可以是手机,个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a A terminal device (which may be a mobile phone, a personal computer, a server, or a network device, etc.) executes the methods described in various embodiments of the present invention.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (8)

1.一种移动终端消息推送方法,其特征在于,包括:1. A mobile terminal message push method, characterized in that, comprising: 移动终端接收到短消息网关推送的短消息后,将所述短消息分发至移动终端的应用程序,并检测本设备与推送服务器之间的长连接通道是否建立;若本设备与推送服务器之间的长连接通道未建立,则向所述推送服务器发起建立长连接通道的请求,并在长连接通道建立后保持该长连接通道;其中,所述短消息是所述推送服务器在其与所述移动终端之间的长连接通道未建立,或者,通过长连接通道向所述移动终端推送消息失败的情况下,通过短消息网关推送的;After the mobile terminal receives the short message pushed by the short message gateway, the short message is distributed to the application program of the mobile terminal, and detects whether the long connection channel between the device and the push server is established; If the long connection channel is not established, a request for establishing a long connection channel is initiated to the push server, and the long connection channel is maintained after the long connection channel is established; wherein, the short message is between the push server and the The long connection channel between the mobile terminals is not established, or, in the case of failure to push the message to the mobile terminal through the long connection channel, it is pushed through the short message gateway; 当所述移动终端上配置的长连接休眠事件被触发,且本设备与所述推送服务器之间建立有长连接通道时,所述移动终端断开本设备与所述推送服务器之间的长连接通道;When the long connection dormancy event configured on the mobile terminal is triggered, and a long connection channel is established between the device and the push server, the mobile terminal disconnects the long connection between the device and the push server aisle; 其中,所述向所述推送服务器发起建立长连接通道的请求之前,所述方法还包括:所述移动终端检测本设备当前所处的模式;Wherein, before initiating the request to the push server to establish a long connection channel, the method further includes: the mobile terminal detects the current mode of the device; 所述向所述推送服务器发起建立长连接通道的请求具体为:若所述移动终端检测到本设备处于交互模式,则向所述推送服务器发起建立长连接通道的请求。The request to the push server for establishing a persistent connection channel is specifically: if the mobile terminal detects that the device is in an interactive mode, initiate a request to the push server for establishing a persistent connection channel. 2.如权利要求1所述的方法,其特征在于,所述方法还包括:2. The method of claim 1, further comprising: 所述移动终端接收到所述短消息网关发送的通知短消息后,向所述推送服务器发起建立长连接通道的请求,并在长连接通道建立后保持该长连接通道;其中,所述通知短消息是所述推送服务器通过所述短消息网关发送的,用于通知移动终端发起建立长连接通道的请求。After receiving the notification short message sent by the short message gateway, the mobile terminal initiates a request to the push server to establish a long connection channel, and maintains the long connection channel after the long connection channel is established; wherein, the notification short message The message is sent by the push server through the short message gateway, and is used to notify the mobile terminal to initiate a request for establishing a persistent connection channel. 3.如权利要求1所述的方法,其特征在于,所述移动终端上配置的长连接休眠事件在以下之一或任意组合的情况下被触发:3. The method according to claim 1, wherein the persistent connection dormancy event configured on the mobile terminal is triggered in one of the following situations or in any combination: 所述移动终端在设定长时间内未接收到所述短消息网关推送的短消息;The mobile terminal has not received the short message pushed by the short message gateway within a set long time; 所述移动终端从交互模式切换到非交互模式;The mobile terminal switches from an interactive mode to a non-interactive mode; 所述移动终端从交互模式切换到非交互模式,且处于非交互模式的持续时间大于预设时长。The mobile terminal switches from the interactive mode to the non-interactive mode, and the duration of being in the non-interactive mode is longer than a preset duration. 4.如权利要求1所述的方法,其特征在于,所述向所述推送服务器发起建立长连接通道的请求之后,所述方法还包括:4. The method according to claim 1, wherein after the request for establishing a long connection channel is initiated to the push server, the method further comprises: 若长连接通道建立失败,则所述移动终端根据预设的次数,或者,在预设时长内,向所述推送服务器发起建立长连接通道的请求。If the establishment of the persistent connection channel fails, the mobile terminal initiates a request to the push server to establish the persistent connection channel according to a preset number of times, or within a preset time period. 5.一种移动终端,其特征在于,包括:接收模块、分发模块、处理模块以及收发模块;5. A mobile terminal, comprising: a receiving module, a distribution module, a processing module and a transceiver module; 接收模块,用于接收到短消息网关推送的短消息;其中,所述短消息是推送服务器在其与本设备之间的长连接通道未建立,或者,通过长连接通道向本设备推送消息失败的情况下,通过短消息网关推送的;The receiving module is used to receive the short message pushed by the short message gateway; wherein, the short message is that the long connection channel between the push server and the device has not been established, or the push message to the device through the long connection channel fails In the case of , it is pushed through the short message gateway; 分发模块,用于将所述接收模块接收到的短消息分发至本设备的应用程序;A distribution module, configured to distribute the short message received by the receiving module to the application program of the device; 处理模块,用于检测本设备与所述推送服务器之间的长连接通道是否建立,若未建立,则通过所述收发模块向所述推送服务器发起建立长连接通道的请求,并在长连接通道建立后保持该长连接通道;否则,保持该长连接通道;以及,当本设备上配置的长连接休眠事件被触发,且本设备与所述推送服务器之间建立有长连接通道时,断开本设备与所述推送服务器之间的长连接通道;A processing module, configured to detect whether the long connection channel between the device and the push server is established, if not established, send a request for establishing a long connection channel to the push server through the transceiver module, and Keep the long connection channel after establishment; otherwise, keep the long connection channel; and, when the long connection dormancy event configured on the device is triggered and a long connection channel is established between the device and the push server, disconnect A long connection channel between the device and the push server; 其中,所述处理模块还用于,在向所述推送服务器发起建立长连接通道的请求之前,检测本设备当前所处的模式;Wherein, the processing module is further configured to detect the current mode of the device before initiating a request to the push server to establish a long connection channel; 所述处理模块具体用于,若检测到本设备处于交互模式,则通过所述收发模块向所述推送服务器发起建立长连接通道的请求。The processing module is specifically configured to, if it is detected that the device is in an interactive mode, send a request to the push server to establish a long connection channel through the sending and receiving module. 6.如权利要求5所述的移动终端,其特征在于,所述接收模块还用于,接收所述短消息网关发送的通知短消息;所述通知短消息是所述推送服务器通过所述短消息网关发送的,用于通知本设备发起建立长连接通道的请求;6. The mobile terminal according to claim 5, wherein the receiving module is further configured to receive a notification short message sent by the short message gateway; Sent by the message gateway, it is used to notify the device to initiate a request to establish a long connection channel; 所述处理模块还用于,在所述接收模块接收到所述短消息网关发送的通知短消息后,通过所述收发模块向所述推送服务器发起建立长连接通道的请求。The processing module is further configured to, after the receiving module receives the notification short message sent by the short message gateway, initiate a request for establishing a persistent connection channel to the push server through the sending and receiving module. 7.如权利要求5所述的移动终端,其特征在于,所述本设备上配置的长连接休眠事件在以下之一或任意组合的情况下被触发:7. The mobile terminal according to claim 5, wherein the persistent connection dormancy event configured on the device is triggered in one of the following situations or in any combination: 本设备在设定长时间内未接收到所述短消息网关推送的短消息;The device has not received the short message pushed by the short message gateway within a set period of time; 本设备从交互模式切换到非交互模式;The device switches from interactive mode to non-interactive mode; 本设备从交互模式切换到非交互模式,且处于非交互模式的持续时间大于预设时长。The device switches from the interactive mode to the non-interactive mode, and the duration in the non-interactive mode is longer than a preset time period. 8.如权利要求5所述的移动终端,其特征在于,所述处理模块还用于,在通过所述收发模块向所述推送服务器发起建立长连接通道的请求之后,若长连接通道建立失败,则根据预设的次数,或者,在预设的时长内,通过所述收发模块向所述推送服务器发起建立长连接通道的请求。8. The mobile terminal according to claim 5, wherein the processing module is further configured to, after the sending and receiving module initiates a request for establishing a long connection channel to the push server, if the long connection channel fails to be established , according to a preset number of times, or within a preset time period, a request for establishing a long connection channel is initiated to the push server through the transceiver module.
CN201210539529.1A 2012-12-13 2012-12-13 A kind of Mobile terminal message push method and equipment Active CN103874035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210539529.1A CN103874035B (en) 2012-12-13 2012-12-13 A kind of Mobile terminal message push method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210539529.1A CN103874035B (en) 2012-12-13 2012-12-13 A kind of Mobile terminal message push method and equipment

Publications (2)

Publication Number Publication Date
CN103874035A CN103874035A (en) 2014-06-18
CN103874035B true CN103874035B (en) 2018-10-02

Family

ID=50912085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210539529.1A Active CN103874035B (en) 2012-12-13 2012-12-13 A kind of Mobile terminal message push method and equipment

Country Status (1)

Country Link
CN (1) CN103874035B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337935B (en) * 2014-07-09 2018-12-21 阿里巴巴集团控股有限公司 A kind of method and apparatus for establishing client and the long connection of server-side
EP3273644B1 (en) 2016-07-18 2021-02-17 Vestel Elektronik Sanayi ve Ticaret A.S. Method, system and computer program product for selectively adapting and transmitting messaging data
CN107645517B (en) * 2016-07-20 2021-04-16 腾讯科技(深圳)有限公司 Data pushing method and device
CN108023922A (en) * 2016-11-04 2018-05-11 阿里巴巴集团控股有限公司 A kind of method, apparatus and system for issuing and setting configuration data
CN106793173B (en) * 2017-01-10 2019-08-23 Oppo广东移动通信有限公司 information processing method and mobile terminal
CN109922101B (en) * 2017-12-12 2023-08-15 三六零科技集团有限公司 Method, device and server for realizing specific service in mobile terminal
CN108769202A (en) * 2018-05-30 2018-11-06 维沃移动通信有限公司 A message push method and its server and terminal equipment
CN110233872B (en) * 2019-05-05 2020-12-11 视联动力信息技术股份有限公司 Data transmission method based on video network and video network terminal
CN110417915B (en) * 2019-08-22 2021-12-31 北京大米科技有限公司 Push message transmission method and device, storage medium and electronic equipment
CN110661848B (en) * 2019-08-28 2022-02-22 视联动力信息技术股份有限公司 Message pushing method, device, equipment and medium based on video network
CN113727406B (en) * 2020-05-21 2022-11-29 北京三快在线科技有限公司 Communication control method, device, equipment and computer readable storage medium
CN111913730A (en) * 2020-07-15 2020-11-10 上海莉莉丝科技股份有限公司 User-insensitive application program internal updating method, user side and program server
CN112954005A (en) * 2021-01-26 2021-06-11 广州三星通信技术研究有限公司 Method for pushing and outputting service information and corresponding equipment
CN113490164A (en) * 2021-08-13 2021-10-08 中原银行股份有限公司 Mobile application message pushing platform
CN115695358A (en) * 2022-11-01 2023-02-03 抖音视界有限公司 Message pushing method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196011A (en) * 2010-03-15 2011-09-21 中兴通讯股份有限公司 Method and system for providing application information by using push service
CN102695137A (en) * 2012-05-30 2012-09-26 清华大学 Mobile Internet communication connection method combined with circuit domain
CN102724716A (en) * 2012-05-29 2012-10-10 清华大学 Long connection method based on Proxy server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7958247B2 (en) * 2008-10-14 2011-06-07 Hewlett-Packard Development Company, L.P. HTTP push to simulate server-initiated sessions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196011A (en) * 2010-03-15 2011-09-21 中兴通讯股份有限公司 Method and system for providing application information by using push service
CN102724716A (en) * 2012-05-29 2012-10-10 清华大学 Long connection method based on Proxy server
CN102695137A (en) * 2012-05-30 2012-09-26 清华大学 Mobile Internet communication connection method combined with circuit domain

Also Published As

Publication number Publication date
CN103874035A (en) 2014-06-18

Similar Documents

Publication Publication Date Title
CN103874035B (en) A kind of Mobile terminal message push method and equipment
CN109792684B (en) keep the UE awake
CN107645529B (en) Heartbeat packet sending method and device
US9391864B2 (en) Internet service control method, and relevant device and system
CN103096435B (en) Connect keeping method, device and mobile terminal
EP2713641B1 (en) Method for receiving data, method for transmitting data, mobile terminal, and server
US9184887B2 (en) Base station and terminal connection method for the base station
CN103079285A (en) Mobile terminal and method for maintaining point-to-point connection
CN105635248A (en) Method and system for releasing TCP (Transmission Control Protocol) connection resources
CN102395119A (en) Method for supporting permanent online of application client, system and apparatus thereof
CN104813637A (en) Push service without persistent TCP connection in mobile network
CN104468649A (en) Server, terminal, data pushing system and data pushing method
CN101299689B (en) On-line detection method as well as mail server
CN103916936B (en) Realize method, system and mobile terminal, the server of data connection long
CN105578440B (en) The transmission method and device of instant messaging business heartbeat packet in LTE system
EP2797285A1 (en) Method and apparatus for network communication
CN108391325A (en) Manage the method, apparatus and terminal being wirelessly connected
WO2019074032A1 (en) Apparatus, method and program for transmitting and receiving data to and from iot device
CN113992737B (en) Internet of things connection method, gateway server and gateway
CN108391326B (en) Method, device and terminal for managing wireless connection
WO2020146064A1 (en) System and method for providing assistance data to a core network
WO2014201771A1 (en) Method for releasing wireless link resource and user equipment
CN104660648A (en) Message pushing system, method and device and relevant equipment
CN103096377A (en) Method and system for controlling terminal response and trigger under network congestion state
JP6509413B1 (en) Device, method and program for transmitting and receiving data with IoT device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant