CN105162682A - Method for realizing regular message pushing in off-line state - Google Patents

Method for realizing regular message pushing in off-line state Download PDF

Info

Publication number
CN105162682A
CN105162682A CN201510454330.2A CN201510454330A CN105162682A CN 105162682 A CN105162682 A CN 105162682A CN 201510454330 A CN201510454330 A CN 201510454330A CN 105162682 A CN105162682 A CN 105162682A
Authority
CN
China
Prior art keywords
message
line state
local
client
timed task
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
CN201510454330.2A
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.)
Dalian University of Technology
Original Assignee
Dalian University of Technology
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 Dalian University of Technology filed Critical Dalian University of Technology
Priority to CN201510454330.2A priority Critical patent/CN105162682A/en
Publication of CN105162682A publication Critical patent/CN105162682A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for realizing regular message pushing in an off-line state. The process is as follows: when a client application is on line, a request is automatically sent out to a server, and a parameter is the serial number of local latest news; when the server receives the request, a response is made to the client with a message in a message library whose serial number is larger than the request parameter; after receiving the server response, the client updates the local message serial number, stores all messages locally, updates a local task list, sets a timer according to notification time specified by the messages, and regular pushing tasks are formulated; and each time a client program is started, a local task list is automatically loaded, and regular pushing tasks are formulated. The method provided by the invention realizes message pushing in the off-line state, and can send notifications regularly according to the time customized by the server. Since message notification is free of limitation of networking conditions, message issuing is relatively flexible, limitation of issuing work in time is reduced, and user experience is greatly improved.

Description

A kind of method realizing off-line state timing PUSH message
Technical field
What the present invention relates to is a kind of method of message push, can be applied in mobile network appliance.
Background technology
Push (propelling movement) technology, also known as network propagation technology, is proposed in 1996 by PointCastNetwork company the earliest, its objective is specific aim in order to improve user's obtaining information and ageing.No matter push or the propelling movement of server end, description be a kind of request of being submitted to by central server or publisher or given affairs and mutual based on the one of the Internet to request and affairs.Along with widely using of mobile device, various application program being applicable to mobile terminal emerges in an endless stream.The application of nearly all mobile terminal all relates to message push.The message push mode be widely used at present, no matter be that poll pushes or continuing to connect pushes, its basic characteristics are: need user access network; Client receives message and then notifies user immediately.Such propelling movement mode has following several drawback: have strict demand to environment residing for user, and namely non-networked state cannot receipt message notice; Cause puzzlement to user, namely message informing may occur unsuitable time; Have higher requirements to the work of message issuer, namely message issuer must at the appointed time give out information on time.
Summary of the invention
The object of the present invention is to provide one to realize server end PUSH message at any time, by message expection notice time restriction, client can off-line, timing receipt message informing, not by the information push method of environmental limitations residing for user.
The object of the present invention is achieved like this:
Realize a method for off-line state timing PUSH message, step is as follows:
A) server end is every bar message additional message sequence number and specified notification time;
B) periodically send request to server when client is in networking state, in required parameter, comprise local latest news sequence number;
C), after server receives client-requested, sequence number in message library is sent to client higher than the entire message of latest news sequence number in this required parameter;
D) response message is kept at local message storehouse after receiving server response by client, and write task list, formulate timed task, timed task is at message specified notification time triggered, major function comprises and shows message to user, upgrade task list (removing this task from task list), upgrade local message storehouse (move or deletion action this message file, maintain clean and tidy reasonably bibliographic structure);
E) automatically load local task list when client application starts at every turn, arrange timed task according to list, this process is without the need to networking.
Wherein, suitably can adjust concrete form for the message sequence number in a) step and subsequent step thereof or directly use the notice time of message to replace.Socket is used to connect lastingly for the periodic message request method in b) step.The visual concrete condition of timed task in d) step is formulated for all or part of message, for the clear and definite message that can not trigger in this application service, to it, timed task can not be set to reduce unnecessary resource consumption.Renewal local message storehouse in this step does not perform in timed task, and upgrades it when application start, the message before cleaning T time, and T is specified by user or application developer.
Accompanying drawing explanation
Accompanying drawing is message push flow chart of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in more detail:
1. message issuer is that message arranges message sequence number manually or automatically when giving out information, and arranging with sequence number incremental order, and is the message specified notification time, by these two attributes and message content together stored in server message storehouse.
2. obtain local latest news sequence number after client access network, and it can be used as parameter to send message request by request module to server, to obtain latest news.This Period Process carries out, and carries out from the access network moment after application start, until application process stops or network is closed.
3. after server receives client-requested, by request processing module, request is resolved, obtain the message sequence number in required parameter, by message managing module, message library version number is sent to client higher than the entire message of this parameter via respond module.
4. after client receives message, resolved by response processing module, entire message is stored in local message storehouse, and travel through whole messaging list, the message for the difference notice time does different disposal:
A) be greater than to the message of current time the time indicated by the notice time, in local task list, record this message and its notice time, and timed task is set, at the appointed time trigger this task.
B) the notice time is less than the message of current time, then directly trigger timed task, does not upgrade local task list.
Wherein, timed task major function has: display message informing, renewal task list, namely from task list, delete this Message Record, upgrade local message storehouse, from local message storehouse, namely delete this message (this operation can be selected not perform according to the actual requirements).
5. when client process starts, ignore networking state, automatically load local message list, according to the specified notification set of time timed task of bar message every in list, task function is with step 4.
6. clear up local message storehouse if desired, or select periodic cleaning, cleaning object is the message before T time, and T is specified by user or application developer.

Claims (8)

1. realize a method for off-line state timing PUSH message, it is characterized in that:
A) server end is every bar message additional message sequence number and specified notification time;
B) periodically send request to server when client is in networking state, in required parameter, comprise local latest news sequence number;
C), after server receives client-requested, sequence number in message library is sent to client higher than the entire message of latest news sequence number in this required parameter;
D) response message is kept at local message storehouse after receiving server response by client, and write task list, formulate timed task, timed task is at message specified notification time triggered, and major function comprises and shows message to user, upgrade task list, upgrades local message storehouse;
E) automatically load local task list when client application starts at every turn, arrange timed task according to list, this process is without the need to networking.
2. a kind of method realizing off-line state timing PUSH message according to claim 1, is characterized in that: message sequence number a) in step and subsequent step thereof suitably can adjust concrete form or directly use the notice time of message to replace.
3. according to claim 1 and 2 a kind of realize off-line state timing PUSH message method, it is characterized in that: step b) in periodic message request method use socket connect lastingly.
4. a kind of method realizing off-line state timing PUSH message according to claim 1 and 2, it is characterized in that: steps d) in the visual concrete condition of timed task formulate for all or part of message, for the clear and definite message that can not trigger in this application service, to it, timed task can not be set to reduce unnecessary resource consumption.
5. a kind of method realizing off-line state timing PUSH message according to claim 3, it is characterized in that: steps d) in the visual concrete condition of timed task formulate for all or part of message, for the clear and definite message that can not trigger in this application service, to it, timed task can not be set to reduce unnecessary resource consumption.
6. a kind of method realizing off-line state timing PUSH message according to claim 1,2 or 5, it is characterized in that: steps d) in renewal local message storehouse do not perform in timed task, and when application start, it is upgraded, message before cleaning T time, T is specified by user or application developer.
7. a kind of method realizing off-line state timing PUSH message according to claim 3, it is characterized in that: steps d) in renewal local message storehouse do not perform in timed task, and when application start, it is upgraded, message before cleaning T time, T is specified by user or application developer.
8. a kind of method realizing off-line state timing PUSH message according to claim 4, it is characterized in that: steps d) in renewal local message storehouse do not perform in timed task, and when application start, it is upgraded, message before cleaning T time, T is specified by user or application developer.
CN201510454330.2A 2015-07-29 2015-07-29 Method for realizing regular message pushing in off-line state Pending CN105162682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510454330.2A CN105162682A (en) 2015-07-29 2015-07-29 Method for realizing regular message pushing in off-line state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510454330.2A CN105162682A (en) 2015-07-29 2015-07-29 Method for realizing regular message pushing in off-line state

Publications (1)

Publication Number Publication Date
CN105162682A true CN105162682A (en) 2015-12-16

Family

ID=54803441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510454330.2A Pending CN105162682A (en) 2015-07-29 2015-07-29 Method for realizing regular message pushing in off-line state

Country Status (1)

Country Link
CN (1) CN105162682A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131598A (en) * 2016-07-11 2016-11-16 Tcl集团股份有限公司 A kind of task method for pushing based on high in the clouds and system
CN106161593A (en) * 2016-06-21 2016-11-23 北京奇虎科技有限公司 MESSAGE POLL method and server, communication system
CN108810116A (en) * 2018-05-29 2018-11-13 Oppo广东移动通信有限公司 Message treatment method and Related product
CN109587038A (en) * 2018-11-30 2019-04-05 深圳市买买提信息科技有限公司 Information push method and device
CN111901619A (en) * 2020-07-23 2020-11-06 北京达佳互联信息技术有限公司 Message pushing method and device
CN113905090A (en) * 2021-09-16 2022-01-07 平安科技(深圳)有限公司 Message pushing method and device, server, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949774A (en) * 2006-11-02 2007-04-18 华为技术有限公司 Method and apparatus for managing web application program conversation
CN101098517A (en) * 2007-02-28 2008-01-02 中兴通讯股份有限公司 Dispatcher permanent online method and apparatus
US20100217905A1 (en) * 2009-02-24 2010-08-26 International Business Machines Corporation Synchronization Optimized Queuing System
CN102184253A (en) * 2011-05-30 2011-09-14 北京搜狗科技发展有限公司 Method and system used for pushing grabbed and updated messages of network resource
CN103457841A (en) * 2013-09-17 2013-12-18 北京京东尚科信息技术有限公司 Message handling method and message handling device based on long connection
CN103647803A (en) * 2013-11-22 2014-03-19 北京奇虎科技有限公司 A method for a mobile terminal to subscribe content and an apparatus
CN103856392A (en) * 2013-06-26 2014-06-11 携程计算机技术(上海)有限公司 Message push method, outgoing server using message push method and outgoing server system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949774A (en) * 2006-11-02 2007-04-18 华为技术有限公司 Method and apparatus for managing web application program conversation
CN101098517A (en) * 2007-02-28 2008-01-02 中兴通讯股份有限公司 Dispatcher permanent online method and apparatus
US20100217905A1 (en) * 2009-02-24 2010-08-26 International Business Machines Corporation Synchronization Optimized Queuing System
CN102184253A (en) * 2011-05-30 2011-09-14 北京搜狗科技发展有限公司 Method and system used for pushing grabbed and updated messages of network resource
CN103856392A (en) * 2013-06-26 2014-06-11 携程计算机技术(上海)有限公司 Message push method, outgoing server using message push method and outgoing server system
CN103457841A (en) * 2013-09-17 2013-12-18 北京京东尚科信息技术有限公司 Message handling method and message handling device based on long connection
CN103647803A (en) * 2013-11-22 2014-03-19 北京奇虎科技有限公司 A method for a mobile terminal to subscribe content and an apparatus

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161593A (en) * 2016-06-21 2016-11-23 北京奇虎科技有限公司 MESSAGE POLL method and server, communication system
CN106161593B (en) * 2016-06-21 2020-02-07 北京奇虎科技有限公司 Message polling method, server and communication system
CN106131598A (en) * 2016-07-11 2016-11-16 Tcl集团股份有限公司 A kind of task method for pushing based on high in the clouds and system
CN106131598B (en) * 2016-07-11 2020-01-24 Tcl集团股份有限公司 Cloud-based task pushing method and system
CN108810116A (en) * 2018-05-29 2018-11-13 Oppo广东移动通信有限公司 Message treatment method and Related product
CN108810116B (en) * 2018-05-29 2021-04-13 Oppo广东移动通信有限公司 Message processing method and related product
CN109587038A (en) * 2018-11-30 2019-04-05 深圳市买买提信息科技有限公司 Information push method and device
CN111901619A (en) * 2020-07-23 2020-11-06 北京达佳互联信息技术有限公司 Message pushing method and device
CN111901619B (en) * 2020-07-23 2023-10-31 北京达佳互联信息技术有限公司 Message pushing method and device
CN113905090A (en) * 2021-09-16 2022-01-07 平安科技(深圳)有限公司 Message pushing method and device, server, electronic equipment and storage medium
CN113905090B (en) * 2021-09-16 2023-07-07 平安科技(深圳)有限公司 Message pushing method, device, server, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105162682A (en) Method for realizing regular message pushing in off-line state
US10057152B2 (en) Providing an unseen message count across devices
CN105279210B (en) Automatic mode switching in a synchronous replication environment
KR101960007B1 (en) Opportunistic network updates
CN101404665B (en) Method and apparatus for processing data
CN109905286B (en) Method and system for monitoring running state of equipment
CN108932157B (en) Method, system, electronic device and readable medium for distributed processing of tasks
CN107656748B (en) Application publishing method and device
CN107122379A (en) Collect the Transaction Information associated with the data file being locally stored
CN110651256B (en) System and method for preventing service interruption during software update
CN103678133A (en) Task scheduling system for application software cloud testing
CN109299122A (en) A kind of method of data synchronization, equipment and computer can storage mediums
CN111600790B (en) Block chain based message processing method, device, equipment and storage medium
CN102833272A (en) Downloading method and device based on user subscription
CN105677536A (en) Implementing method for task messages and task system for implementing task messages
CN102375865A (en) Message updating method for message client, and message client
CN109960212B (en) Task sending method and device
US10230670B1 (en) Watermark-based message queue
JP5899445B2 (en) Content receiving apparatus and content receiving method
CN105260472A (en) Message pushing method and device
CN107633026B (en) data synchronization exception handling method and device and server
CN111061689A (en) File expiration processing method and device for object storage system and electronic equipment
CN105471953A (en) Client-side page dynamic display method, device and system
JP2014013473A (en) Software update device
CN111124747B (en) Method, apparatus and computer readable medium for deleting snapshots

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151216

RJ01 Rejection of invention patent application after publication