A kind of information push method, device, server and computer readable storage medium
Technical field
The present invention relates to field of computer technology, more particularly to a kind of information push method, device, server and calculating
Machine readable storage medium storing program for executing.
Background technology
Universal and mobile phone with home intelligent equipment is widely used, important extension of the mobile phone as human body,
Critical effect is played in information exchange.For example, family's air detection instrument detects air quality, and the air matter detected
Amount information is pushed on the mobile phone of each member of family, to facilitate each member of family that can understand same day air quality feelings in real time
Condition;Intelligent washing machine washes clothes automatically, the prompting message for completing laundry is pushed on kinsfolk's mobile phone, to facilitate family
Each member can know that washing machine completes laundry at the first time;Home intelligent firing range dry combustion method, dry combustion method alarm pushing to family
On member's mobile phone, so that kinsfolk can obtain alarm notification, etc. in time.Method such as Fig. 1 institutes of existing message push
Show, specifically, the prior art is after UMS sends message success, and smart machine terminal receives message, then shows, message
Push is completed.
That is, more and more home intelligent equipment need in family all members or few members hand over
Mutually, still, it is pushed currently based on the message of kinsfolk, is provided that all kinsfolks can receive message push, if
Some user thinks the display of control message, typically by the message push service on the manual closing hand phone of user, and can not do
PUSH message is carried out to the demand for kinsfolk.
Invention content
The present invention provides a kind of information push method, device, server and computer readable storage mediums, existing to solve
There is the problem of can not carrying out message push for the demand of user in technology.
On the one hand, the present invention provides a kind of information push method, this method includes:Message is led to by preset message
News agreement is sent to terminal;According to message communication agreement and the feedback of the terminal-pair message received, message is controlled.
Further, according to message communication agreement and the feedback of the terminal-pair message received, message is controlled,
It specifically includes:The type of message of message and preset message priority are determined according to message communication agreement;According to the message of message
The feedback of type, preset message priority and the terminal-pair message received, controls message.
Further, according to the type of message of message, preset message priority and the terminal-pair message that receives
Feedback, controls message, specifically includes:
When type of message be family's message, and
When message priority is the message of the default first kind, after the displaying feedback for receiving a certain terminal-pair message,
Null message is sent to the other-end with a certain terminal in the same family message groups for receiving message;
Alternatively,
When message priority is the message of default Second Type, after the information feedback for receiving a certain terminal-pair message,
Null message is sent in the same family message groups other-end, wherein information feedback includes to message is received with a certain terminal
The feedback of the message behavior act of terminal-pair message.
Further, before message being sent to terminal by preset message communication agreement, method further includes:Setting disappears
Cease communications protocol;
Message communication agreement include it is following in it is one or more:Message attributes, message behavior and message content;
Wherein, message attributes include:Message unique identity, message name for being identified to type of message, message
Type, message priority and message validity;
Message behavior includes:Message displaying method and message behavior act;
Message content includes:Message header, message content and extra data.
Further, message priority include it is following in it is one or more:Emergency message, general message, intermediate message
And level messages;Message priority is followed successively by emergency message, general message, intermediate message and level messages from high to low;
The message of the default first kind includes emergency message or general message, and the message of default Second Type disappears including middle rank
Breath or level messages.
On the other hand, the present invention also provides a kind of message pusher, device includes:Transmission unit, for leading to message
It crosses preset message communication agreement and is sent to terminal;Control unit, for according to message communication agreement and the terminal received
To the feedback of message, message is controlled.
Further, control unit is additionally operable to, and is determined the type of message of message according to message communication agreement and preset is disappeared
Breath priority is offseted according to the feedback of the type of message of message, preset message priority and the terminal-pair message received
Breath is controlled.
Further, control unit is additionally operable to, and when type of message is family's message, and message priority is the default first kind
When the message of type, receive a certain terminal-pair message displaying feedback after, to receive message with a certain terminal same
The other-end of family's message groups sends null message;Alternatively, when message priority is the message of default Second Type, receiving
After the information feedback of a certain terminal-pair message, sent out to message is received in the same family message groups other-end with a certain terminal
Send null message, wherein information feedback includes the feedback of the message behavior act of terminal-pair message.
Further, which further includes:Setting unit, for message communication agreement to be arranged;
Message communication agreement include it is following in it is one or more:Message attributes, message behavior and message content;Wherein,
Message attributes include:Message unique identity, message name, type of message, message prioritization for being identified to type of message
Grade and message validity;Message behavior includes:Message displaying method and message behavior act;Message content includes:Message header,
Message content and extra data.
Further, message priority include it is following in it is one or more:Emergency message, general message, intermediate message
And level messages;Message priority is followed successively by emergency message, general message, intermediate message and level messages from high to low;
The message of the default first kind includes emergency message or general message, and the message of default Second Type disappears including middle rank
Breath or level messages.
In another aspect, the present invention also provides a kind of server, server includes any one of the above message pusher.
Again in another aspect, the present invention provides a kind of computer readable storage medium, computer-readable recording medium storage
There is the computer program handled message, it is above-mentioned to realize when computer program is executed by one or more processor
The step of any message treatment method.
The present invention has the beneficial effect that:
The present invention be terminal is pushed messages to by preset message communication agreement, and according to message communication agreement with
And the feedback of the terminal-pair message received, to control message.That is, the present invention is to be based on message communication agreement and reception
The message of push is controlled to the feedback of the terminal-pair message, disappearing for push is controlled to realize the requirement based on user
Breath to greatly improve user experience, and solves and can not carry out message for the demand of user in the prior art and push away
The problem of sending.
Description of the drawings
Fig. 1 is the flow diagram of existing information push method;
Fig. 2 is a kind of flow diagram of information push method of the embodiment of the present invention;
Fig. 3 is the flow diagram of another information push method of the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of message pusher of the embodiment of the present invention.
Specific implementation mode
In order to solve the problems, such as that message push can not be carried out for the demand of user in the prior art, the present invention provides
A kind of information push method, the present invention push messages to terminal by preset message communication agreement, and logical according to message
The feedback for interrogating agreement and the terminal-pair message received, to control message.That is, the present invention is assisted based on message communication
It negotiates peace and receives the feedback of the terminal-pair message to control the message of push, controlled with realizing the requirement based on user
The message of push, to greatly improve user experience.Below in conjunction with attached drawing and embodiment, the present invention is carried out further detailed
It describes in detail bright.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, the present invention is not limited.
An embodiment of the present invention provides a kind of information push methods, and referring to Fig. 2, in server side, this method includes:
S201, message is sent to terminal by preset message communication agreement;
S202, according to message communication agreement and the feedback of the terminal-pair message received, message is controlled.
That is, the embodiment of the present invention is to push messages to terminal, and root by preset message communication agreement
According to message communication agreement and the feedback of the terminal-pair message received, to control message.That is, the present invention is to be based on disappearing
Breath communications protocol and the feedback of the terminal-pair message is received to control the message of push, wanted based on user with realizing
It asks to control the message of push, to greatly improve user experience, and solving in the prior art can not be for user's
Demand and the problem of carry out message push.
In simple terms, the server of the embodiment of the present invention is pushed away to message based on unified message communication protocol realization
It send, after push, PUSH message is controlled according to the feedback of the message communication agreement and the message of terminal-pair push.
It should be noted that the server of the embodiment of the present invention is unified message service technology (United Message
Service, UMS) server, when it is implemented, the embodiment of the present invention is to carry out message push and control by the server.
In specific application, during the embodiment of the present invention is pushed primarily directed to message of the prior art based on family, if
User thinks the display of control message, be typically turned off manually message push service by user, and caused by poor user experience
Problem, the difference for the message that the embodiment of the present invention is paid close attention to according to kinsfolk, by defining a kind of message communication agreement, by servicing
To control the message in family, whether owner is required for receiving message device, as long as long as or having member to receive in kinsfolk
Message, other members no longer show.
It should be noted that the application scenarios of the embodiment of the present invention, which are kinsfolks, receives server for each in family
Kind of intelligent appliance equipment and the message pushed, but the embodiment of the present invention is only by taking the push of the message of family as an example, to the present invention's
Method illustrates, and the method for the embodiment of the present invention can be applied to others by those skilled in the art according to the present invention
In a certain company, tissue or group, the present invention is not especially limited this.
When it is implemented, the method for the embodiment of the present invention further includes:Message communication agreement is set;
Wherein, message communication of embodiment of the present invention agreement include it is following in it is one or more:Message attributes, message behavior
And message content;
Message attributes of the embodiment of the present invention include:Message unique identity, message name for being identified to type of message
Title, type of message, message priority and message validity, particular content are as shown in table 1.
The message attributes table of 1 embodiment of the present invention of table
Message behavior of the embodiment of the present invention includes:Message displaying method and message behavior act, it is interior in detail to allow such as 2 institute of table
Show.
The message behavior table of 2 embodiment of the present invention of table
The message behavior act of the embodiment of the present invention is as shown in table 3, including operation id, operation pages jump address, operation
Action request address and operation requests parameter.
The message behavior action schedule of 3 embodiment of the present invention of table
Message content of the embodiment of the present invention includes:Message header, message content and extra data, it is specific as shown in table 4.
The message content table of 4 embodiment of the present invention of table
In specific application, the message priority in the embodiment of the present invention include it is following in it is one or more:Promptly disappear
Breath, general message, intermediate message and level messages;
Wherein, message priority is followed successively by emergency message, general message, intermediate message and level messages from high to low.
When it is implemented, the embodiment of the present invention is according to message communication agreement and the feedback of the terminal-pair message received,
Message is controlled, is specifically included:The type of message of message and preset message priority are determined according to message communication agreement,
And according to the feedback of the type of message of message, preset message priority and the terminal-pair message received, message is carried out
Control.
On the whole, the embodiment of the present invention thinks the demand of the display of control message, the present invention for user in the prior art
The display of message of the embodiment based on kinsfolk, and a set of standard message communications protocol is formulated, as long as the intelligence in family is set
It is standby to be transmitted by this message communication agreement, can intelligent control message be come by server, specially message push server
Display.
When it is implemented, the embodiment of the present invention is according to the type of message of message, preset message priority and receives
Terminal-pair message feedback, message is controlled, is specifically included:
When type of message be family's message, and
When message priority is the message of the default first kind, after the displaying feedback for receiving a certain terminal-pair message,
Null message is sent to the other-end with a certain terminal in the same family message groups for receiving message;
Alternatively,
When message priority is the message of default Second Type, after the information feedback for receiving a certain terminal-pair message,
Null message is sent in the same family message groups other-end, wherein information feedback includes to message is received with a certain terminal
The feedback of the message behavior act of terminal-pair message.
The message that the embodiment of the present invention presets the first kind includes emergency message or general message, and default Second Type disappears
Breath includes middle rank message or level messages, certainly in the specific implementation, those skilled in the art can according to specific needs and
The message of message and Second Type to the first kind carries out other settings.
It should be noted that displaying of the embodiment of the present invention is fed back to, after terminal opens message, terminal can automatically form one
The shown feedback information of message, and the feedback information is automatically transmitted to UMS, to notify UMS that the message is shown.
Information of the embodiment of the present invention is fed back to the feedback of the message behavior act of terminal-pair message, specifically includes terminal and offsets
The feedback that operation id, operation pages jump address, operational motion request address and the operation requests parameter of breath behavior act are done.
Specifically, the embodiment of the present invention is directed to family's message, when message priority is emergency message or general message,
After receiving displaying feedback, then null message is sent to the other-end for receiving message, is sent or to other with reaching cancellation message
Terminal cancels message display, and when message priority is intermediate message or level messages, need to receive after information feedback again to connecing
The other-end for receiving message sends null message.
Fig. 3 is the flow diagram of another information push method of the embodiment of the present invention, below in conjunction with Fig. 3 to this hair
The method of bright embodiment carries out detailed explanation and illustration:
After UMS sends message success to all members of family, wherein there is the terminal of a kinsfolk to receive message, and
In terminal display, terminal device can send to UMS and have been received by message request, when type of message is family's message, and message prioritization
Grade is in the case of 2 or 3, UMS can send null message to cancel the message of transmission to other members, that is, by other members
Intelligent terminal sends null message and sends or cancel message display to achieve the purpose that cancel message;
And in the case that type of message is family's message, and message priority is 0 or 1, it is necessary to receive the behavior of message
After action feedback, UMS can just send null message to other members and achieve the purpose that cancel transmission or revocation token.
For example, kinsfolk includes member A, member B, member C and member D, wherein only member A concerns intelligence
The push of the message of washing machine and intelligent ignition stove, other members are then not concerned with this, but all members pay close attention to family's sky
Gas detector, UMS message push scheme include:
Intelligent washing machine washes clothes automatically, the prompting message for completing laundry is pushed on kinsfolk's mobile phone, with side
Just each member of family can know that washing machine completes laundry at the first time;Home intelligent firing range dry combustion method, dry combustion method alarm pushing
Onto kinsfolk's mobile phone,
After the message for having pushed intelligent ignition stove dry combustion method, when receive member A displaying feed back after, to other it is several at
Member sends null message, and message display is sent or cancel to achieve the purpose that cancel message;
And after the message of push air quality, after the displaying feedback for receiving member A, then do not sent out to other several members
Send null message.
Can be single with family in the case that smart machine is more and more in the family using the method for the embodiment of the present invention
Position preferably controls kinsfolk and is shown to home intelligent equipment message, the message of smart machine is allowed to show more human nature, to
It greatly improves for experiencing.
Correspondingly, as shown in figure 4, a kind of message pusher, which is characterized in that including:Transmission unit is used for message
It is sent to terminal by preset message communication agreement;Control unit, for according to message communication agreement and the end received
The feedback to message is held, message is controlled.
That is, the embodiment of the present invention is to push messages to terminal, and root by preset message communication agreement
According to message communication agreement and the feedback of the terminal-pair message received, to control message.That is, the present invention is to be based on disappearing
Breath communications protocol and the feedback of the terminal-pair message is received to control the message of push, wanted based on user with realizing
It asks to control the message of push, to greatly improve user experience, and solving in the prior art can not be for user's
Demand and the problem of carry out message push.
In simple terms, the server of the embodiment of the present invention is pushed away to message based on unified message communication protocol realization
It send, after push, PUSH message is controlled according to the feedback of the message communication agreement and the message of terminal-pair push.
It should be noted that the server of the embodiment of the present invention is unified message service technology (United Message
Service, UMS) server, when it is implemented, the embodiment of the present invention is to carry out message push and control by the server.
In specific application, during the embodiment of the present invention is pushed primarily directed to message of the prior art based on family, if
User thinks the display of control message, be typically turned off manually message push service by user, and caused by poor user experience
Problem, the difference for the message that the embodiment of the present invention is paid close attention to according to kinsfolk, by defining a kind of message communication agreement, by servicing
To control the message in family, whether owner is required for receiving message device, as long as long as or having member to receive in kinsfolk
Message, other members no longer show.
It should be noted that the application scenarios of the embodiment of the present invention, which are kinsfolks, receives server for each in family
Kind of intelligent appliance equipment and the message pushed, but the embodiment of the present invention is only by taking the push of the message of family as an example, to the present invention into
The embodiment of the present invention can be applied to other a certain companies, tissue by row explanation, those skilled in the art according to the present invention
Or in group, the present invention is not especially limited this.
When it is implemented, the device of the embodiment of the present invention further includes:Message communication is arranged by setting unit in setting unit
Agreement;
Wherein, message communication of embodiment of the present invention agreement include it is following in it is one or more:Message attributes, message behavior
And message content;
Message attributes of the embodiment of the present invention include:Message unique identity, message name for being identified to type of message
Title, type of message, message priority and message validity, particular content are as shown in table 1.
The message attributes table of 1 embodiment of the present invention of table
Message behavior of the embodiment of the present invention includes:Message displaying method and message behavior act, it is interior in detail to allow such as 2 institute of table
Show.
The message behavior table of 2 embodiment of the present invention of table
The message behavior act of the embodiment of the present invention is as shown in table 3, including operation id, operation pages jump address, operation
Action request address and operation requests parameter.
The message behavior action schedule of 3 embodiment of the present invention of table
Message content of the embodiment of the present invention includes:Message header, message content and extra data, it is specific as shown in table 4.
The message content table of 4 embodiment of the present invention of table
In specific application, the message priority in the embodiment of the present invention include it is following in it is one or more:Promptly disappear
Breath, general message, intermediate message and level messages;
Wherein, message priority is followed successively by emergency message, general message, intermediate message and level messages from high to low.
When it is implemented, control unit of the embodiment of the present invention is additionally operable to, the message of message is determined according to message communication agreement
Type and preset message priority, according to the type of message of message, preset message priority and the terminal-pair received
The feedback of message, controls message.
On the whole, the embodiment of the present invention thinks the demand of the display of control message, the present invention for user in the prior art
The display of message of the embodiment based on kinsfolk, and a set of standard message communications protocol is formulated, as long as the intelligence in family is set
It is standby to be transmitted by this message communication agreement, can intelligent control message be come by server, specially message push server
Display.
The embodiment of the present invention additionally provides a kind of preferred embodiment, and control unit is additionally operable to, when type of message is family
Message, and when message that message priority is the default first kind, after the displaying feedback for receiving a certain terminal-pair message, to
The other-end with a certain terminal in the same family message groups for receiving message sends null message;Alternatively, message priority is
When the message of default Second Type, after the information feedback for receiving a certain terminal-pair message, to receive message with it is a certain
Terminal sends null message in the same family message groups other-end, wherein information feedback includes the message behavior of terminal-pair message
The feedback of action.
It should be noted that the message of the default first kind of the embodiment of the present invention includes emergency message or general message,
The message of default Second Type includes intermediate message or level messages.
It should be noted that displaying of the embodiment of the present invention is fed back to, after terminal opens message, terminal can automatically form one
The shown feedback information of message, and the feedback information is automatically transmitted to UMS, to notify UMS that the message is shown.
Information of the embodiment of the present invention is fed back to the feedback of the message behavior act of terminal-pair message, specifically includes terminal and offsets
The feedback that operation id, operation pages jump address, operational motion request address and the operation requests parameter of breath behavior act are done.
Specifically, the embodiment of the present invention is directed to family's message, when message priority is emergency message or general message,
After receiving displaying feedback, then null message is sent to the other-end for receiving message, is sent or to other with reaching cancellation message
Terminal cancels message display, and when message priority is intermediate message or level messages, need to receive after information feedback again to connecing
The other-end for receiving message sends null message.
The relevant portion of apparatus of the present invention embodiment can refer to embodiment of the method part and be understood, not do herein superfluous in detail
It states.
Correspondingly, the embodiment of the present invention additionally provides a kind of server, the server of the embodiment of the present invention includes device reality
Apply any one of example message pusher.
It should be noted that the server of the embodiment of the present invention is unified message service technology (United Message
Service, UMS) server, when it is implemented, the embodiment of the present invention is to carry out message push and control by the server.
The relevant portion of server example of the present invention can refer to embodiment of the method and device embodiment part is understood,
It is not described in detail herein.
Correspondingly, the embodiment of the present invention additionally provides a kind of computer readable storage medium, computer readable storage medium
It is stored with the computer program handled message, when computer program is executed by one or more processor, to realize
The step of any one of the above information push method, and reach corresponding technique effect, it is not described in detail herein.
Although being example purpose, the preferred embodiment of the present invention is had been disclosed for, those skilled in the art will recognize
Various improvement, increase and substitution are also possible, and therefore, the scope of the present invention should be not limited to the above embodiments.