CN108322501B - Message pushing method and device - Google Patents

Message pushing method and device Download PDF

Info

Publication number
CN108322501B
CN108322501B CN201711402997.3A CN201711402997A CN108322501B CN 108322501 B CN108322501 B CN 108322501B CN 201711402997 A CN201711402997 A CN 201711402997A CN 108322501 B CN108322501 B CN 108322501B
Authority
CN
China
Prior art keywords
message
successful communication
communication time
time
latest successful
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
CN201711402997.3A
Other languages
Chinese (zh)
Other versions
CN108322501A (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.)
Shenzhen Innovation Software Technology Co ltd
Original Assignee
Shenzhen Innovation Software 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 Shenzhen Innovation Software Technology Co ltd filed Critical Shenzhen Innovation Software Technology Co ltd
Priority to CN201711402997.3A priority Critical patent/CN108322501B/en
Publication of CN108322501A publication Critical patent/CN108322501A/en
Application granted granted Critical
Publication of CN108322501B publication Critical patent/CN108322501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Abstract

The application discloses a message pushing method and a device, comprising the following steps: when the message server receives a message sending request, the related information of the message sending request is stored, the latest successful communication time of User Equipment (UE) at a message sending end is updated to the current time, the message requested to be sent is pushed to a message receiving end UE, and if the pushing is successful, the latest successful communication time of the message receiving end UE is updated to the current time; when the UE successfully logs in the system, the message server pushes the message according to the latest successful communication time of the UE which is stored currently, and updates the latest successful communication time of the UE; and when the UE successfully exits the system, the message server updates the latest successful communication time of the UE to the current time. The invention can ensure that the message can be accurately sent to the client under the scene of public and private network convergence.

Description

Message pushing method and device
Technical Field
The present invention relates to mobile communication technologies, and in particular, to a method and an apparatus for pushing a message.
Background
With the rapid development of computer technology, manufacturing process and internet technology, networks have become the main channel for many people to acquire information. Instant messaging is also an essential means of communication in people's life and work. Instant messaging is a service for real-time messaging between a sender and a receiver. The session initiation protocol (SIP protocol) is well suited for use in instant messaging services. The SIP protocol is widely used as a main protocol for message services in private and public networks. However, in some specific scenarios, it is necessary to use both private and public networks, such as a mountain patrol (public network signal coverage of mountain forest is generally weak, private network of mountain forest also has blind area), a police (private network of the mountain forest is generally used for message confidentiality and scheduling the same, and part of messages can be accessed to the public network, etc.).
In the scene of the convergence of the public network and the private network, the influence of the geographic environment may be caused, and the signals of the public network and the private network are weak, so that the client abnormally exits the system, and the client cannot normally receive the message.
For the above-mentioned public and private network convergence scenario, no message push scheme capable of avoiding the above-mentioned problems has been proposed at present.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a message pushing method and device, which can ensure that a message can be accurately sent to a client in a public and private network convergence scenario.
In order to achieve the purpose, the technical scheme provided by the invention is as follows:
a message pushing method, comprising:
when the message server receives a message sending request, the related information of the message sending request is stored, the latest successful communication time of User Equipment (UE) at a message sending end is updated to the current time, the message requested to be sent is pushed to a message receiving end UE, and if the pushing is successful, the latest successful communication time of the message receiving end UE is updated to the current time;
when the UE successfully logs in the system, the message server pushes the message according to the latest successful communication time of the UE which is stored currently, and updates the latest successful communication time of the UE;
and when the UE successfully exits the system, the message server updates the latest successful communication time of the UE to the current time.
Preferably, the pushing of the message according to the currently saved latest successful communication time of the UE, and the updating of the latest successful communication time of the UE includes:
when the UE successfully logs in the system, the message server judges whether the latest successful communication time of the UE is saved currently or not, and if not, the latest successful communication time of the UE is updated to the current time; if so, then query whether: the method comprises the steps that a message needing to be pushed to the UE is received after the latest successful communication time of the UE, if the message exists, the inquired message is pushed to the UE, and the latest successful communication time of the UE is updated to be the current time; and if the current time does not exist, updating the latest successful communication time of the UE to the current time.
Preferably, the related information of the message sending request includes a message carried by the message sending request, a time when the request is received, and a message receiving end UE.
A message pushing apparatus, comprising:
the message processing unit is used for storing relevant information of the message sending request when the message server receives the message sending request, updating the latest successful communication time of the User Equipment (UE) at the message sending end to the current time, pushing the message requested to be sent to the UE at the message receiving end, and updating the latest successful communication time of the UE at the message receiving end to the current time if the pushing is successful;
the login processing unit is used for pushing a message according to the latest successful communication time of the UE which is stored currently when the UE successfully logs in the system, and updating the latest successful communication time of the UE;
and the quitting processing unit is used for updating the latest successful communication time of the UE to the current time when the UE successfully quits the system.
Preferably, the login processing unit is configured to, when the UE successfully logs in the system, determine whether to currently save the latest successful communication time of the UE, and if not, update the latest successful communication time of the UE to the current time; if so, then query whether: the method comprises the steps that a message needing to be pushed to the UE is received after the latest successful communication time of the UE, if the message exists, the inquired message is pushed to the UE, and the latest successful communication time of the UE is updated to be the current time; and if the current time does not exist, updating the latest successful communication time of the UE to the current time.
Preferably, the related information of the message sending request includes a message carried by the message sending request, a time when the request is received, and a message receiving end UE.
In summary, the message pushing method and device provided by the present invention, by performing real-time maintenance on the latest successful communication time of each UE, can send the message to be sent to the UE according to the time when the UE logs in the system, thereby ensuring that the message can be accurately received when the receiving-end UE can normally communicate with the system in a public and private network convergence scenario regardless of whether the receiving-end UE is online or not.
Drawings
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The core idea of the invention is as follows: the network side maintains the latest successful communication time of each user with the network side, and when each user logs in the system, the information belonging to the user after the latest successful communication time with the network side is pushed to the user. Therefore, when the system receives the message which needs to be sent to the client, the message can be accurately received when the client can normally communicate with the system no matter whether the client is online or not.
Fig. 1 is a schematic flow chart of a message pushing method according to an embodiment of the present invention, as shown in fig. 1, the embodiment mainly includes:
step 101, when receiving a message sending request, a message server stores relevant information of the message sending request, updates the latest successful communication time of User Equipment (UE) at a message sending end to the current time, pushes the message requested to be sent to a message receiving end, and updates the latest successful communication time of the UE at the message receiving end to the current time if the pushing is successful.
In this step, the message server needs to perform message transmission, and maintain the latest successful communication time of the message sending end UE and the message receiving end UE, that is, it is ensured that the latest successful communication time can accurately record the time point of the latest successful communication between the UE and the network side, so that the message to be pushed to the UE can be determined according to the latest successful communication time of the UE.
Here, in order to facilitate pushing a message, which needs to be sent to a UE that re-logs in a system when the UE is not online, the information related to the message sending request at least includes the following information:
the message sending request carries the message, the time when the request is received and the message receiving end UE.
102, when the UE successfully logs in the system, the message server pushes a message according to the latest successful communication time of the UE which is stored currently, and updates the latest successful communication time of the UE; and when the UE successfully exits the system, the message server updates the latest successful communication time of the UE to the current time.
In this step, when any UE logs in to the system, the message server needs to select a message to be pushed for the UE according to the latest successful communication time of the UE, and push the message to the UE. That is, it is determined whether there are messages that need to be pushed to the UE after the latest successful communication time, and if there are messages, the messages are sent to the UE. In this way, it can be ensured that a message belonging to a message receiving end UE (including a message that it could not receive before because it was not online) can be received while the UE is online, regardless of whether the UE is online or not when the message transmission request is received.
Preferably, when the UE successfully logs in the system, the following method may be adopted to push a message according to the currently saved latest successful communication time of the UE, and update the latest successful communication time of the UE:
when the UE successfully logs in the system, the message server judges whether the latest successful communication time of the UE is saved currently or not, and if not, the latest successful communication time of the UE is updated to the current time; if so, then query whether: the method comprises the steps that a message needing to be pushed to the UE is received after the latest successful communication time of the UE, if the message exists, the inquired message is pushed to the UE, and the latest successful communication time of the UE is updated to be the current time; and if the current time does not exist, updating the latest successful communication time of the UE to the current time.
According to the scheme, in order to ensure accurate delivery of the message under the conditions of online, offline, logout and the like of the user, the latest successful communication time of the user needs to be updated in real time. The trigger point for updating the latest successful communication time is the following four cases: the first is logging on the system, the second is logging off the system, the third is message sending, and the fourth is message receiving. Therefore, the accuracy of the latest successful communication time can be ensured, and the accurate delivery of the message can be ensured not to be influenced by the offline of the receiving end.
It should be noted that, in the above embodiment, the steps 101 and 102 are identified for convenience of description, and in practical applications, there is no time restriction on the logical relationship between the two steps, that is, the step 102 may be executed first and then the step 101 is executed, and the execution time of each step is determined by the condition defined by the step itself.
The following further explains the specific implementation process of the present invention by a specific application scenario example:
assume that there are A, B, C and D four users in the system. Assuming again that A, B and C both send messages to D at irregular times, D can receive messages in real time if it is normally online. And D, actively logging out of the message system, wherein the message can not be received. Under the condition of network abnormity, the fact that whether D is logged out or not is unknown, and a message system is unknown, so that the concept of 'latest successful communication time' is introduced based on the factor, the message needing to be pushed is determined based on the time, and the message can be pushed accurately.
The specific flow is shown in fig. 2, but the message server is omitted in fig. 2, and the whole process of message pushing shown in fig. 2 is as follows:
step 1:
at time t0, A, B, C, D are already online and have all logged successfully.
Step 2:
at time t1, B sends a message to A that A successfully received, at which time A's latest successful communication time is updated, while B's latest successful communication time is updated.
And step 3:
at time t2, C sends a message to A that A successfully received, at which time A's latest successful communication time is updated, while C's latest successful communication time is updated.
And 4, step 4:
at time t3, A sends a message to D that D successfully received, updating the latest successful communication time of A and updating the latest successful communication time of D.
And 5:
at time t4, A has a network anomaly and has lost contact with the server.
Step 6:
at time t5, C sends a message to A, the server receives the message of C first and responds to C to update the latest successful communication time of C, but A is abnormal now, cannot receive data and does not update the latest successful communication time of A.
And 7:
at time t6, D sends a message to A, the server receives the message of D first and responds to D to update the latest successful communication time of D, but A is abnormal now, cannot receive data and does not update the latest successful communication time of A.
And 8:
at time t7, the network is normal but there is no traffic trigger and the latest successful communication time of a is not updated.
And step 9:
at time t8, the A user has made a login operation. Logging on this trigger event will trigger a message push. All data belonging to the user A from the last successful time point to the current time point are requested to the user A from the server side. And after the message data in the period is updated to the user A successfully, updating the latest successful communication time of the user A.
Step 10:
at time t9, user A sends a message to user B, which receives it successfully, updating the latest successful communication time of user A and also updating the latest successful communication time of user B.
Step 11:
at time t10, user a sends a message to C, which C successfully receives, updating the latest successful communication time of a and also the latest successful communication time of C.
Step 12:
at time t11, C sends a message to A that A successfully received, at which time A's latest successful communication time is updated, while C's latest successful communication time is updated.
Step 13:
at time t12, D sends a message to A that A successfully received, at which time the latest successful communication time of A is updated, along with the latest successful communication time of D.
Fig. 3 is a message pushing apparatus corresponding to the above method, as shown in fig. 3, the apparatus includes:
and the message processing unit is used for storing the relevant information of the message sending request when the message server receives the message sending request, updating the latest successful communication time of the User Equipment (UE) at the message sending end to the current time, pushing the message requested to be sent to the UE at the message receiving end, and updating the latest successful communication time of the UE at the message receiving end to the current time if the pushing is successful.
And the login processing unit is used for pushing a message according to the latest successful communication time of the UE which is stored currently when the UE successfully logs in the system, and updating the latest successful communication time of the UE.
And the quitting processing unit is used for updating the latest successful communication time of the UE to the current time when the UE successfully quits the system.
Preferably, the login processing unit is configured to, when the UE successfully logs in the system, determine whether to currently save the latest successful communication time of the UE, and if not, update the latest successful communication time of the UE to the current time; if so, then query whether: the method comprises the steps that a message needing to be pushed to the UE is received after the latest successful communication time of the UE, if the message exists, the inquired message is pushed to the UE, and the latest successful communication time of the UE is updated to be the current time; and if the current time does not exist, updating the latest successful communication time of the UE to the current time.
Preferably, the related information of the message sending request includes a message carried by the message sending request, a time when the request is received, and a message receiving end UE.
In practical applications, the message pushing apparatus may be installed in the message server, or may be installed outside the message server, as long as it can communicate with the message server.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. A message pushing method, comprising:
when the message server receives a message sending request, the related information of the message sending request is stored, the latest successful communication time of User Equipment (UE) at a message sending end is updated to the current time, the message requested to be sent is pushed to a message receiving end UE, and if the pushing is successful, the latest successful communication time of the message receiving end UE is updated to the current time;
when the UE successfully logs in the system, the message server judges whether the latest successful communication time of the UE is saved currently or not, and if not, the latest successful communication time of the UE is updated to the current time; if so, then query whether: the method comprises the steps that a message needing to be pushed to the UE is received after the latest successful communication time of the UE, if the message exists, the inquired message is pushed to the UE, and the latest successful communication time of the UE is updated to be the current time; if not, updating the latest successful communication time of the UE to the current time;
and when the UE successfully exits the system, the message server updates the latest successful communication time of the UE to the current time.
2. The method of claim 1, wherein the information related to the message sending request includes a message carried in the message sending request, a time when the request is received, and a message receiving end UE.
3. A message push apparatus, comprising:
the message processing unit is used for storing relevant information of the message sending request when the message server receives the message sending request, updating the latest successful communication time of the User Equipment (UE) at the message sending end to the current time, pushing the message requested to be sent to the UE at the message receiving end, and updating the latest successful communication time of the UE at the message receiving end to the current time if the pushing is successful;
the login processing unit is used for judging whether the latest successful communication time of the UE is stored or not when the UE successfully logs in the system, and updating the latest successful communication time of the UE to the current time if the latest successful communication time of the UE is not stored; if so, then query whether: the method comprises the steps that a message needing to be pushed to the UE is received after the latest successful communication time of the UE, if the message exists, the inquired message is pushed to the UE, and the latest successful communication time of the UE is updated to be the current time; if not, updating the latest successful communication time of the UE to the current time;
and the quitting processing unit is used for updating the latest successful communication time of the UE to the current time when the UE successfully quits the system.
4. The apparatus of claim 3, wherein the information related to the message sending request includes a message carried in the message sending request, a time when the request is received, and a message receiving end UE.
CN201711402997.3A 2017-12-22 2017-12-22 Message pushing method and device Active CN108322501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711402997.3A CN108322501B (en) 2017-12-22 2017-12-22 Message pushing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711402997.3A CN108322501B (en) 2017-12-22 2017-12-22 Message pushing method and device

Publications (2)

Publication Number Publication Date
CN108322501A CN108322501A (en) 2018-07-24
CN108322501B true CN108322501B (en) 2021-04-27

Family

ID=62893195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711402997.3A Active CN108322501B (en) 2017-12-22 2017-12-22 Message pushing method and device

Country Status (1)

Country Link
CN (1) CN108322501B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005078469A (en) * 2003-09-02 2005-03-24 Fdc:Kk Method for distributing portable information and personal digital assistant for the same
CN104123284A (en) * 2013-04-24 2014-10-29 华为技术有限公司 Recommendation method and server
CN104301203A (en) * 2014-09-10 2015-01-21 腾讯科技(深圳)有限公司 Message pushing method and equipment
CN106850750A (en) * 2016-12-26 2017-06-13 北京五八信息技术有限公司 A kind of method and apparatus of real time propelling movement information
CN107040576A (en) * 2016-12-08 2017-08-11 阿里巴巴集团控股有限公司 Information-pushing method and device, communication system
CN107391274A (en) * 2017-06-29 2017-11-24 武汉斗鱼网络科技有限公司 The processing method and processing device of deferred information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005078469A (en) * 2003-09-02 2005-03-24 Fdc:Kk Method for distributing portable information and personal digital assistant for the same
CN104123284A (en) * 2013-04-24 2014-10-29 华为技术有限公司 Recommendation method and server
CN104301203A (en) * 2014-09-10 2015-01-21 腾讯科技(深圳)有限公司 Message pushing method and equipment
CN107040576A (en) * 2016-12-08 2017-08-11 阿里巴巴集团控股有限公司 Information-pushing method and device, communication system
CN106850750A (en) * 2016-12-26 2017-06-13 北京五八信息技术有限公司 A kind of method and apparatus of real time propelling movement information
CN107391274A (en) * 2017-06-29 2017-11-24 武汉斗鱼网络科技有限公司 The processing method and processing device of deferred information

Also Published As

Publication number Publication date
CN108322501A (en) 2018-07-24

Similar Documents

Publication Publication Date Title
US7814051B2 (en) Managing watcher information in a distributed server environment
CN106993043B (en) Data communication system and method based on agency
CN111510325B (en) Alarm information pushing method, server, client and system
CA2911989C (en) Method, system and apparatus for dectecting instant message spam
US7395204B2 (en) Methods and apparatus for providing push to talk text data
CN105991412A (en) Method and device for pushing message
EP1936890A1 (en) Method and system for network terminal identification
CN111263338A (en) Network distribution method of Bluetooth Mesh network and related network distribution equipment and system
CN109525620B (en) Message pushing system, method and device
US10178706B2 (en) Method and device for associating user with group
KR100702704B1 (en) Notification System and Method Using Messenger
CN102546727A (en) Full-time on-line system and method of vehicle
CN108322501B (en) Message pushing method and device
EP3195528B1 (en) Application control interworking in network
CN114760121B (en) Access frequency control method and access frequency control system
CN110650055A (en) Broadcast television network equipment monitoring method and system
EP3617922A1 (en) Apparatus and methods for deriving fingerprints of communications devices
CN107071038B (en) Method and device for transmitting multimedia data
CN113794620B (en) Message sending method, device, equipment, system and storage medium
CN110233744B (en) Conference state display method, conference state updating method and device
CN109474442B (en) Log processing method, electronic device and storage medium
CN108989467B (en) Centralized addressing method
KR101990584B1 (en) Apparatus for managing user information in ptt system and method for updating user information in real time using the apparatus
CN111885601A (en) Keep-alive processing method and device for Mesh equipment
CN110519156B (en) Information interaction method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518057 Room 501A, 9 Buildings, Shenzhen Software Park (Phase 2), No. 1 Science and Technology Middle Road, Nanshan High-tech Zone, Shenzhen, Guangdong Province

Applicant after: Shenzhen Innovation Software Technology Co., Ltd.

Address before: 518057 Room 501A, 9 Buildings, Shenzhen Software Park (Phase 2), No. 1 Science and Technology Middle Road, Nanshan High-tech Zone, Shenzhen, Guangdong Province

Applicant before: Chuangxinke Software Technology (Shenzhen) Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant