CN104506416B - A kind of method, apparatus and system for realizing the stable push of message - Google Patents

A kind of method, apparatus and system for realizing the stable push of message Download PDF

Info

Publication number
CN104506416B
CN104506416B CN201410788109.6A CN201410788109A CN104506416B CN 104506416 B CN104506416 B CN 104506416B CN 201410788109 A CN201410788109 A CN 201410788109A CN 104506416 B CN104506416 B CN 104506416B
Authority
CN
China
Prior art keywords
message
push
state
network connection
terminal
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.)
Expired - Fee Related
Application number
CN201410788109.6A
Other languages
Chinese (zh)
Other versions
CN104506416A (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201410788109.6A priority Critical patent/CN104506416B/en
Publication of CN104506416A publication Critical patent/CN104506416A/en
Application granted granted Critical
Publication of CN104506416B publication Critical patent/CN104506416B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method, apparatus and system for realizing the stable push of message, for improving the stability of message push, this method includes:Acquisition will treat that PUSH message is cached after PUSH message, and records and treat that the message of PUSH message sends state;The network connection state of detection terminal, and record network connection state;State and network connection state are sent according to message, judge whether to message push;If it is determined that carrying out message push, then wake-up signal is sent to terminal, after the response signal of wake-up signal of terminal replies is received, caching is treated that PUSH message pushes to terminal, and the message fed back according to terminal obtains state new information and sends state.

Description

A kind of method, apparatus and system for realizing the stable push of message
Technical field
The present invention relates to Internet technical field, and in particular to a kind of to realize the stable method, apparatus pushed of message and be System.
Background technology
With the progress of mechanics of communication so that enterprise mobile working breaches traditional limitation, the huge development of acquisition Space.Current Mobile solution nearly all provides message push function, and these message push in the prior art is all no shape State mark, for example, using APNS (Apple Push Notification Service, the service of apple sending out notice) or When GCM (Google Cloud Messaging for Android, Google's cloud message) carries out application message push, as long as message Send and think that message pushes successfully.
But message is transmitted by public network environment, because public network environment unstable state occurs often, message be present Situation about being lost after push.Therefore, the message push mode of this prior art can not ensure that message is successfully pushed to client, Successfully pushed due to that can not ensure that message can be stablized, very big potential safety hazard especially on enterprise mobile application be present, such as When enterprise moves end pipe control, if the order of push, which is lost, may result in office workflow interruption or other safety problems Appearance.
The content of the invention
In view of this, the present invention provides a kind of method, apparatus and system for realizing the stable push of message, to solve existing skill It can not ensure that message is successfully pushed to the technical problem of client in art.
To solve the above problems, technical scheme provided by the invention is as follows:
A kind of method for realizing the stable push of message, methods described include:
Acquisition treats that PUSH message is cached after PUSH message, by described, and the message of PUSH message is treated described in record Transmission state;
The network connection state of detection terminal, and record the network connection state;
State and the network connection state are sent according to the message, judge whether to message push;
If it is determined that carrying out message push, then wake-up signal is sent to the terminal, receiving the terminal replies After the response signal of the wake-up signal, it will treat that PUSH message pushes to the terminal described in caching, and according to the terminal The message of feedback obtains state and updates the message transmission state.
Accordingly, the message sends the original state of state and not sent for message, described to be fed back according to the terminal Message obtains state new information and sends state, including:
It is that message obtains successfully when the message of terminal feedback obtains state, then does not send out message transmission state by message Send and be updated to message and push successfully;
It is that message obtains failure when the message of terminal feedback obtains state, then does not send out message transmission state by message Send and be updated to message push failure.
Accordingly, it is described that state and the network connection state are sent according to the message, judge whether to message Push, including:
When it is that message is not sent or message push fails that the message, which sends state, then the network connection shape is read State;
When determining stable connection according to the network connection state, then judge to carry out message push;
When determining that connection is unstable according to the network connection state, then by described in network connection state acquisition The signal intensity and safe class of terminal, message transmission success rate is determined by the signal intensity and the safe class, When the message transmission success rate is more than threshold value, then judge to carry out message push.
Accordingly, methods described also includes:
If not judging to carry out message push, message transmission state is remained into current state, and default Repeated after time and state and the network connection state are sent according to the message, judge whether to message push;
Treat whether PUSH message exceedes the pot-life described in judgement, if it is, treating PUSH message and right described in deleting The message answered sends state.
A kind of method for realizing the stable push of message, methods described include:
Network connection state is detected, and the network connection state is reported to message push server, so that the message Push server sends state according to message and the network connection state judges whether to message push;
When the message push server judges to carry out message push, the wake-up letter that message push server is sent is received Number, and reply to the message push server response signal of the wake-up signal;
Receive the information to be pushed of the message push server push;
The information to be pushed of reception is verified, disappeared according to check results to message push server feedback Cease acquisition state.
A kind of device for realizing the stable push of message, described device include:
Buffer unit, for obtaining after PUSH message, treat that PUSH message is cached by described;
First recording unit, state is sent for recording the message for treating PUSH message;
Detection unit, the network connection state for detection terminal;
Second recording unit, for recording the network connection state;
First judging unit, for sending state and the network connection state according to the message, judge whether into Row message pushes;
Transmitting element, for if it is determined that carrying out message push, then to terminal transmission wake-up signal;
Message push unit, for after the response signal of the wake-up signal of the terminal replies is received, by institute State the described of buffer unit caching and treat that PUSH message pushes to the terminal;
Updating block, the message for being fed back according to the terminal obtains to be recorded in state renewal first recording unit The message send state.
Accordingly, the original state that the message sends state is that message is not sent, and the updating block is specifically used for:
It is that message obtains successfully when the message of terminal feedback obtains state, then does not send out message transmission state by message Send and be updated to message and push successfully;
It is that message obtains failure when the message of terminal feedback obtains state, then does not send out message transmission state by message Send and be updated to message push failure;
First judging unit includes:
Subelement is read, for when it is that message is not sent or message push fails that the message, which sends state, then reading The network connection state;
First judgment sub-unit, for when determining stable connection according to the network connection state, then judging to be disappeared Breath push;
Second judgment sub-unit, for when according to the network connection state determine connection it is unstable when, then by described Network connection state obtains the signal intensity and safe class of the terminal, by the signal intensity and the safe class Message transmission success rate is determined, when the message transmission success rate is more than threshold value, then judges to carry out message push.
Accordingly, described device also includes:
Holding unit, if for not judging to carry out message push, message transmission state is remained currently State, and return to first judging unit after preset time and perform and connected according to message transmission state and the network State is connect, judges whether to message push;
Second judging unit, for judging described to treat whether PUSH message exceedes the pot-life;
Unit is deleted, if the judged result for second judging unit is yes, PUSH message is treated described in deletion And corresponding message sends state.
A kind of device for realizing the stable push of message, described device include:
Detection unit, for detecting network connection state;
Reporting unit, for reporting the network connection state to message push server, so that message push clothes Business device sends state according to message and the network connection state judges whether to message push;
First receiving unit, when the message push server judges to carry out message push, receive message push service The wake-up signal that device is sent;
Transmitting element, for replying the response signal of the wake-up signal to the message push server;
Second receiving unit, for receiving the information to be pushed of the message push server push;
Feedback unit, for being verified to the information to be pushed of reception, pushed away according to check results to the message Server feedback message is sent to obtain state.
A kind of system for realizing the stable push of message, the system include:
Message push server and terminal;
The message push server, be it is above-mentioned the first realize the device of the stable push of message;
The terminal, it is above-mentioned second device for realizing the stable push of message.
As can be seen here, the embodiment of the present invention has the advantages that:
Message is cached and records the transmission state of message by message push server in the embodiment of the present invention, according to work as Preceding network connection state and message send whether condition adjudgement can carry out message push, and message good in network environment is not Pushed again in the case of being sent to terminal, the success rate of message push can be provided, and during message pushes, first Wake up terminal PUSH message, i.e. terminal active obtaining message, and terminal can be fed back and disappear again after terminal response wake-up signal Whether breath push succeeds, and further increases the success rate of message push, realizes the transmitting of message push, is especially looking forward to Reduce in industry Mobile solution due to potential safety hazard caused by message push.
Brief description of the drawings
Fig. 1 is the flow chart of the embodiment of the method one realized message stabilization and pushed provided in the embodiment of the present invention;
Fig. 2 is the schematic diagram of multidimensional Fuzzy inference patterns in the embodiment of the present invention;
Fig. 3 is the flow chart of the embodiment of the method two realized message stabilization and pushed provided in the embodiment of the present invention;
Fig. 4 is the flow chart of the embodiment of the method three realized message stabilization and pushed provided in the embodiment of the present invention;
Fig. 5 is the schematic diagram of the device embodiment one realized message stabilization and pushed provided in the embodiment of the present invention;
Fig. 6 is the schematic diagram of the device embodiment two realized message stabilization and pushed provided in the embodiment of the present invention;
Fig. 7 is the schematic diagram of the system embodiment one realized message stabilization and pushed provided in the embodiment of the present invention;
Fig. 8 is the schematic diagram of the system embodiment two realized message stabilization and pushed provided in the embodiment of the present invention.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real Mode is applied to be described in further detail the embodiment of the present invention.
Usually using polling mode, (i.e. client timing is sent to server obtains mobile push service in the prior art Message request) or long connected mode (i.e. server actively sends message to terminal).Most of existing products are pushed using message Server keeps the mode of long connection with Enterprise Mobile terminal device, to ensure the actual effect of message push, still, lacks data Security mechanism, it can not ensure that message can be pushed successfully.The method for realizing the stable push of message that is itd is proposed in the embodiment of the present invention, Apparatus and system, based on long interconnection technique, caching design is carried out to message, is pushed by server to client terminals The prompting of " having message ", terminal active obtaining, and carry out multiple handshake authentication again, realize that the stable feeding of message push reaches, pole Big degree improves the success rate and stability of message push.
It is shown in Figure 1 based on above-mentioned thought, it is the method for realizing the stable push of message provided in the embodiment of the present invention Embodiment one, the present embodiment will be described from the design factors for realizing the stable push of message, and this realizes the stable push of message Device can be specifically loaded in message push server, and the present embodiment may comprise steps of:
Step 101:Acquisition will treat that PUSH message is cached after PUSH message, and record the message for treating PUSH message Transmission state.
Message push server receives the message that Mobile solution background service needs to push to terminal first, that is, receives and wait to push away Message is sent, will treat that PUSH message is parsed and cached, it is ensured that message goes wrong in transmission or can entered during undelivered terminal Row pushes again, while also provides data source for subsequent audit work.Message class can be obtained by treating PUSH message and carrying out parsing The content such as type, the terminal iidentification of corresponding transmission, it can be text message or notice, system command, file etc. to treat PUSH message Different messages type.It can record simultaneously and treat that the message of PUSH message sends state, the original state that message sends state is to disappear Breath is not sent, and message sends that state can also include message push failure, message push successfully etc., and message sends state as judgement Whether a factor of judgment of message push is carried out to terminal.
Step 102:The network connection state of detection terminal, and record network connection state.
Message push server actively can send network connection detection request to terminal, such as can be sent out to terminal timing Send heartbeat signal, then the response signal of heartbeat signal that receiving terminal is replied is with the network connection state of detection terminal;Can also The network connection of the network connection state of receiving terminal active reporting, i.e. message push server receiving terminal timing active reporting State.Network connection state can include between message push server and terminal whether stable connection, the signal of terminal are strong Degree and safe class etc. content, network connection state are another judgement for judging whether to carry out message push to terminal Factor.
Step 103:State and network connection state are sent according to message, judge whether to message push.
In some embodiments of the invention, the specific implementation of this step can include:It is message when message sends state Do not send or message is pushed when failing, then read network connection state;
When determining stable connection according to network connection state, then judge to carry out message push;
When determining that connection is unstable according to network connection state, then the signal that terminal is obtained by network connection state is strong Degree and safe class, determine message transmission success rate, when message transmission success rate is more than by signal intensity and safe class During threshold value, then judge to carry out message push.
In the present embodiment, Fuzzy (fuzzy) inference pattern can be used by judging whether to message push.In current net During network stable connection, simple Fuzzy inference patterns can be used, simple Fuzzy inference patterns only accept minor premise A and major premise A->B precondition A releases B when completely the same, otherwise refusal is accepted.The scene corresponded in the present embodiment, i.e. current message Need to send (send state be message do not send or message push failure) then directly judge to carry out message push, it is necessary to end End sends wake-up signal.
And current network connection it is unstable when, can use multidimensional Fuzzy inference patterns, it is shown in Figure 2, i.e., each discuss Domain is calculated by simple Fuzzy inference patterns, then the result of each domain is taken into common factor, merges into a final result, wherein A1->B to An->B can be the empirical data obtained.The scene corresponded in the present embodiment, such as when A1=network signals are strong Spend for 0.8 when, B=message transmission success rate be 90%;When A1=network signal intensities are 0.6, B=message transmission success rates For 80%;When A1=network signal intensities are 0.5, B=message transmission success rate is 50% etc., strong by current network signal Degree can obtain corresponding message transmission success rate, can similarly obtain the B values of the domain of A2=safe classes, i.e., by currently pacifying Congruent level can obtain corresponding message transmission success rate, then the result of different domains is carried out into parallel processing, obtain final Message transmission success rate.Finally need to be more than threshold value 70% according to reliability requirement, such as message transmission success rate, obtain whether Carry out the result of message push.In the present embodiment, two kinds of domains of signal intensity and safe class are included, while can be with Needed to carry out the increase and decrease of dimension according to different stability.
Step 104:If it is determined that carrying out message push, then wake-up signal is sent to terminal, receiving terminal replies After the response signal of wake-up signal, caching is treated that PUSH message pushes to terminal, and the message fed back according to terminal obtains shape State new information sends state.
When judging to need to carry out message push, terminal is waken up first, i.e., sends wake-up signal to terminal, and terminal is being called out The response signal for waking up information is replied after waking up, GC group connector has carried out the preparation for receiving message, and such terminal is no longer passively to connect The message of push is received, and is comparable to treat PUSH message by replying response message active obtaining to message push server, eventually End carries out message verification after message is received, and obtains state to message push server feedback message, message, which obtains state, to be included Message obtains successfully or message obtains failure.In some embodiments of the invention, the message fed back according to terminal obtains state The specific implementation that new information sends state can include:It is that message obtains successfully when the message of terminal feedback obtains state, then Message is sent into state do not sent by message and be updated to message and push successfully;Obtained when the message of terminal feedback obtains state for message Failure is taken, then message transmission state is not sent by message and is updated to message push failure.
In addition, in some embodiments of the invention, it can also include:, will if not judging to carry out message push Message sends state and remains current state, and is repeated after preset time and send state and network connection according to message State, judge whether to message push.
In some embodiments of the invention, can also include:Judgement treats whether PUSH message exceedes the pot-life, if It is then to delete to treat that PUSH message and corresponding message send state.
It is shown in Figure 3 based on above-described embodiment, it is the side for realizing message stabilization and pushing provided in the embodiment of the present invention Method embodiment two, the present embodiment may comprise steps of:
Step 301:PUSH message is treated in acquisition, will treat that PUSH message is cached.
Step 302:Record treats that the message of PUSH message sends state.It is understood that obtaining after PUSH message, treat It is original state that the message of PUSH message, which sends state,:Message is not sent.
Step 303:Send whether condition adjudgement message needs to send according to message, if it is, performing step 304, such as Fruit is no, then performs step 307.
When it is that message is not sent or message push fails that message, which sends state, then message needs to send, and when message is sent out Send state for message push successfully when, then message need not be sent.
Step 304:Judge whether network state can be pushed according to network connection state, if it is, performing step Rapid 305, if not, return to step 302.
Stable connection is determined when sending state by message, then can be pushed, and determines to connect when sending state by message Connect unstable, then according to the judgment mode illustrated in above-described embodiment, pass through the signal intensity that network connection state obtains terminal And safe class, message transmission success rate is determined by signal intensity and safe class, when message transmission success rate is more than threshold It during value, then can be pushed, when message transmission success rate is less than threshold value, then cannot be pushed.
When that cannot be pushed, return to step 302 keeps currently transmitted state, continues to keep message not send or disappear Breath push status of fail.
Step 305:Wake-up signal is sent to terminal, will after the response signal of wake-up signal of terminal replies is received Caching treats that PUSH message pushes to terminal.
Step 306:The message of receiving terminal feedback obtains state.Obtained when the message of terminal feedback obtains state for message Success, then message is sent state and do not sent by message by return to step 302 is updated to message and pushes successfully;When disappearing for terminal feedback It is that message obtains failure to cease acquisition state, then message is sent state and do not sent by message by return to step 302 is updated to message and pushes away Send failure;Be Transmission when the message of terminal feedback obtains state, then return to step 304.
Step 307:Judgement treats whether PUSH message exceedes the pot-life, if it is, step 308 is performed, if not, returning Step 302.
Return to step 302 keeps currently transmitted state, continues to keep message push success status.
Step 308:Deletion treats that PUSH message and corresponding message send state.
So, message is cached and records the transmission state of message by message push server in the embodiment of the present invention, Send whether condition adjudgement can carry out message push according to current network connection status and message, it is good in network environment and Message is pushed again in the case of not being sent to terminal, can provide the success rate of message push, and in the mistake of message push Cheng Zhong, first wakes up terminal PUSH message, i.e. terminal active obtaining message again after terminal response wake-up signal, and terminal can be with Whether feedback message push succeeds, and further increases the success rate of message push, realizes the transmitting of message push, especially It reduces in enterprise mobile application due to potential safety hazard caused by message push.
It is shown in Figure 4, it is that what is provided in the embodiment of the present invention realize the embodiment of the method three of the stable push of message, this reality Applying example will be described from the design factors for realizing the stable push of message, and this realizes that the device of the stable push of message can specifically collect Into in the client, the client can load in the terminal, and the terminal is specifically as follows smart mobile phone, tablet personal computer, electronics (Moving Picture Experts Group Audio Layer III, dynamic image expert compress mark by book reader, MP3 Quasi- audio aspect 3) player, (Moving Picture Experts Group Audio Layer IV, dynamic image are special by MP4 Family's compression standard audio aspect 3) player, pocket computer on knee and desktop computer etc., the present embodiment can include Following steps:
Step 401:Network connection state is detected, and to message push server report network connection status, so that message Push server sends state according to message and network connection state judges whether to message push.
Terminal can be with active reporting network connection state, the i.e. network connection to message push server timing active reporting State;The heartbeat signal that can also be sent to message push server responds, so that message push server detection terminal Network connection state, state and network connection state are sent according to the message for treating PUSH message, judge whether to message Push.
Step 402:When message push server judges to carry out message push, calling out for message push server transmission is received Wake up signal, and to message push server reply wake-up signal response signal.
Receive the wake-up signal of message push server transmission, you can be waken up and be replied to message push server The response signal of wake-up signal, into etc. message to be received push state, to ensure that terminal receives the success rate of message push.
Step 403:Receive the information to be pushed of message push server push.
Step 404:The information to be pushed of reception is verified, disappeared according to check results to message push server feedback Cease acquisition state.
The message that end-on receives can use message authentication algorithm to carry out message data accuracy verification, and message obtains State can be message obtain successfully, message acquisition unsuccessfully or Transmission.
So, message is cached and records the transmission state of message by message push server in the embodiment of the present invention, Send whether condition adjudgement can carry out message push according to current network connection status and message, it is good in network environment and Message is pushed again in the case of not being sent to terminal, can provide the success rate of message push, and in the mistake of message push Cheng Zhong, first wakes up terminal PUSH message, i.e. terminal active obtaining message again after terminal response wake-up signal, and terminal can be with Whether feedback message push succeeds, and further increases the success rate of message push, realizes the transmitting of message push, especially It reduces in enterprise mobile application due to potential safety hazard caused by message push.
It is shown in Figure 5, it is that what is provided in the embodiment of the present invention realize the device embodiment one of the stable push of message, this reality Apply example and realize that the device of the stable push of message can be specifically loaded in message push server, can include:
Buffer unit 501, for obtaining after PUSH message, it will treat that PUSH message is cached.
First recording unit 502, treat that the message of PUSH message sends state for recording.
Detection unit 503, the network connection state for detection terminal.
Second recording unit 504, for recording network connection state.
First judging unit 505, for sending state and network connection state according to message, judge whether to message Push.
Transmitting element 506, for if it is determined that carrying out message push, then to terminal transmission wake-up signal.
Message push unit 507, for after the response signal of wake-up signal of terminal replies is received, by buffer unit Caching treats that PUSH message pushes to terminal.
Updating block 508, obtain state for the message fed back according to terminal and update disappearing of being recorded in the first recording unit Cease transmission state.
In some embodiments of the invention, the original state that message sends state can be that message is not sent, then update Unit can be specifically used for:
It is that message obtains successfully when the message of terminal feedback obtains state, then does not send message transmission state by message Newly pushed successfully for message;
It is that message obtains failure when the message of terminal feedback obtains state, then does not send message transmission state by message It is newly message push failure.
In some embodiments of the invention, the first judging unit can include:
Subelement is read, for when it is that message is not sent or message push fails that message, which sends state, then reading network Connection status;
First judgment sub-unit, for when determining stable connection according to network connection state, then judging that carrying out message pushes away Send;
Second judgment sub-unit, for when determining that connection is unstable according to network connection state, then passing through network connection State obtains the signal intensity and safe class of terminal, and message transmission success rate is determined by signal intensity and safe class, When message transmission success rate is more than threshold value, then judge to carry out message push.
In some embodiments of the invention, can also include:
Holding unit, if for not judging to carry out message push, message transmission state is remained into current state, And the first judging unit returned after preset time perform and state and network connection state are sent according to message, judge whether into Row message pushes.
In some embodiments of the invention, can also include:
Second judging unit, for judging to treat whether PUSH message exceedes the pot-life;
Unit is deleted, if the judged result for the second judging unit be yes, deletes and treats PUSH message and correspondingly Message send state.
So, message is cached and records the transmission state of message by message push server in the embodiment of the present invention, Send whether condition adjudgement can carry out message push according to current network connection status and message, it is good in network environment and Message is pushed again in the case of not being sent to terminal, can provide the success rate of message push, and in the mistake of message push Cheng Zhong, first wakes up terminal PUSH message, i.e. terminal active obtaining message again after terminal response wake-up signal, and terminal can be with Whether feedback message push succeeds, and further increases the success rate of message push, realizes the transmitting of message push, especially It reduces in enterprise mobile application due to potential safety hazard caused by message push.
It is shown in Figure 6, it is that what is provided in the embodiment of the present invention realize the device embodiment two of the stable push of message, this reality Apply example and realize that the device of the stable push of message can specifically load in the terminal, can include:
Detection unit 601, for detecting network connection state.
Reporting unit 602, for message push server report network connection status, so that message push server root State is sent according to message and network connection state judges whether to message push.
First receiving unit 603, when message push server judges to carry out message push, receive message push server The wake-up signal of transmission.
Transmitting element 604, for replying the response signal of wake-up signal to message push server.
Second receiving unit 605, for receiving the information to be pushed of message push server push.
Feedback unit 606, for being verified to the information to be pushed of reception, according to check results to message push service Device feedback message obtains state.
So, message is cached and records the transmission state of message by message push server in the embodiment of the present invention, Send whether condition adjudgement can carry out message push according to current network connection status and message, it is good in network environment and Message is pushed again in the case of not being sent to terminal, can provide the success rate of message push, and in the mistake of message push Cheng Zhong, first wakes up terminal PUSH message, i.e. terminal active obtaining message again after terminal response wake-up signal, and terminal can be with Whether feedback message push succeeds, and further increases the success rate of message push, realizes the transmitting of message push, especially It reduces in enterprise mobile application due to potential safety hazard caused by message push.
It is shown in Figure 7, it is that what is provided in the embodiment of the present invention realize the system embodiment one of the stable push of message, can be with Including:
Message push server 701 and terminal 702.
Message push server, can be the device embodiment one that the stable push of message is realized in above-described embodiment;Terminal, It can be the device embodiment two that the stable push of message is realized in above-described embodiment.
It is shown in Figure 8, it is the system embodiment two realized message stabilization and pushed provided in the embodiment of the present invention, in order to The method for realizing the stable push of message provided in the embodiment of the present invention is realized, in actual applications, terminal 702 can include disappearing Cease storehouse, information authentication device, message getter, message informing receiver, state synchronizer and state monitor.Message push clothes Being engaged in, device 701 can include message receiver, message caches storehouse, message status storehouse, terminal connection status storehouse, heartbeat connector, shape State analyzer, message awakening device and message transmitter.With reference to Fig. 8 to be provided in the embodiment of the present invention realize that message is stable The operation principle of the system embodiment of push illustrates, and wherein solid line flow represents the process before message push, dotted line stream Cheng represents the process of message push.
In the structure shown here, the state synchronizer in terminal, for being timed communication with message push server, end is reported The network connection states such as network state (signal intensity), safe class state and the connection status at end, and according to current state The strategy of dynamic regulation uploaded state, such as good in network state, mobile client were in the case of safety on half an hour Once, network poorly reported once report with regard to ten minutes.Or the heartbeat signal of message push server, return to above-mentioned network Connection status.
State monitor, terminal device safe class inspection, network condition inspection are carried out for receiving state synchronizer instruction Look into.
Message informing receiver, the wake-up signal sent for receiving push server.
Message getter, for being waken up when transmission after having the wake-up signal of message for receiving message push server transmission The response signal of signal, receive the message content of message push server push.
Message library, for storing the message received, and notify to apply app to each.
Information authentication device, for carrying out message data accuracy school to the message received according to fixed news verification algorithm Test, if the message of push is the progress that Doctype can also record push, to support breakpoint transmission etc..
In the structure shown here, the message receiver in message push server, for being responsible for receiving Mobile solution background service Prepare the message sent to terminal, that is, receive and treat PUSH message.
Message caches storehouse, for that will treat that PUSH message is cached, it is ensured that message energy in loading error occurring or undelivered Secondary push is enough carried out, while data source is provided for subsequent audit work.
Message status storehouse, for record treat PUSH message message send state, include whether to push, if push into Whether work(, message fail, and help state analyzer to judge whether to send wake-up signal to client terminals.
Terminal connection status storehouse, for recording network connection state, mark terminal device whether with message push server Connection status is kept, terminal signaling strength conditions and safe class situation is recorded, data source is provided for state analyzer, to sentence It is disconnected whether to client terminals to send wake-up signal.
Heartbeat connector, for periodic detection, maintenance and the newest connection status of terminal, ensure and terminal connection status storehouse Real-time connection.
State analyzer, for the network connection state according to terminal, treat that the message transmission state progress of PUSH message is comprehensive Close decision analysis, if wake up terminal and carry out message push, while itself built-in knowledge base, record terminal is in different connections Under state, network state (signal intensity) and safe class, after sending wake-up signal, client obtains the success rate of message, and The adjustment of message push strategy is carried out according to this, such as can be pushed immediately including message, delay push or state back to normal Push again.
Message awakening device, wake-up signal is sent to terminal for the result according to state analyzer.
Message transmitter, responded for being given when terminal obtains message content to message push server, from message library In will treat that PUSH message is transmitted to terminal device.
So, message is cached and records the transmission state of message by message push server in the embodiment of the present invention, Send whether condition adjudgement can carry out message push according to current network connection status and message, it is good in network environment and Message is pushed again in the case of not being sent to terminal, can provide the success rate of message push, and in the mistake of message push Cheng Zhong, first wakes up terminal PUSH message, i.e. terminal active obtaining message again after terminal response wake-up signal, and terminal can be with Whether feedback message push succeeds, and further increases the success rate of message push, realizes the transmitting of message push, especially It reduces in enterprise mobile application due to potential safety hazard caused by message push.
It should be noted that each embodiment is described by the way of progressive in this specification, each embodiment emphasis is said Bright is all the difference with other embodiment, between each embodiment identical similar portion mutually referring to.For reality For applying system disclosed in example or device, because it is corresponded to the method disclosed in Example, so fairly simple, the phase of description Part is closed referring to method part illustration.
It should also be noted that, herein, such as first and second or the like relational terms are used merely to one Entity or operation make a distinction with another entity or operation, and not necessarily require or imply between these entities or operation Any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to contain Lid nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (9)

  1. A kind of 1. method for realizing the stable push of message, it is characterised in that methods described includes:
    Acquisition treats that PUSH message is cached after PUSH message, by described, and treats that the message of PUSH message is sent described in record State;
    The network connection state of detection terminal, and record the network connection state;
    State and the network connection state are sent according to the message, judge whether to message push;
    If it is determined that carrying out message push, then wake-up signal is sent to the terminal, received described in the terminal replies After the response signal of wake-up signal, it will treat that PUSH message pushes to the terminal described in caching, and feed back according to the terminal Message obtain state and update the message and send state;
    Described to send state and the network connection state according to the message, judging whether to message push includes:
    When it is that message is not sent or message push fails that the message, which sends state, then the network connection state is read;When When determining stable connection according to the network connection state, then judge to carry out message push;When according to the network connection state It is determined that when connecting unstable, then the signal intensity and safe class of the terminal are obtained by the network connection state, by The signal intensity and the safe class determine message transmission success rate, when the message transmission success rate is more than threshold value When, then judge to carry out message push.
  2. 2. according to the method for claim 1, it is characterised in that the original state that the message sends state is not sent out for message To send, the message fed back according to the terminal obtains state new information and sends state, including:
    It is that message obtains successfully when the message of terminal feedback obtains state, then does not send message transmission state by message Newly pushed successfully for message;
    It is that message obtains failure when the message of terminal feedback obtains state, then does not send message transmission state by message It is newly message push failure.
  3. 3. according to the method described in claim any one of 1-2, it is characterised in that methods described also includes:
    If not judging to carry out message push, message transmission state is remained into current state, and in preset time After repeat state and the network connection state sent according to the message, judge whether to message push;
    Treat whether PUSH message exceedes the pot-life described in judgement, if it is, treating PUSH message and corresponding described in deleting Message sends state.
  4. A kind of 4. method for realizing the stable push of message, it is characterised in that methods described includes:
    Network connection state is detected, and the network connection state is reported to message push server, so that the message pushes Server sends state according to message and the network connection state judges whether to message push;The message push clothes Business device sends state according to message and the network connection state judges whether to message push and included:When the message is sent out It is that message is not sent or message is pushed when failing to send state, then reads the network connection state;When according to the network connection When state determines stable connection, then judge to carry out message push;When determining that connection is unstable according to the network connection state, The signal intensity and safe class of terminal are then obtained by the network connection state, by the signal intensity and the peace Congruent level determines message transmission success rate, when the message transmission success rate is more than threshold value, then judges to carry out message push;
    When the message push server judges to carry out message push, the wake-up signal that message push server is sent is received, And the response signal of the wake-up signal is replied to the message push server;
    Receive the information to be pushed of the message push server push;
    The information to be pushed of reception is verified, obtained according to check results to the message push server feedback message Take state.
  5. 5. a kind of device for realizing the stable push of message, it is characterised in that described device includes:
    Buffer unit, for obtaining after PUSH message, treat that PUSH message is cached by described;
    First recording unit, state is sent for recording the message for treating PUSH message;
    Detection unit, the network connection state for detection terminal;
    Second recording unit, for recording the network connection state;
    First judging unit, for sending state and the network connection state according to the message, judge whether to disappear Breath push;
    Transmitting element, for if it is determined that carrying out message push, then to terminal transmission wake-up signal;
    Message push unit, for after the response signal of the wake-up signal of the terminal replies is received, described will delay The described of memory cell caching treats that PUSH message pushes to the terminal;
    Updating block, the message for being fed back according to the terminal obtain state and update the institute recorded in first recording unit State message and send state;
    First judging unit includes:
    Subelement is read, described in when it is that message is not sent or message push fails that the message, which sends state, then reading Network connection state;
    First judgment sub-unit, for when determining stable connection according to the network connection state, then judging that carrying out message pushes away Send;
    Second judgment sub-unit, for when determining that connection is unstable according to the network connection state, then passing through the network Connection status obtains the signal intensity and safe class of the terminal, is determined by the signal intensity and the safe class Message transmission success rate, when the message transmission success rate is more than threshold value, then judge to carry out message push.
  6. 6. device according to claim 5, it is characterised in that the original state that the message sends state is not sent out for message Send, the updating block is specifically used for:
    It is that message obtains successfully when the message of terminal feedback obtains state, then does not send message transmission state by message Newly pushed successfully for message;
    It is that message obtains failure when the message of terminal feedback obtains state, then does not send message transmission state by message It is newly message push failure.
  7. 7. according to the device described in claim any one of 5-6, it is characterised in that described device also includes:
    Holding unit, if for not judging to carry out message push, message transmission state is remained into current state, And first judging unit is returned after preset time and is performed according to message transmission state and the network connection shape State, judge whether to message push;
    Second judging unit, for judging described to treat whether PUSH message exceedes the pot-life;
    Delete unit, if the judged result for second judging unit be yes, deletion described in treat PUSH message and Corresponding message sends state.
  8. 8. a kind of device for realizing the stable push of message, it is characterised in that described device includes:
    Detection unit, for detecting network connection state;
    Reporting unit, for reporting the network connection state to message push server, so that the message push server State is sent according to message and the network connection state judges whether to message push;The message push server root State is sent according to message and the network connection state judges whether to message push and included:When the message sends state Do not sent for message or message is pushed when failing, then read the network connection state;When true according to the network connection state When determining stable connection, then judge to carry out message push;When determining that connection is unstable according to the network connection state, then pass through The network connection state obtains the signal intensity and safe class of terminal, by the signal intensity and the safe class Message transmission success rate is determined, when the message transmission success rate is more than threshold value, then judges to carry out message push;
    First receiving unit, when the message push server judges to carry out message push, receive message push server hair The wake-up signal sent;
    Transmitting element, for replying the response signal of the wake-up signal to the message push server;
    Second receiving unit, for receiving the information to be pushed of the message push server push;
    Feedback unit, for being verified to the information to be pushed of reception, pushed and taken to the message according to check results Business device feedback message obtains state.
  9. 9. a kind of system for realizing the stable push of message, it is characterised in that the system includes:
    Message push server and terminal;
    The message push server, it is the device for realizing the stable push of message described in claim any one of 5-7;
    The terminal, it is the device for realizing the stable push of message described in claim 8.
CN201410788109.6A 2014-12-17 2014-12-17 A kind of method, apparatus and system for realizing the stable push of message Expired - Fee Related CN104506416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410788109.6A CN104506416B (en) 2014-12-17 2014-12-17 A kind of method, apparatus and system for realizing the stable push of message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410788109.6A CN104506416B (en) 2014-12-17 2014-12-17 A kind of method, apparatus and system for realizing the stable push of message

Publications (2)

Publication Number Publication Date
CN104506416A CN104506416A (en) 2015-04-08
CN104506416B true CN104506416B (en) 2017-11-28

Family

ID=52948131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410788109.6A Expired - Fee Related CN104506416B (en) 2014-12-17 2014-12-17 A kind of method, apparatus and system for realizing the stable push of message

Country Status (1)

Country Link
CN (1) CN104506416B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100062A (en) * 2015-06-25 2015-11-25 走遍世界(北京)信息技术有限公司 Information push method, device and system
CN105072181A (en) * 2015-08-07 2015-11-18 北京思特奇信息技术股份有限公司 Message data distribution system and method based on notice dispatching center
CN106470144A (en) * 2015-08-14 2017-03-01 中兴通讯股份有限公司 A kind of message treatment method and device
CN106899645B (en) * 2015-12-21 2019-10-18 北方信息控制集团有限公司 A kind of DDS data interactive method under unstable network environment
CN105933369B (en) * 2015-12-24 2019-05-10 中国银联股份有限公司 A kind of message forwarding method and equipment
CN105657000A (en) * 2015-12-25 2016-06-08 北京奇虎科技有限公司 Message transmission method and device
CN105933130A (en) * 2016-04-25 2016-09-07 四川联友电讯技术有限公司 Fragmented asynchronous conference system voice information push method
CN106331058A (en) * 2016-08-12 2017-01-11 东软集团股份有限公司 Message transmission method and device
CN106302119A (en) * 2016-08-15 2017-01-04 深圳市轱辘车联数据技术有限公司 A kind of method and apparatus of pushed information
CN106060959B (en) * 2016-08-18 2020-04-17 Tcl集团股份有限公司 Method and device for preventing network connection message from being retransmitted and android system
CN107341062B (en) * 2017-06-28 2021-01-08 百度在线网络技术(北京)有限公司 Data pushing method, device, equipment and storage medium
CN107809494B (en) * 2017-12-14 2021-01-26 深圳市斑点猫信息技术有限公司 Message delay pushing method and system thereof
CN110324384B (en) * 2018-03-30 2024-04-09 北京京东尚科信息技术有限公司 Data pushing method and device
CN109255653A (en) * 2018-08-27 2019-01-22 阿里巴巴集团控股有限公司 The dynamic pin method, apparatus of one kind and electronic equipment
CN109600301B (en) * 2018-11-23 2021-12-31 腾讯音乐娱乐科技(深圳)有限公司 Message processing method and device
CN110365749B (en) * 2019-06-25 2021-11-30 上海非码网络科技有限公司 Message pushing method, message pushing system and storage medium
CN112291044B (en) * 2019-07-25 2022-04-12 大唐移动通信设备有限公司 Method and device for intercepting energy-saving signal
CN110740195B (en) * 2019-11-20 2022-05-20 山东鲁能软件技术有限公司 Distributed system data synchronization method and system based on message engine
CN113204378A (en) * 2021-04-21 2021-08-03 深圳市广和通无线股份有限公司 Configuration file state synchronization method, device, terminal, server and storage medium
CN113326154B (en) * 2021-06-28 2023-07-14 深信服科技股份有限公司 Connection management method, device, electronic equipment and storage medium
CN114286430A (en) * 2021-11-19 2022-04-05 北京博大光通物联科技股份有限公司 Wireless awakening mechanism and image putting method applied to electronic paper handle ring
CN113902132B (en) * 2021-12-09 2022-05-24 北京达佳互联信息技术有限公司 Training method of negative feedback behavior prediction model, message pushing method and equipment
CN115118773B (en) * 2022-06-29 2023-08-18 宁波三星智能电气有限公司 Data file pushing method, server and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567859A (en) * 2008-04-24 2009-10-28 鸿富锦精密工业(深圳)有限公司 Message transmitting system and method
CN102413436A (en) * 2011-09-14 2012-04-11 华为技术有限公司 Method and system for transmitting information, and browser on mobile terminal
CN102892193A (en) * 2012-09-20 2013-01-23 华为技术有限公司 Method and equipment for transmitting data
CN103327039A (en) * 2012-03-20 2013-09-25 腾讯科技(深圳)有限公司 Method and device and system for pushing messages

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5285203A (en) * 1990-06-05 1994-02-08 Matsuhita Electric Industrial Co., Ltd. Message transmission device, and a message transmission system and a message transmission status advising system using the message transmission device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567859A (en) * 2008-04-24 2009-10-28 鸿富锦精密工业(深圳)有限公司 Message transmitting system and method
CN102413436A (en) * 2011-09-14 2012-04-11 华为技术有限公司 Method and system for transmitting information, and browser on mobile terminal
CN103327039A (en) * 2012-03-20 2013-09-25 腾讯科技(深圳)有限公司 Method and device and system for pushing messages
CN102892193A (en) * 2012-09-20 2013-01-23 华为技术有限公司 Method and equipment for transmitting data

Also Published As

Publication number Publication date
CN104506416A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN104506416B (en) A kind of method, apparatus and system for realizing the stable push of message
CN104348809B (en) network security monitoring method and system
CN105024986A (en) Account login method, device and system
CN105991412B (en) Information push method and device
US20170026388A1 (en) Phishing Training Tool
US11425571B2 (en) Device configuration method, apparatus and system
CN112291271B (en) Method, system and medium for automatically logging in server by mobile equipment
CN102231716B (en) Instant communication service login method
US10110623B2 (en) Delaying phishing communication
CN105357110B (en) E-mail sending method, apparatus and system
US20110060800A1 (en) Method of guaranteeing the deliverability of emails and other messages
CN103490978A (en) Terminal, server and message monitoring method
CN103795762A (en) Reverse agent test system and method
CN109525949A (en) Register method and device, storage medium, server, user terminal
CN110430062A (en) Logging request processing method, device, equipment and medium
CN110602111A (en) Interface anti-brushing method and system based on long connection
CN113360752A (en) Message pushing method, device, equipment and readable medium
CN109992940A (en) Auth method, device, system and proof of identity server
CN109088872A (en) Application method, device, electronic equipment and the medium of cloud platform with service life
CN109086608A (en) A kind of detection file uploads method, terminal device and the server of loophole
CN107566421A (en) A kind of login method
CN104113465B (en) Realize the method and system of Message Processing in instant messaging open platform
CN103647704B (en) A kind of microblogging login method and system based on ERP system
WO2012139462A1 (en) Method, device, and system that enable signaling tracking
CN107295179A (en) The method and apparatus that a kind of short message is shown

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171128

Termination date: 20211217