CN108989179A - Message treatment method and device, storage medium - Google Patents

Message treatment method and device, storage medium Download PDF

Info

Publication number
CN108989179A
CN108989179A CN201710400591.5A CN201710400591A CN108989179A CN 108989179 A CN108989179 A CN 108989179A CN 201710400591 A CN201710400591 A CN 201710400591A CN 108989179 A CN108989179 A CN 108989179A
Authority
CN
China
Prior art keywords
message
target user
user
target
session
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.)
Granted
Application number
CN201710400591.5A
Other languages
Chinese (zh)
Other versions
CN108989179B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710400591.5A priority Critical patent/CN108989179B/en
Publication of CN108989179A publication Critical patent/CN108989179A/en
Application granted granted Critical
Publication of CN108989179B publication Critical patent/CN108989179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/56Unified messaging, e.g. interactions between e-mail, instant messaging or converged IP messaging [CPM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of message treatment methods, comprising: detection target user accesses the state being connected to the network used in internet;When determining that the target user is in predetermined state according to the state of the network connection, the not received message of the target user is recorded;When the message recorded meets message polymerizing condition, the size of message of the message is analyzed from the message recorded, and polymerization processing is carried out to the message according to the size of message;Polymerization processing result is encapsulated as notification message, transmits the notification message to the target user by cellular mobile communication networks.The present invention further simultaneously discloses a kind of message processing apparatus and storage medium.

Description

Message treatment method and device, storage medium
Technical field
The present invention relates to the communication technology more particularly to a kind of message approach and devices, storage medium.
Background technique
Internet especially mobile Internet is rapidly developed, and diversification is presented in available client in the terminal Trend, cover many aspects such as work, study, consumption and amusement.
The typical application scenarios of one of client are to carry out information receiving and transmitting via internet, by taking social client as an example, User can carry out instant messaging with the other users of social platform by social client, additionally it is possible to receive server push Various message such as subscribe to message, good friend's dynamic, etc..
Terminal accesses internet by WLAN or cellular radio and carries out information receiving and transmitting, due to network failure, Network signal is poor, saves the reasons such as the data traffic of cellular mobile communication, and the network connection of terminal, which will appear, not to be available or close The case where closing, this results in client to be difficult to keep always on state, and user can postpone because that can not receive message in time The processing opportunity of message.
In view of the above-mentioned problems, the relevant technologies are provided offline message through the Short Message Service Gateway platform of telecom operators with short message Form is transmitted to the scheme of user, guarantee user can timely learning message, however, because short message and client message in terminal Prompting mode difference and user for the difference in the processing mode of short message and message, by offline message simply with The mode of short message is sent, and is existed and is easy the case where interfering to user because offline message source is various, quantity is big, leads to weight The message wanted cannot be touched in time up to user.
Summary of the invention
The embodiment of the present invention provides a kind of message treatment method and device, storage medium, can make should connect client Message is received to be touched in time up to user.
The technical solution of the embodiment of the present invention is achieved in that
The embodiment of the invention provides a kind of message treatment methods, comprising:
It detects target user and accesses the state being connected to the network used in internet;
When determining that the target user is in predetermined state according to the state of the network connection, records the target and use The not received message in family;
When the message recorded meets message polymerizing condition, the message of the message is analyzed from the message recorded Amount, carries out polymerization processing to the message according to the size of message;
Polymerization processing result is encapsulated as notification message, transmits the notification message to institute by cellular mobile communication networks State target user.
The embodiment of the invention also provides a kind of message processing apparatus, comprising:
Memory, for storing executable program;
Processor when for running the executable program stored in the memory, executes:
It detects target user and accesses the state being connected to the network used in internet;
When determining that the target user is in predetermined state according to the state of the network connection, records the target and use The not received message in family;
When the message recorded meets message polymerizing condition, the message of the message is analyzed from the message recorded Amount, carries out polymerization processing to the message according to the size of message;
Polymerization processing result is encapsulated as notification message, transmits the notification message to institute by cellular mobile communication networks State target user.
In above scheme, when the processor is also used to run the executable program, execute:
When the signal strength for the network connection that the target user reports to server, it is lower than signal strength threshold When, determine that the target user is online and can not receive message;
When network connection used in the target user accesses internet is in an off state, determine that the target is used Family is in off-line state.
In above scheme, when the processor is also used to run the executable program, execute:
The message is recorded when each record period starts, and when timing time reaches, continues the next record period; Alternatively,
The message is recorded when each record period starts, when the size of message of recorded message exceeds size of message threshold value When, continue the next record period.
In above scheme, when the processor is also used to run the executable program, execute:
When each record period starts, at least one of is executed:
Record the global message of the target user;
Destination client is determined in the client used in the target user, records disappearing in the destination client Breath;
Target session is determined in the session that the target user participates in, and records the message in the target session.
In above scheme, when the processor is also used to run the executable program, execute:
It determines with the client of at least one Types Below as the destination client:
The whole clients installed in the terminal of the target user;The preset client for needing PUSH message;It is described The network connection of target user is switched to before predetermined state, the client in active state;
It is described that target session is determined in the session that the target user participates in, comprising:
It determines with the session of at least one Types Below as the target session: the cluster conversation that the target user participates in; The preset cluster conversation for needing PUSH message;The network connection of the target user is switched to before predetermined state, in work The session of jump state.
In above scheme, at least one session, including following kind of session that the target user participates in:
The user that the target user participates in is to user conversation;
Whole cluster conversations that the target user participates in;
The target user participates in and is in the cluster conversation of concern state;
The target user participates in and participation is higher than the cluster conversation of participation threshold value;
The target user participates in and is in when being switched to predetermined state or the cluster conversation of active state.
In above scheme, when the processor is also used to run the executable program, execute:
The size of message of the message recorded in the record period, the maximum message that can be carried beyond the notification message When amount, the abstract of message recorded in the record period is merged;
The size of message of the message recorded in the record period, the maximum that can be carried without departing from the notification message disappear When breath amount, message recorded in the record period is merged.
In above scheme, when the processor is also used to run the executable program, execute:
From in the message that the record period is recorded, extracts following at least one message: deriving from particular demographic meeting Message in words and the message from user to user conversation;
From message remaining after extraction extract abstract, and with extracted message coalescing.
In above scheme, when the processor is also used to run the executable program, execute:
It extracts with the message of at least one Types Below:
From the message of the cluster conversation in concern state;
The message of user in cluster conversation in concern state;
From message of the user in the session into user conversation beyond participation threshold value;
Message in cluster conversation of the participation beyond participation threshold value of the target user.
In above scheme, when the processor is also used to run the executable program, execute:
When the target user access internet used in network connection be WLAN connection when, pass through the bee The connection based on circuit domain or packet domain of cellular mobile communication network transmits the notification message to the target user;
It include that WLAN connection and honeycomb are mobile when the target user accesses network connection used in internet When the connection based on data field of communication network, institute is transmitted by the connection based on circuit domain of the cellular mobile communication networks Notification message is stated to the target user.
When the processor is also used to run the executable program, execute:
When the state of the network connection of the first terminal of the target user is in the predetermined state, moved by honeycomb Notification message described in dynamic communication network transmission, until the second terminal of the target user.
In above scheme, when the processor is also used to run the executable program, execute:
It is voice data by the text conversion carried in the polymerization processing result, obtains at the polymerization of speech form Manage result;
The polymerization processing result of speech form is encapsulated as being suitable for transmitting in the cellular mobile communication networks Notification message.
In above scheme, when the processor is also used to run the executable program, it is also used to execute:
Receive the reply notification message that the target user is sent by the cellular mobile communication networks;
According to the session identification that the reply notification message carries, the reply notification message is sent into corresponding session.
The embodiment of the invention also provides a kind of readable storage medium storing program for executing, are stored with executable program, executable code fortune For executing the above-mentioned message treatment method of the embodiment of the present invention when row.
It is had the advantages that using the above embodiment of the present invention
1) when network connection used in target user accesses internet is in predetermined state, pass through cellular mobile communication Network transmission is by the notification message of target user's not received message encapsulation to target user;In this way, ensure that target user not Received message is touched in time up to target user, without missing important messages;
2) size of message of outbound message is analyzed from the message recorded when the message recorded meets message polymerizing condition, Transmission is packaged after carrying out polymerization processing to message according to size of message;In this way, on the one hand avoid size of message it is larger when one by one It sends message to cause the case where frequently interfering user, on the other hand, PUSH message, which can disposably be touched up to user, more to be believed Breath.
Detailed description of the invention
Fig. 1 is the optional topological schematic diagram of one of message treatment method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram one of message treatment method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram two of message treatment method provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram that target terminal user shows the notification message pushed in the form of short message in the embodiment of the present invention One;
Fig. 5 is the flow diagram three of message treatment method provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of a scenario for the notification message that target terminal user receives speech form in the embodiment of the present invention;
Fig. 7 is the application scenarios schematic diagram one of message treatment method provided in an embodiment of the present invention;
Fig. 8 is the application scenarios schematic diagram two of message treatment method provided in an embodiment of the present invention;
Fig. 9 is the schematic diagram that the message provided in an embodiment of the present invention to record carries out polymerization processing;
Figure 10 is the schematic diagram that target terminal user shows the notification message pushed in the form of short message in the embodiment of the present invention Two;
Figure 11 is the schematic diagram that target terminal user shows the notification message pushed in the form of short message in the embodiment of the present invention Three;
Figure 12 is the flow diagram three of message treatment method provided in an embodiment of the present invention;
Figure 13 is the composed structure schematic diagram of message processing apparatus in the embodiment of the present invention.
Specific embodiment
The present invention is further described in detail below with reference to the accompanying drawings and embodiments.It should be appreciated that described herein Specific embodiment is only used to explain the present invention, is not intended to limit the present invention.
Before the present invention will be described in further detail, noun involved in the embodiment of the present invention and term are said Bright, noun involved in the embodiment of the present invention and term are suitable for following explanation.
1) client can be using propping up for the program via server and other client communications in the terminal of user The form for the mobile application (App, Application) installed in the terminal is held, it can also be using for supporting hypertext to pass Network (Web) App run in the client of defeated agreement (HTML, Hyper Text Markup Language) is (also referred to as small Program) form.
2) message triggers the basic unit of the information of user in client, as in instant communication client text message, Speech message etc., informed source, can also be with sources and group in user to user conversation (only there are two the sessions of customer parameter) Session (session that multiple users participate in).
3) notification message, in cellular mobile communication networks touching up to user message basic unit, such as SMS, mobile phone Multimedia message, etc..
Fig. 1 shows the topological schematic diagram of message treatment method provided in an embodiment of the present invention, cellular mobile communication networks It include with global system for mobile communications (GSM, Global System For Mobile including access net and core net, core net Communications it) circuit domain based on network (CS, Circuit Switch domain) and is taken with general grouped wireless Packet domain (PS, Packet Service based on business (GPRS, General Packet Radio Service) network domain);Circuit domain is used to carry voice, data and the short message service under 2G standard;Packet domain is mobile for carrying forth generation The voice of the communication technology (4G, the 4th Generation mobile communication) and its evolution standard, short message and Data service;Server can be sent a notification message to target user such as by speech interface/short message interface that third party provides Shown in Fig. 1, the client in terminal is set to by access net connection core net, and then establish and communicate to connect with server.
Client is user when logining server, established first with server based on transmission control protocol (TCP, Transmission Control Protocol) connection, for example, client can with server establish based on socket Three-way handshake connection, within a certain period of time without information receiving and transmitting when release connection, alternatively, with server establish be based on user data The connection of datagram protocol (UDP, User Datagram Protocol);Then client can be via server and other and the clothes The client that device connects of being engaged in carries out the transmitting-receiving of message.
Fig. 2 shows an optional flow diagram of message treatment method provided in an embodiment of the present invention, method is answered For server, as shown in Fig. 2, message treatment method provided in an embodiment of the present invention includes:
Step 101: detection target user accesses the state being connected to the network used in internet.
Here, in actual implementation, target user can access internet based on the client being arranged in terminal, specifically may be used Access WLAN is thought, such as Wireless Fidelity (Wi-Fi, Wireless Fidelity), or access cellular mobile communications networks Network, such as 4G.Correspondingly, it may include: off-line state (i.e. mesh that target user, which accesses the state being connected to the network used in internet, Mark the network connection off-state between user terminal and server), online and receivable message status (i.e. target terminal user with Server communication is good, can normal messaging), it is online and message status can not be received (such as signal strength is weak, target user Network connection between terminal and server is unstable, is not enough to receive message).
Step 102: when the state according to network connection determines that target user is in predetermined state, record target user is not Received message.
Here, predetermined state may include off-line state in above-mentioned network connection state, it is online and message can not be received It is more than pre- timing that the instant communication client of state and the target user, which are in an inactive state (such as background operation state), It is long;In the specific implementation, it determines that target user is in predetermined state according to the state of network connection, may include:
When the signal strength of the network connection of target user is lower than signal strength threshold, determine that target user is in online State and message can not be received;In practical applications, target user obtains itself current signal strength, is then reported to service Device, server determine that the signal strength reported is weaker, (can such as be set according to the actual situation lower than preset signal strength threshold It is fixed) when, although determining that target user can not receive message online, and under the state, if the target user has important message Just probably due to leading to serious consequence without receiving in time;
When target user access internet used in network connection be in an off state when, determine target user be in from Linear state;Here, server can in such a way that any one judges whether target user is in off-line state, such as: when When using TCP connection between server and target user, after server sends data packet to target user, do not receive within a preset time To the confirmation of target user, or the confirmation of target user is no longer received in time-out time, alternatively, retransmitting to target user The number of data packet (using TCP connection) exceeds frequency threshold value, alternatively, server no longer receives the heartbeat data of target user Packet then can determine that the transport layer connection between target user and server disconnects namely target user is in off-line state, together Sample, in this state, in order to avoid omitting the information etc. of important information or target user's concern, target user exists with other sides Formula (i.e. except the mode in addition to client receives by the way of message) receives the demand of message.
Based on the above embodiment of the present invention, in practical applications, the not received message of target user is recorded, may include:
Message is recorded from predetermined dimension when each record period starts, when the timing time of respective dimensions reaches, after The continuous next record period;Alternatively,
Message is recorded from predetermined dimension when each record period starts, when the size of message of recorded message exceeds respective dimension When the size of message threshold value of degree, continue the next record period.
In actual implementation, predetermined dimension can be global dimension, correspondingly, the message of predetermined dimension is target user Global message, that is, all message received (such as: wechat, QQ instant communication client are provided in target terminal user, Then the message of predetermined dimension includes the message of all these clients for being sent to target user);Predetermined dimension can also be target Client, correspondingly, the message of predetermined dimension be message in the destination client of target user (such as: target terminal user On be provided with the instant communication clients such as wechat, QQ, but it is destination client that wechat client, which is arranged, in target user, then makes a reservation for dimension The message of degree only includes being sent to the message of the wechat client of target user);Predetermined dimension can also be target session, accordingly , the message of predetermined dimension be in the target session of target user message (such as: be provided in target terminal user wechat, The instant communication clients such as QQ, target user are arranged in wechat client and the meeting in the session and QQ client of party A-subscriber with B Words are target session, then the message of predetermined dimension only includes the message of the party A-subscriber from wechat and the party B-subscriber from QQ Message);Correspondingly, not receiving message, the i.e. client of target user from predetermined dimension record when each record period starts Hold the message that can not be properly received because of a variety of causes (such as signal difference, cellular communication flow is used up), comprising:
When each record period starts, at least one of is executed:
The overall situation of record target user does not receive message;
Destination client is determined in the client used in target user, is recorded not receiving in destination client and is disappeared Breath;
Target session is determined in the session that target user participates in, and is recorded in target session and is not received message.
In one embodiment, the setting of above-mentioned timing time can be with are as follows:
1), the unified numerical value used in global dimension, the i.e. value for the unified setting of all users;Such as: based on use The timing time of the paid cases of family grade or user setting, different user gradations correspond to different timing times, such as grade The timing time of high user is shorter, and the user of payment is short compared with the timing time of non-payment user;For another example: receiving one based on user The setting of time needed for the message of fixed number amount, it is recorded according to the history message of different target user, calculates target user and receive To the average time of predetermined quantity (such as 10) message, as timing time;For another example: determining target user in each time window Time needed for receiving the message of predetermined message amount (such as 10/50 bytes) in (being divided into 24 time windows such as one day), As the timing time of corresponding time window, the time window according to locating for current time and obtain corresponding timing time;
2), different numerical value is used for different user;Such as can be set based on target user's demand, such as can be One hour;
3) different numerical value, are used up to the real-time demand of target user for the message touching of different clients;Such as: QQ, the requirement of real-time that the message of online shopping application is touched up to target user are had any different, therefore can be set need to the real-time of message Corresponding numerical value is sought, the requirement of real-time of QQ is higher than the requirement of real-time of online shopping application, therefore the timing time of QQ is less than online shopping The timing time of application;
4), for the type of different sessions (such as user to user conversation (i.e. C2C, Customer to Customer), group Group session)/session rank and use different numerical value, such as the timing time that user be arranged to user conversation is less than cluster conversation Timing time, target user concern cluster conversation (top set opens message informing in the client) timing time it is small In the timing time that target user does not pay close attention to and (such as closes the cluster conversation of message informing in client).
It should be noted that size of message herein can be the quantity of the message recorded in record period, alternatively, being The adduction of the length (such as byte number) of the message recorded in record period;In actual implementation, above-mentioned size of message threshold value Setting can be with are as follows:
1), the unified numerical value used in global dimension, the i.e. value for the unified setting of all users;Such as: Ke Yishe It is set to the maximum amount of message that a notification message can carry;For another example: being set based on user gradation or the paid cases of user; For another example: the different sessions participated in based on user are preset;For another example: being disappeared according to the history of the different sessions of different target user Breath record calculates target user and receives the size of message of message (most in scheduled delay (maximum delay time of permission) Big value or average value), as size of message threshold value;For another example: determining that target user (is divided into 24 in such as one day in each time window Time window) in predetermined timing time (be less than time window) in receive size of message (maximum value or average value) of message, As the size of message threshold value of corresponding time window, the time window according to locating for current time and obtain corresponding size of message threshold Value;
2), different numerical value is used for different user;Such as can be set based on target user's demand, such as can be 15;
3) different numerical value, are used up to the real-time demand of target user for the message touching of different clients;Such as QQ, net The requirement of real-time of message touching up to the target user of purchase application are had any different, therefore can be set corresponding to the real-time demand of message Numerical value, the requirement of real-time of QQ is higher than the requirement of real-time of online shopping application, therefore the size of message threshold value of QQ is less than online shopping application Size of message threshold value;
4) it, is used for the session-level of the type of different sessions (such as user to user conversation, cluster conversation) different Numerical value;Such as user is less than the size of message threshold value of cluster conversation, target user's concern to the size of message threshold value that user conversation is arranged The size of message threshold value of cluster conversation (top set opens message informing in the client) be greater than target user and do not pay close attention to and (such as exist Client closing message informing cluster conversation) size of message threshold value.
In practical applications, continue the next record period when timing time reaches, i.e., divided according to timing time and remembered It records the period, and after the arrival of each record period, it can be by subsequent polymerization and the step of push, in this way, making target user Unread message can be received on time in other ways, ensure that message offline or online and in the state of message can not be received Touching reaches the timeliness of target user;
Continue the next record period when the size of message recorded is more than size of message threshold value, i.e., is divided according to size of message and remembered The period is recorded, it, can be by subsequent polymerization and the step of push, in this way, making every time to target after the arrival of each record period The size of message of user's sending out notice message is balanced, i.e., the message of identical quantity is received in each target cycle user, avoids primary The case where pushed information amount excessively causes user to be unable to learn in time important messages, improve user experience.
Based on the above embodiment of the present invention, in practical applications, when with destination client be predetermined dimension carry out message note When record, destination client is determined in the client used in target user, comprising:
It determines using the client of at least one Types Below as destination client:
The whole clients installed in the terminal of target user;The preset client for needing PUSH message of target user; The network connection of target user is switched to before predetermined state, and the client of active state is in target terminal user;It needs Illustrate, active state here, can be foreground and show or running background or the state (example for carrying out information receiving and transmitting Such as: current server determines that wechat client is in based on the network connection state with the wechat client in target terminal user Off-line state, and before this, wechat client is just in front stage operation).
In practical applications, at least one session, including following kind of session that target user participates in:
Whole users that target user participates in are to user conversation;
Target user participates in and the user in concern state is to user conversation;
Target user participates in and participation is higher than the user of participation threshold value to user conversation;
Target user participate in and when being switched to predetermined state the user in active state to user conversation;
Whole cluster conversations that target user participates in;
Target user participates in and is in the cluster conversation of concern state;
Target user participates in and participation is higher than the cluster conversation of participation threshold value;
Cluster conversation in active state when target user participates in and is switched to predetermined state.
It should be noted that participation here, can be within the nearest predetermined time (such as 10 minutes) using user The no quantity/frequency for sending message and sending message indicates;Such as: the participation threshold value of user can be in 10 minutes memories In the operation for sending message, and the quantity for sending message is 3.
Correspondingly, determining mesh in the session that target user participates in when being that predetermined dimension records message with target session Rotating savings words, comprising: determine using the session of at least one Types Below as target session:
The session that target user participates in;The preset session for needing PUSH message;The network connection of target user is switched to Before predetermined state, the session in active state;Here session include user to user conversation, cluster conversation at least it One.
In actual implementation, when in the not received message of the target user of record include target user participate in and be switched to pre- The network connection of user to user conversation or cluster conversation, target user when determining state in active state is switched to predetermined shape When being in the session of active state before state, target user is facilitated to connect it using the mode in addition to by the way of client session Preceding session, and then guarantee the continuity of target user's session;Such as: server record the message from QQ crowds of user C it Before, the QQ client in target user's A terminal is in active state, and the not received message of target user A of server record In include that the message from QQ crowds of user C in this way, ensure that the continuity of the QQ session of target user A improves user's body It tests.
Step 103: when the message recorded meets message polymerizing condition, outbound message is analyzed from the message recorded Size of message carries out polymerization processing to message according to size of message.
Here, in actual implementation, when the message recorded meets message polymerizing condition (i.e. a record period is completed) When, it can not consider that the size of message for recording message directly merges the abstract of all message in record message;Alternatively, considering Size of message carries out polymerization processing to message according to size of message, as long as the size of message such as a record period exceeds maximum amount of message, Just carry out polymerization processing.
In one embodiment, polymerization processing is carried out to message according to size of message, may include:
The size of message of the message recorded in record period will when the maximum amount of message that can be carried beyond notification message The abstract of message recorded in record period merges;
The size of message of the message recorded in record period, when the maximum amount of message that can be carried without departing from notification message, Message recorded in record period is merged.
Here, above-mentioned abstract may include: message keyword, (such as message comes from which client, which group to informed source Which user in group session, group), message receipt times etc.;Such as: 9 points of 10 minutes message from wechat user Q: afternoon Meeting;9 points 11 minutes from QQ user group-sister's nest-leaf message: at night 8 points have a dinner party.In this way, target user can be enabled most The key content of easy understanding message promotes message reading efficiency.
In one embodiment, the abstract of message recorded in record period is merged, may include:
From in the message that record period is recorded, following at least one message is extracted: in particular demographic session Message and message from user to user conversation;From message remaining after extraction extract abstract, and with extracted Message coalescing;Such as: to avoid omitting the message in QQ user group-sister's nest, target user sets QQ user group-sister's nest Cluster conversation be particular demographic session, in actual implementation, server extract from QQ user group-sister's nest cluster conversation In message, the abstract of message and other cluster conversations from user to user conversation merges the message of extraction, One example are as follows: the message in QQ user group-sister's nest cluster conversation of extraction includes: sister A: weekend have a dinner party as What? sister B: good idea;Message from user to user conversation is sky;The abstract of other cluster conversations includes: from wechat- The fleet of companies-user W, E, R message: have a meeting in the afternoon;The message coalescing of extraction is obtained: sister's QQ nest: sister A: weekend has a dinner party How? sister B: good idea;From wechat-fleet of companies-user W, E, R message: have a meeting in the afternoon.
It here, may not include from user to user in actual implementation, in message recorded in record period The message of session therefore can be to attempt to extract, although that is, to from user to user conversation when carrying out message extraction The operation that message is extracted, but may not necessarily extract.
In some other embodiment, the abstract of message recorded in record period is merged, can also include:
From in the message that record period is recorded, the message in particular demographic session is extracted, and extract specific The abstract of message in cluster conversation;Such as: the message extracted in the cluster conversation that particular demographic session is sister's QQ nest obtains: Does sister A: how weekend have a dinner party? sister B: good idea, 11 restaurant point XX of morning Saturday? sister A: good;It further extracts and plucks Obtain: sister's QQ nest: weekend has a dinner party;In this way, avoiding target user from missing important or concern group's message, and due to extraction Cluster conversation abstract, can reduce the harassing and wrecking to target user as far as possible;In one embodiment, the message in particular demographic session is extracted Abstract may include: extract particular demographic session in all message abstract, or extract particular demographic session in target use The abstract of the message for the user that family is not paid close attention to so remains the complete message content of the user of target user's concern;
Alternatively, extracting the message from user to user conversation, and extract from the message that record period is recorded User to user conversation message abstract, then the abstract of extraction is merged;Such as: it extracts from user to use Does the message of family session include: from wechat-user X message: being healed? does weekend, which has a dinner party, have time? from QQ- user P Message: unit notify tomorrow group photo;The abstract for further extracting above-mentioned message obtains: wechat-X: having a dinner party;QQ-P: tomorrow Group photo;
Alternatively, extracting the abstract for all message that record period is recorded, the abstract of the message of the record of extraction is carried out Merge.
Based on the above embodiment of the present invention, in practical applications, the message in the particular demographic session is extracted, it can be with Include: to extract with the message of at least one Types Below:
From the message of the cluster conversation in concern state;
The message of user in cluster conversation in concern state;
From message of the user in the session into user conversation beyond participation threshold value;
Message in cluster conversation of the participation beyond participation threshold value of target user.
Step 104: polymerization processing result being encapsulated as notification message, passes through cellular mobile communication networks communication notification messages To target user.
Here, in actual implementation, polymerization processing result is encapsulated as notification message can be for directly by polymerization processing knot Content of text in fruit is encapsulated as being suitable for the notice for the textual form (such as short message form) transmitted in cellular mobile communication networks Message;Alternatively,
Polymerization processing result is encapsulated as notification message, can also include:
It is voice data by the text conversion carried in processing result is polymerize, obtains the polymerization processing result of speech form;
The polymerization processing result of speech form is encapsulated as to the notification message for being suitable for transmitting in cellular mobile communication networks.
Based on the above embodiment of the present invention, pass through cellular mobile communication networks communication notification messages to target user, comprising:
When network connection used in target user accesses internet includes WLAN connection, it is mobile to pass through honeycomb The connection communication notification messages based on circuit domain or packet domain of communication network are to target user;Such as: the terminal of target user Internet is accessed by Wi-Fi, then when the Wi-Fi connection status for determining target user is in predetermined state, by being based on 2G/ The connection communication notification messages of 4G;
It include WLAN connection and cellular mobile communication when target user accesses network connection used in internet When connection (2G/4G) based on data field of network, transmitted by the connection based on circuit domain of cellular mobile communication networks logical Know message to target user;Such as: it includes Wi-Fi connection and 4G connection that target user, which accesses the network connection that uses of internet, When then determining that the network connection state of target user is in predetermined state, by way of voice/short message service under 2G standard Communication notification messages;
When the state of the network connection of the first terminal of the target user is in the predetermined state, moved by honeycomb Move the second terminal of notification message described in communication network transmission to the target user.
In one embodiment, pass through the connection communication notification messages based on circuit domain of cellular mobile communication networks to target User may include:
Obtain the associated data communication service of notification message corresponding with target user;
The connection of the circuit domain of cellular mobile communication networks based on target user is passed by associated data communication service Defeated notification message is to target user.In practical applications, such as: target user, which has opened, reminds industry to the short message of notification message Business then passes through the terminal of SMS message transmission notification message to target user.
In practical applications, after this step, method can also include:
Receive the reply notification message that target user is sent by cellular mobile communication networks;
The session identification carried according to notification message is replied sends into corresponding session and replys notification message.
Fig. 3 shows another optional flow diagram of message treatment method provided in an embodiment of the present invention, including Step 201 is further illustrated to step 205 below in conjunction with message treatment method of each step to the embodiment of the present invention.
Step 201: target terminal user reports the signal strength for itself being connected into the network connection of internet.
In one embodiment, network connection used in target terminal user access internet can be only Wi-Fi network, Or (as both internet can be accessed by Wi-Fi network, it can also pass through including Wi-Fi network and cellular mobile communication networks Cellular mobile communication networks based on 4G connection access internet);For accessing internet by Wi-Fi, in actual implementation When, after target terminal user accesses internet, the periodically acquisition itself of (report cycle can be set according to actual conditions) It is connected into the signal strength of the network connection (Wi-Fi network connection) of internet and is reported to server, so that server is based on upper The signal strength of report knows the network connection situation of target terminal user.
Step 202: server determines that the network connection that target terminal user uses is in based on the signal strength reported Line and message status can not be received.
Here, in actual implementation, signal strength and preset signal strength threshold that server reports by comparing Size judges the network connection state of target terminal user, when the signal strength that target terminal user reports is less than preset signal When intensity threshold, determine that target terminal user is in online and can not receive message status;When the letter that target terminal user reports When number intensity is not less than preset signal strength threshold, determine that target terminal user is in receivable message status online.
Step 203a, other users terminal send message to target user via server.
Step 203b: server with it is specific when a length of period, periodically recorded from predetermined dimension from other terminals The not received message of target user.
In actual implementation, specific duration can be set by target user, i.e., different target users can correspond to difference Record period or server different target user defaulted execute unified record period, certainly, server also can base Different settings is carried out in level condition/paid cases of different target user etc.;Such as in one embodiment, pre- with target user If specific duration (such as 1 hour) be record period.
Based on the above embodiment of the present invention, in practical applications, the not received message of target user is recorded from predetermined dimension It can be with are as follows: the message in the global message of target user, or the preset destination client of record target user is recorded, or Person records the message in the preset target session of target user.It is (such as micro- with the preset destination client for recording target user Letter) in message for, server with 1 hour for record period, periodically record the target user from other terminals not The wechat message (including group's wechat message and C2C wechat message) received, such as: the mesh recorded in one record period of server Marking the unreceived wechat message of user includes: user Q: this afternoon has a meeting, and must not be late;Fraternal group-a: tonight drinks Wine, 6 points punctual;Fraternal group-b: punctual to participate in;Fraternal group-c:OK.
Step 204: at the end of a record period, extracting the abstract of the message of record, and carry out to the abstract of extraction Merge, the message after being merged.
Here, the citing in subsequent steps 203 at the end of the record period when server one small, extracts record The abstract of wechat message (including group's wechat message and C2C wechat message), obtains: user Q: have a meeting in the afternoon;Fraternal group-a, b, c: It drinks at night.
Step 205: the message after merging is encapsulated as notification message by server.
Step 206, server passes through cellular mobile communication networks communication notification messages to target user.
Here, in actual implementation, server can be by cellular mobile communication networks based on circuit domain or packet domain Connection communication notification messages to target user;That is, server learns that target user accesses Wi- used in internet Fi signal strength is weaker, though causing target user that can not receive message online, then server is passed by the connection based on 2G/4G Defeated notification message is to target terminal user, such as by the connection communication notification messages based on 4G to server, as shown in figure 4, Target terminal user accesses the schematic diagram of the notified message in internet by the connection type of 4G, in one embodiment, service Device can be by the connection based on 2G/4G, and communication notification messages show to target terminal user, such as Fig. 4 in the form of text/voice Go out in the form of short message that communication notification messages are to target terminal user, as shown in the figure, it is shown that the message after above-mentioned merging " is used Family Q: have a meeting in the afternoon;Fraternal group-a, b, c: it drinks at night ".In this way, target user can be received by the connection based on 2G/4G The abstract of unread message, and then fast and easily understood the key content of unread message, important messages will not be not only omitted, but also mention Message reading efficiency has been risen, more due to being extracted the abstract of unread message, that is, message content has been simplified, target user will not be given Harassing and wrecking are brought, the user experience is improved.
Fig. 5 shows another optional flow diagram of message treatment method provided in an embodiment of the present invention, including Step 301 is further illustrated to step 306 below in conjunction with message treatment method of each step to the embodiment of the present invention.
Step 301: server detects to obtain network connection used in target user's access internet in off-line state.
Here, target user's access internet can be only including Wi-Fi network or including Wi-Fi network and honeycomb movement Communication network;For including Wi-Fi network and cellular mobile communication networks, if the currently employed Wi-Fi network of target user connects Enter internet, when Wi-Fi network disconnects, switches seamlessly to and access internet using cellular mobile communication networks.
In actual implementation, when using TCP connection between server and target user, server sends number to target user After packet, the confirmation of target user is not received within a preset time, or no longer receive target user's in time-out time Confirmation, alternatively, exceeding frequency threshold value to the number that target user retransmits data packet (using TCP connection), alternatively, server is no longer The heartbeat data packets of target user are received, then can determine that the transport layer connection between target user and server disconnects, I.e. target user is in off-line state.
Step 302a, other users terminal send message to target terminal user via server.
Step 302b: server is periodically recorded using particular message amount as the period, from predetermined dimension from other terminals The not received message of target user.
Here, size of message can be the quantity of the message recorded in record period, alternatively, for the institute in record period The adduction of the length (such as byte number) of the message of record;By taking the quantity for the message that particular message amount is record as an example, actual implementation When, particular message amount can be set by target user (as set 15 information as a record period), i.e., different targets is used Family can correspond to different record period or server and default the unified record period of execution to different target users, i.e., Record period is used as using unified particular message amount (such as 5 message) for all target users, certainly, server also may be used Level condition/paid cases based on different target user etc. carry out different settings.
Based on the above embodiment of the present invention, in practical applications, the not received message of target user is recorded from predetermined dimension It can be with are as follows: the message in the global message of target user, or the preset destination client of record target user is recorded, or Person records the message in the preset target session of target user.The message in preset target session to record target user For, server periodically records disappearing in the not received target session of target user using particular message amount as record period Breath.
In actual implementation, target session can be at least one following session: the session that target user participates in;It is preset Need the session of PUSH message;The network connection of target user is switched to before off-line state, the session in active state;This In session include user at least one user conversation, cluster conversation.It is the preset PUSH message of needing with target session For particular demographic session and C2C session, server periodically records particular demographic meeting using particular message amount as record period It is preset periodically to record target user if server is using 10 size of messages as record period for message in words and C2C session Particular demographic session-wechat " sister's nest " and C2C session-wechat-wife message.
Step 303: at the end of a record period, server carries out polymerization processing to message.
Here, in actual implementation, carrying out polymerization processing to message may include:
The abstract for extracting the not received message of record, merges the clip Text of extraction;
Alternatively, the abstract of the message of non-interesting user in the not received message of record is extracted, to the clip Text of extraction And remaining message content merges;That is, in practical applications, the message of the user of target user's concern can be retained Complete content, to its abstract of the message extraction of other users, for example, if target user sets wechat-wife and uses for concern Family, if the message for having recorded wechat " sister's nest " includes: " sister a: weekend party;Sister b: go where? sister's c:S meal In the case that shop " and wechat-wife message include: " come off duty and go home as early as possible, is busy to discuss ", after this step, it is extracted Group's eap-message digest, and retain the message of concern user, it can be obtained: " wechat-sister's nest a, b, c: weekend party;Wechat-wife: It comes off duty and goes home as early as possible, busy to discuss " in this way, under the premise of guaranteeing that target user will not omit important messages, it can be quick The full content for knowing the message of good friend/relatives of oneself concern etc., improves user experience.
Step 304: server obtains the data communication service with the instant messaging association of target user.
Here, in practical applications, target user can open short message/voice reminder business, with network connection disconnect/ In the case of vulnerable network, disappearing in the not received instant messaging application of the target user of record is known by way of short message/voice Breath;Herein by taking the data communication service of the instant messaging association with target user is voice data communication business as an example, clothes The data communication service that identifies acquisition and the instant messaging association of target user of the device based on target user of being engaged in is voice number According to communication service.
Step 305: server is voice data by the text conversion carried in obtained processing result is polymerize, and obtains voice The polymerization processing result of form.
Step 306, server is encapsulated as notification message for processing result is polymerize.
Here, in actual implementation, the message of record is carried out polymerization treated information and carries out Text-To-Speech by server Conversion, and then target user can be enabled to know the message content of record in a manner of voice (such as phone).
Step 307: server passes through cellular mobile communication networks communication notification messages to target user.
It here, include Wi-Fi network and cellular mobile communication since target user accesses the network connection that internet uses Network, and server detects that the network connection state of target user is off-line state, therefore, server is mobile logical by honeycomb The connection communication notification messages based on circuit domain of communication network are to target user, i.e., by calling third-party speech interface to send Notification message is to target user, and Fig. 6 shows the application scenarios schematic diagram that target user receives notification message, as shown in fig. 6, mesh Mark user receives the message in not received target session in a manner of receiving calls, such as the content obtained after above-mentioned polymerization processing " wechat-sister's nest a, b, c: weekend party;Wechat-wife: coming off duty and go home as early as possible, busy to discuss ".In this way, guaranteeing target use Under the premise of family will not omit important messages, with speech form PUSH message to target user, facilitate target user in inconvenience Not received message is known in a manner of receiving calls in the case where reading text message.
Fig. 7 shows an optional application scenarios schematic diagram of message treatment method provided in an embodiment of the present invention, knot Fig. 7 is closed, message treatment method provided in an embodiment of the present invention is further illustrated.
In one embodiment, target user can choose specified communication group (such as QQ- " business associate group ") first, close The instant messaging application (such as QQ, wechat) and target user for joining target user identify (herein by taking the cell-phone number of target user as an example) And corresponding data communication service (herein by taking short message is reminded as an example), group message short message prompting function is opened, in this way, when target is used When the terminal at family is in vulnerable network or state without network, the specified message from QQ- " business associate group " can be believed with short message The form of breath is pushed to target user.
Certainly, in some other embodiment, target user can also open the short message prompting function of C2C message, such as Fig. 8 institute Show, target user A is associated with/binds the cell-phone number of QQ and itself, when the terminal of target user A is in vulnerable network or without the shape of network When state, the not received C2C message of target user A is sent to target user A by server in the form of short message;It needs to illustrate It is that server just can be sent to target user A by one C2C message of every reception in the form of short message, also can periodically records The not received C2C message of target user A is sent to target user after then polymerizeing to the C2C message of record in the form of short message A。
It connects above-mentioned target user and opens group example of message short message prompting function, when server knows that target user is in Vulnerable network (signal strength be less than preset signal strength threshold) or when without network (target user be in off-line state), periodicity The not received specified QQ group's message of record target user, both special time period can be used for record period here, such as adopted It was record period with 1 hour, which is suitable for the situation that not received message is less in target user's unit time, can also It uses particular message amount for record period, X is such as reached with the total length that not received message reaches 10 or not received message Byte is a record period, and which is suitable for the situation that not received message is more in target user's unit time.Below It is illustrated respectively.
First to use special time period to be illustrated as record period, Fig. 9 show server to the message of record into The schematic diagram of the different polymerization processing of row, as shown in figure 9, server is come from special time period (1 hour) periodically record The message for the QQ- " business associate group " that target user specifies, is packaged into notification message for the message of record after allowing, with the shape of short message Formula is handed down to the terminal of target user;Here, in actual implementation, the message of record, which is packaged into notification message, may include:
When the quantity of the message of record is less than preset amount threshold (such as 3), directly every message of record is sealed Dress up notification message;That is, when group's message number is less (such as in the unit time) in specific time, it can be directly with short The form of letter issues every message;
When the quantity of the message of record reaches preset amount threshold, and to be less than single short for the total length of the message recorded When believing length, (merging) is polymerize to the message of record, the message after polymerization is then packaged into notification message;Such as Figure 10 institute It is shown as when the message of the QQ- " business associate group " of record includes following message 1 to message 4, target terminal user is with short message shape The message schematic diagram that formula receives;Wherein, message 1:QQ- " business associate group "-B: how is weather;Message 2:QQ- " business associate Group "-C: it rains;Message 3:QQ- " business associate group "-D: have a meeting in the afternoon;Message 4:QQ- " business associate group "-E: good.Such as Figure 10 It is shown, since above-mentioned message 1 to 4 quantity of message that server receives in record period has been more than preset amount threshold, and 4 The total length of message is less than single short message length, therefore, above-mentioned 4 message can be merged then in the form of short message under Issue the terminal of target user.
When the quantity of the message of record reaches preset amount threshold, and the total length of the message recorded is more than single short message When length, the abstract of the message of non-interesting user in the message of record is extracted, and use paying close attention in the abstract extracted and message Then message after merging is packaged into notification message by the message coalescing at family;Here concern user is QQ- " business associate group " Middle target user is labeled as the user paid close attention to, correspondingly, unlabelled is non-interesting user, herein with QQ- " business associate For group "-D is the concern user of target user;If above-mentioned message 1 to message 4 has been more than single short message length, " public to QQ- Department colleague group "-, the message of B, C, E carry out abstract extraction and then merge with the message of D to be then packaged as notification message, most Target user is handed down in the form of short message eventually, Figure 11 shows the message that target terminal user is received in the form of short message, such as Figure 11 It is shown, the entire message content of concern user is remained in the notification message that shows of terminal of target user, and include non- Pay close attention to abstract " QQ- " the business associate group of user "-, B, C, E send group's message ", in this way, both save cost, reduce to The harassing and wrecking at family, improve the information content of single short message carrying, while avoiding the information that user misses concern user.
To use particular message amount to be illustrated as record period, server is with particular message amount (message total length XX word Section) message that periodically records the QQ- " business associate group " specified from target user, it is total when the message that server records When length reaches preset particular message amount-XX byte, terminate the record in the period, the message of record is packaged into notice and is disappeared Breath, is handed down to the terminal of target user in the form of short message;Here, in actual implementation, the message of record is packaged into notice Message may include:
The message of record is directly merged and (for the lesser situation of byte number of particular message amount, is such as not more than one The byte number that short message accommodates), it is then packaged as notification message, target terminal user is handed down in the form of short message;
Alternatively, the abstract for extracting all message of record (for the situation that the byte number of particular message amount is larger, is such as more than The byte number that 5 short messages accommodate), then the abstract of extraction is merged, the message after merging is packaged into notification message, with Short message form is handed down to target terminal user;
Alternatively, extracting the abstract of the message of non-interesting user in the message of record, and will be in the abstract and message that extract The message coalescing for paying close attention to user, is then packaged into notification message for the message after merging, target user is handed down in the form of short message Terminal.
In actual implementation, target user can carry out message by short message replying above-mentioned QQ groups of message, so accomplish Two-way intercommunication with QQ groups.
Using the above embodiment of the present invention, server passes through the state for judging the network connection of target terminal user, determines Whether target terminal user can receive message, when determining that target user cannot receive, periodically records target and uses The message that the specified needs in family push, and different polymerizations is carried out to the message of record for different situations and is handled, work as message When measuring larger, eap-message digest can be extracted, can be so that user transmits information as much as possible by less short message quantity, The message of the user of target user's concern can also be retained, when extracting abstract to guarantee that target user will not miss important disappear Under the premise of breath, target user's experience is improved.
Figure 12 shows another optional flow diagram of message treatment method provided in an embodiment of the present invention, including Step 401 is further illustrated to step 404 below in conjunction with message treatment method of each step to the embodiment of the present invention.
Step 401: the client that server detects to obtain target user is in an inactive state more than scheduled duration.
Here, an inactive state can be background operation state, by taking above-mentioned client is QQ client as an example, target user It is conversated chat using QQ, then the first terminal (such as pad) that the QQ client is arranged is placed in and no longer operates (one on one side It is outgoing to go window-shopping after first terminal can be placed in sofa for target user by scene), QQ is transferred to background operation state, server inspection Measuring the QQ on the pad of target user and being in an inactive state is more than that scheduled duration (can be set, such as based on actual needs 30 minutes).
Step 402: server periodically records whole from other users using particular message amount as the period, from predetermined dimension The not received message of the target user at end, and at the end of a record period, polymerization processing is carried out to message.
Step 403: server obtains the data communication service with the instant messaging association of target user, and based on pass The content of text carried in the obtained processing result of polymerization is encapsulated as the notification message of short message form by the data communication service of connection.
Step 404: the second terminal that server passes through cellular mobile communication networks communication notification messages to target user.
The not received message of target user is pushed to target by the scene mentioned in subsequent steps 401 in the form of short message The second terminal (such as mobile phone) of user.
Figure 13 shows an optional composite structural diagram of message processing apparatus provided in an embodiment of the present invention, the message Processing unit can be located at server, and as shown in figure 13, message processing apparatus 800 provided in an embodiment of the present invention includes with next A or multiple components: processing component 802, memory 804, I/O interface 812 and communication component 814.
The integrated operation of the usual control message processing unit 800 of processing component 802, such as with display, call, data The associated operations such as communication, camera shooting and information record.Processing component 802 may include one or more processors 820 Executable program is executed, to complete all or part of the steps of the above method.In addition, processing component 802 may include one Or multiple modules, convenient for the interaction between processing component 802 and other assemblies.
Specifically, the processor is for execution when running the executable program:
It detects target user and accesses the state being connected to the network used in internet;
When determining that the target user is in predetermined state according to the state of the network connection, records the target and use The not received message in family;
When the message recorded meets message polymerizing condition, the message of the message is analyzed from the message recorded Amount, carries out polymerization processing to the message according to the size of message;
Polymerization processing result is encapsulated as notification message, transmits the notification message to institute by cellular mobile communication networks State target user.
In one embodiment, it when the processor is also used to run the executable program, executes:
When the signal strength for the network connection that the target user reports to server, it is lower than signal strength threshold When, determine that the target user is online and can not receive message;
When network connection used in the target user accesses internet is in an off state, determine that the target is used Family is in off-line state.
In one embodiment, it when the processor is also used to run the executable program, executes:
The message is recorded when each record period starts, and when timing time reaches, continues the next record period; Alternatively,
The message is recorded when each record period starts, when the size of message of recorded message exceeds size of message threshold value When, continue the next record period.
In one embodiment, it when the processor is also used to run the executable program, executes:
When each record period starts, at least one of is executed:
Record the global message of the target user;
Destination client is determined in the client used in the target user, records disappearing in the destination client Breath;
Target session is determined in the session that the target user participates in, and records the message in the target session.
In one embodiment, it when the processor is also used to run the executable program, executes:
It determines with the client of at least one Types Below as the destination client:
The whole clients installed in the terminal of the target user;The preset client for needing PUSH message;It is described The network connection of target user is switched to before predetermined state, the client in active state;
It is described that target session is determined in the session that the target user participates in, comprising:
It determines with the session of at least one Types Below as the target session: the cluster conversation that the target user participates in; The preset cluster conversation for needing PUSH message;The network connection of the target user is switched to before predetermined state, in work The session of jump state.
In one embodiment, at least one session, including following kind of session that the target user participates in:
The user that the target user participates in is to user conversation;
Whole cluster conversations that the target user participates in;
The target user participates in and is in the cluster conversation of concern state;
The target user participates in and participation is higher than the group of participation threshold valueGroupSession;
The target user participates in and is in when being switched to predetermined state or the cluster conversation of active state.
In one embodiment, it when the processor is also used to run the executable program, executes:
The size of message of the message recorded in the record period, the maximum message that can be carried beyond the notification message When amount, the abstract of message recorded in the record period is merged;
The size of message of the message recorded in the record period, the maximum that can be carried without departing from the notification message disappear When breath amount, message recorded in the record period is merged.
In one embodiment, it when the processor is also used to run the executable program, executes:
From in the message that the record period is recorded, extracts the message in particular demographic session and come Derived from the message of user to user conversation;
From message remaining after extraction extract abstract, and with extracted message coalescing.
In one embodiment, it when the processor is also used to run the executable program, executes:
It extracts with the message of at least one Types Below:
From the message of the cluster conversation in concern state;
The message of user in cluster conversation in concern state;
From message of the user in the session into user conversation beyond participation threshold value;
Message in cluster conversation of the participation beyond participation threshold value of the target user.
In one embodiment, it when the processor is also used to run the executable program, executes:
When the target user access internet used in network connection include WLAN connection when, by described The connection based on circuit domain or packet domain of cellular mobile communication networks transmits the notification message to the target user;
It include that WLAN connection and honeycomb are mobile when the target user accesses network connection used in internet When the connection based on data field of communication network, institute is transmitted by the connection based on circuit domain of the cellular mobile communication networks Notification message is stated to the target user.
In one embodiment, it when the processor is also used to run the executable program, executes:
It is voice data by the text conversion carried in the polymerization processing result, obtains at the polymerization of speech form Manage result;
The polymerization processing result of speech form is encapsulated as being suitable for transmitting in the cellular mobile communication networks Notification message.
In one embodiment, it when the processor is also used to run the executable program, also executes:
Receive the reply notification message that the target user is sent by the cellular mobile communication networks;
According to the session identification that the reply notification message carries, the reply notification message is sent into corresponding session.
Memory 804 can be by any kind of volatibility or non-volatile memory device or their combination Lai real It is existing.Wherein, nonvolatile memory can be read-only memory (ROM, Read Only Memory), programmable read only memory (PROM, Programmable Read-Only Memory) etc..Volatile memory can be random access memory (RAM, Random Access Memory), it is used as External Cache.By exemplary but be not restricted explanation, many forms RAM it is available, such as static random access memory (SRAM, Static Random Access Memory), synchronize it is static with Machine accesses memory (SSRAM, Synchronous Static Random Access Memory) etc..The embodiment of the present invention is retouched The memory 804 stated is intended to include but is not limited to the memory of these and any other suitable type.
Memory 804 is for storing various types of data to support the operation of message processing apparatus 800.These data Example includes: any executable program for operating on message processing apparatus 800, such as operating system and application program;Connection It is personal data;Telephone book data;Message;Picture;Video etc..Wherein, operating system includes various system programs, such as frame Layer, core library layer, driving layer etc., for realizing various basic businesses and the hardware based task of processing.Application program can be with Comprising various application programs, such as media player (Media Player), browser (Browser) etc., for realizing various Applied business.Realize that the program of present invention method may include in the application.
Power supply module 806 provides electric power for the various assemblies of message processing apparatus 800.Power supply module 806 may include electricity Management system, one or more power supplys and other are associated with electric power is generated, managed, and distributed for message processing apparatus 800 Component.
Information exchange of the I/O interface 812 between processing component 802 and peripheral interface module provides interface, above-mentioned periphery Interface module can be keyboard, mouse, trace ball, click wheel, key, button etc..These buttons may include, but are not limited to: homepage Button, volume button, start button and locking press button.
Communication of the communication component 814 for wired or wireless way between message processing apparatus 800 and other equipment.Message Processing unit 800 can access the wireless network based on communication standard, such as Wi-Fi, 2G, 3G, 4G or their combination.At one In exemplary embodiment, broadcast singal or wide of the communication component 814 via broadcast channel reception from external broadcasting management system Broadcast relevant information.In one exemplary embodiment, the communication component 814 further includes near-field communication (NFC, Near Field Communication) module, to promote short range communication.For example, radio frequency identification (RFID, Radio can be based in NFC module Frequency Identification) technology, infrared data tissue (IrDA, Infrared Data Association) skill Art, ultra wide band (UWB, Ultra Wide Band) technology, bluetooth (BT, Blue Tooth) technology or other technologies are realized.
The method that the embodiments of the present invention disclose can be applied in processor 820, or be realized by processor 820. Processor 820 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 820 or the instruction of software form.Above-mentioned processing Device 820 can be general processor, digital signal processor (DSP, Digital Signal Processor) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..Processor 820 may be implemented or hold Disclosed each method, step and logic diagram in the row embodiment of the present invention.General processor can be microprocessor or appoint What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly at hardware decoding Reason device executes completion, or in decoding processor hardware and software module combine and execute completion.Software module can be located at In storage medium, which is located at memory 804, and processor 820 reads the information in memory 804, in conjunction with its hardware The step of completing preceding method.
In the exemplary embodiment, message processing apparatus 800 can be by one or more application specific integrated circuit (ASIC, Application Specific Integrated Circuit), DSP, programmable logic device (PLD, Programmable Logic Device), Complex Programmable Logic Devices (CPLD, Complex Programmable Logic Device), field programmable gate array (FPGA, Field-Programmable Gate Array), general processor, control Device, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor) or other electronics member Part is realized, for executing preceding method.
It need to be noted that: above is referred to the description of message processing apparatus, be with above method description it is similar, together The beneficial effect of method describes, and does not repeat them here.It is thin for undisclosed technology in message processing apparatus embodiment of the present invention Section, please refers to the description of embodiment of the present invention method.
The embodiment of the invention also provides a kind of storage mediums, are stored thereon with executable program, the executable code Processor performs the steps of when executing
It detects target user and accesses the state being connected to the network used in internet;
When determining that the target user is in predetermined state according to the state of the network connection, records the target and use The not received message in family;
When the message recorded meets message polymerizing condition, the message of the message is analyzed from the message recorded Amount, carries out polymerization processing to the message according to the size of message;
Polymerization processing result is encapsulated as notification message, transmits the notification message to institute by cellular mobile communication networks State target user.
In conclusion the embodiment of the present invention has the advantages that
1) when network connection used in target user accesses internet is in predetermined state, pass through cellular mobile communication Network transmission is by the notification message of target user's not received message encapsulation to target user;In this way, ensure that target user not Received message is touched in time up to target user, without missing important messages;
2) size of message of outbound message is analyzed from the message recorded when the message recorded meets message polymerizing condition, Transmission is packaged after carrying out polymerization processing to message according to size of message;In this way, on the one hand avoid size of message it is larger when one by one It sends message to cause the case where frequently interfering user, on the other hand, PUSH message, which can disposably be touched up to user, more to be believed Breath.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (15)

1. a kind of message treatment method characterized by comprising
It detects target user and accesses the state being connected to the network used in internet;
When determining that the target user is in predetermined state according to the state of the network connection, the target user is recorded not Received message;
When the message recorded meets message polymerizing condition, the size of message of the message is analyzed from the message recorded, Polymerization processing is carried out to the message according to the size of message;
Polymerization processing result is encapsulated as notification message, transmits the notification message to the mesh by cellular mobile communication networks Mark user.
2. the method as described in claim 1, which is characterized in that the state according to the network connection determines the target User is in predetermined state, comprising:
When the signal strength for the network connection that the target user reports to server is sentenced when being lower than signal strength threshold The fixed target user is online and can not receive message;
When the target user access internet used in network connection be in an off state when, determine at the target user In off-line state.
3. the method as described in claim 1, which is characterized in that described to record the not received message of the target user, comprising:
The not received message of the target user is recorded when each record period starts, when timing time reaches, under continuing One record period;Alternatively,
The not received message of the target user is recorded when each record period starts, when the size of message of recorded message exceeds When size of message threshold value, continue the next record period.
4. method as claimed in claim 3, which is characterized in that described to record the target use when each record period starts The not received message in family, comprising:
When each record period starts, at least one of is executed:
Record the overall situation of the target user does not receive message;
Destination client is determined in the client used in the target user, records not receiving in the destination client Message;
Target session is determined in the session that the target user participates in, and is recorded in the target session and is not received message.
5. method as claimed in claim 4, which is characterized in that
Destination client is determined in the client used in the target user, comprising:
It determines with the client of at least one Types Below as the destination client:
The whole clients installed in the terminal of the target user;The preset client for needing PUSH message;The target The network connection of user is switched to before predetermined state, the client in active state;
It is described that target session is determined in the session that the target user participates in, comprising:
It determines with the session of at least one Types Below as the target session: the cluster conversation that the target user participates in;It is default The cluster conversation for needing PUSH message;The network connection of the target user is switched to before predetermined state, in enlivening shape The session of state.
6. method as claimed in claim 4, which is characterized in that
At least one the session, including following kind of session that the target user participates in:
The user that the target user participates in is to user conversation;
Whole cluster conversations that the target user participates in;
The target user participates in and is in the cluster conversation of concern state;
The target user participates in and participation is higher than the cluster conversation of participation threshold value;
The target user participates in and is in when being switched to predetermined state or the cluster conversation of active state.
7. the method as described in claim 1, which is characterized in that
It is described that polymerization processing is carried out to the message according to the size of message, comprising:
The size of message of the message recorded in the record period, the maximum amount of message that can be carried beyond the notification message When, the abstract of message recorded in the record period is merged;
The size of message of the message recorded in the record period, the maximum amount of message that can be carried without departing from the notification message When, message recorded in the record period is merged.
8. the method for claim 7, which is characterized in that the abstract by message recorded in the record period It merges, comprising:
From in the message that the record period is recorded, following at least one message is extracted: in particular demographic session Message and message from user to user conversation;
From message remaining after extraction extract abstract, and with extracted message coalescing.
9. method according to claim 8, which is characterized in that the message in particular demographic session, including with The message of at least one Types Below:
From the message of the cluster conversation in concern state;
The message of user in cluster conversation in concern state;
From message of the user in the session into user conversation beyond participation threshold value;
Message in cluster conversation of the participation beyond participation threshold value of the target user.
10. the method as described in claim 1, which is characterized in that described to transmit the notice by cellular mobile communication networks Message is to the target user, comprising:
When the target user access internet used in network connection be WLAN connection when, moved by the honeycomb The connection based on circuit domain or packet domain of dynamic communication network transmits the notification message to the target user;
It include WLAN connection and cellular mobile communication when the target user accesses network connection used in internet When the connection based on data field of network, transmitted by the connection based on circuit domain of the cellular mobile communication networks described logical Know message to the target user.
11. the method as described in claim 1, which is characterized in that described to transmit the notice by cellular mobile communication networks Message is to the target user, comprising:
It is mobile logical by honeycomb when the state of the network connection of the first terminal of the target user is in the predetermined state Communication network transmits the notification message, until the second terminal of the target user.
12. the method as described in claim 1, which is characterized in that it is described that polymerization processing result is encapsulated as notification message, it wraps It includes:
It is voice data by the text conversion carried in the polymerization processing result, obtains the polymerization processing knot of speech form Fruit;
The polymerization processing result of speech form is encapsulated as to the notice for being suitable for transmitting in the cellular mobile communication networks Message.
13. the method as described in claim 1, which is characterized in that further include:
Receive the reply notification message that the target user is sent by the cellular mobile communication networks;
According to the session identification that the reply notification message carries, the reply notification message is sent into corresponding session.
14. a kind of message processing apparatus characterized by comprising
Memory, for storing executable program;
Processor, when for running the executable program stored in the memory, perform claim is required described in 1 to 13 any one Message treatment method.
15. a kind of readable storage medium storing program for executing, is stored with executable program, which is characterized in that the executable program is used when being run 1 to 13 described in any item message treatment methods are required in perform claim.
CN201710400591.5A 2017-05-31 2017-05-31 Message processing method and device and storage medium Active CN108989179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710400591.5A CN108989179B (en) 2017-05-31 2017-05-31 Message processing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710400591.5A CN108989179B (en) 2017-05-31 2017-05-31 Message processing method and device and storage medium

Publications (2)

Publication Number Publication Date
CN108989179A true CN108989179A (en) 2018-12-11
CN108989179B CN108989179B (en) 2020-10-02

Family

ID=64502566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710400591.5A Active CN108989179B (en) 2017-05-31 2017-05-31 Message processing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN108989179B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418207A (en) * 2019-03-29 2019-11-05 腾讯科技(深圳)有限公司 Information processing method, device and storage medium
CN112311656A (en) * 2020-02-14 2021-02-02 北京字节跳动网络技术有限公司 Message aggregation and display method and device, electronic equipment and computer readable medium
CN112437402A (en) * 2021-01-27 2021-03-02 北京快成科技股份公司 Real-time information pushing method and device based on mobile terminal and mobile terminal
CN113489786A (en) * 2021-07-01 2021-10-08 北京玩蟹科技有限公司 Long connection network weak network reconnection method and retransmission method
CN115022390A (en) * 2022-05-27 2022-09-06 中国银行股份有限公司 Weak network-based service processing method, device, storage medium and program product
CN117082133A (en) * 2023-10-17 2023-11-17 吉牛云(吉林)农业科技集团有限公司 Industry policy pushing management system based on cloud service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161005A1 (en) * 2009-12-31 2011-06-30 The Aerospace Corporation Systems and methods for end-to-end location and media content tracking
CN102238097A (en) * 2010-05-07 2011-11-09 阿里巴巴集团控股有限公司 Instant messaging (IM)-based information reminding method and device
CN103685570A (en) * 2013-12-27 2014-03-26 兴天通讯技术(天津)有限公司 Server, terminal and message pushing method
CN106302094A (en) * 2015-06-03 2017-01-04 腾讯科技(深圳)有限公司 Information push method and device
CN106411706A (en) * 2016-09-22 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Method and device for offline sending and receiving RCS group chatting message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161005A1 (en) * 2009-12-31 2011-06-30 The Aerospace Corporation Systems and methods for end-to-end location and media content tracking
CN102238097A (en) * 2010-05-07 2011-11-09 阿里巴巴集团控股有限公司 Instant messaging (IM)-based information reminding method and device
CN103685570A (en) * 2013-12-27 2014-03-26 兴天通讯技术(天津)有限公司 Server, terminal and message pushing method
CN106302094A (en) * 2015-06-03 2017-01-04 腾讯科技(深圳)有限公司 Information push method and device
CN106411706A (en) * 2016-09-22 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Method and device for offline sending and receiving RCS group chatting message

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418207A (en) * 2019-03-29 2019-11-05 腾讯科技(深圳)有限公司 Information processing method, device and storage medium
CN110418207B (en) * 2019-03-29 2021-08-31 腾讯科技(深圳)有限公司 Information processing method, device and storage medium
CN112311656A (en) * 2020-02-14 2021-02-02 北京字节跳动网络技术有限公司 Message aggregation and display method and device, electronic equipment and computer readable medium
CN112437402A (en) * 2021-01-27 2021-03-02 北京快成科技股份公司 Real-time information pushing method and device based on mobile terminal and mobile terminal
CN113489786A (en) * 2021-07-01 2021-10-08 北京玩蟹科技有限公司 Long connection network weak network reconnection method and retransmission method
CN113489786B (en) * 2021-07-01 2023-11-14 北京玩蟹科技有限公司 Reconnection method and retransmission method for weak network of long connection network
CN115022390A (en) * 2022-05-27 2022-09-06 中国银行股份有限公司 Weak network-based service processing method, device, storage medium and program product
CN117082133A (en) * 2023-10-17 2023-11-17 吉牛云(吉林)农业科技集团有限公司 Industry policy pushing management system based on cloud service
CN117082133B (en) * 2023-10-17 2023-12-29 吉牛云(吉林)农业科技集团有限公司 Industry policy pushing management system based on cloud service

Also Published As

Publication number Publication date
CN108989179B (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN108989179A (en) Message treatment method and device, storage medium
CN100544390C (en) A kind of data method for pushing and system
US20140226537A1 (en) Conferencing Techniques
TWI294241B (en) Method for a communication device to filter an incoming call according to location
CN104967557A (en) Communication message sending method and apparatus
CN111316624B (en) Personalized audio/video invitation for telephone calls
US10419371B2 (en) Methods and systems for delayed notifications in communications networks
US9762734B1 (en) Intermediary device for data message network routing
CN109768920A (en) A kind of position sharing method, instant communication client and server
CN106550314B (en) Call forwarding method based on Bluetooth positioning technology
CN104717375B (en) A kind of method and apparatus for realizing saving power for terminal
CN103686863B (en) Realize the method and system of control signaling transmission
CN107124706A (en) The method of forward call, apparatus and system between a kind of mobile phone
CN108809894A (en) A kind of method and terminal of networking telephone processing
CN105704305A (en) Communication response method and device of communication terminal
CN107368326A (en) Course control method and device
CN205566446U (en) Voice gateway
CN100396130C (en) Information processing method and mobile station using the same
US8358764B1 (en) Method and apparatus for automatically scheduling a telephone connection
CN104144388B (en) A kind of method and mobile terminal of the business of expanding communication in the terminal
WO2016095752A1 (en) Service processing method and device, and home gateway
CN105978789A (en) Message pushing system and method thereof
WO2022116844A1 (en) Call method, terminal and readable storage medium
El Saghir et al. An intelligent assistant for context-aware adaptation of personal communications
Song Design and simulation of A SIP-based Message Notification Mechanism

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
GR01 Patent grant
GR01 Patent grant