CN108462734A - Message receival method and device - Google Patents
Message receival method and device Download PDFInfo
- Publication number
- CN108462734A CN108462734A CN201710095330.7A CN201710095330A CN108462734A CN 108462734 A CN108462734 A CN 108462734A CN 201710095330 A CN201710095330 A CN 201710095330A CN 108462734 A CN108462734 A CN 108462734A
- Authority
- CN
- China
- Prior art keywords
- client
- server
- time
- default
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/62—Establishing a time schedule for servicing the requests
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of message receival method and devices.Wherein, this method includes:Client receives the first PUSH message that server is sent by preset interface, wherein, first PUSH message includes the predetermined information between client and server, and it is interruption-free pattern that predetermined information, which is used to indicate the mode setting of default application, presets application installation on the client;Pre-set button corresponding with predetermined information is shown on the client, and touching signals are received by pre-set button;Client end response touching signals, and set default application to interruption-free pattern.The present invention solves the low technical problem of convenience of the interruption-free mode setting in message sink in the related technology.
Description
Technical field
The present invention relates to computer realms, in particular to a kind of message receival method and device.
Background technology
Currently, in the reception message of application, often both for the operation of message sink itself, for example, disappearing for this
Cease the operation of notice itself.In the pattern of setting application, the inside operation for entering application (APP) is required for go to be arranged.Specifically
For, user needs to open and apply, set in the default page in the application when needing that the interruption-free pattern of application is arranged
It sets, for example, inlet porting is deeper, it is cumbersome, the interruption-free pattern of message cannot be set immediately when receiving message
It sets, the convenience of interruption-free mode setting when message sink is low, and then user experience performance is caused to decline.
For the low problem of the convenience of the above-mentioned interruption-free mode setting in message sink in the related technology, at present still
Effective solution scheme is not proposed.
Invention content
An embodiment of the present invention provides a kind of message receival method and devices, at least to solve to connect in message in the related technology
The low technical problem of the convenience of the interruption-free mode setting in time receiving.
One side according to the ... of the embodiment of the present invention provides a kind of message receival method.The message receival method includes:
Client passes through preset interface and receives the first PUSH message that server is sent, wherein the first PUSH message include client with
Predetermined information between server, it is interruption-free pattern that predetermined information, which is used to indicate the mode setting of default application, default to answer
On the client with installation;Pre-set button corresponding with predetermined information is shown on the client, and is received and touched by pre-set button
Control signal;Client end response touching signals, and set default application to interruption-free pattern.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of message receiving apparatus, including:Receiving unit is used
The first PUSH message that server is sent is received by preset interface in making client, wherein the first PUSH message includes client
Predetermined information between end and server, it is interruption-free pattern that predetermined information, which is used to indicate the mode setting of default application, in advance
If application installation is on the client;Display unit for showing pre-set button corresponding with predetermined information on the client, and leads to
It crosses pre-set button and receives touching signals;Setting unit is set as exempting from for making client end response touching signals, and by default application
Bother pattern.
In embodiments of the present invention, the first PUSH message that server is sent is received by preset interface using client,
Wherein, the first PUSH message includes the predetermined information between client and server, and predetermined information is used to indicate default application
Mode setting be interruption-free pattern, preset application installation on the client;It shows on the client corresponding with predetermined information
Pre-set button, and touching signals are received by pre-set button;Client end response touching signals, and default application is set as exempting to beat
Disturb pattern.By the predetermined information between client and server, pre-set button is shown when message sink, so that it may with logical
It crosses pre-set button and interruption-free pattern is directly set, the convenient of the interruption-free mode setting in message sink is improved to realize
The technique effect of property, and then the technology that the convenience that solves the interruption-free mode setting in message sink in the related technology is low
Problem.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the hardware environment of message receival method according to the ... of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of message receival method according to the ... of the embodiment of the present invention;
Fig. 3 is a kind of client end response touching signals according to the ... of the embodiment of the present invention, and default application is set as exempting to beat
Disturb the flow chart of the method for pattern;
Fig. 4 is the flow chart of another message receival method according to the ... of the embodiment of the present invention;
Fig. 5 is the embodiment of another message receival method according to the ... of the embodiment of the present invention;
Fig. 6 is the first push that a kind of client according to the ... of the embodiment of the present invention receives that server is sent by preset interface
The flow chart of the method for message;
Fig. 7 is the method that a kind of client according to the ... of the embodiment of the present invention shows pre-set button corresponding with predetermined information
Flow chart;
Fig. 8 is a kind of screenshotss schematic diagram of the interruption-free mode setting of reception that disappears according to the ... of the embodiment of the present invention;
Fig. 9 is a kind of schematic diagram of message receiving apparatus according to the ... of the embodiment of the present invention;
Figure 10 is the schematic diagram of another message receiving apparatus according to the ... of the embodiment of the present invention;
Figure 11 is the schematic diagram of another message receiving apparatus according to the ... of the embodiment of the present invention;
Figure 12 is the schematic diagram of another message receiving apparatus according to the ... of the embodiment of the present invention;
Figure 13 is the schematic diagram of another message receiving apparatus according to the ... of the embodiment of the present invention;And
Figure 14 is a kind of structure diagram of terminal according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive
Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product
Or the other steps or unit that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of message receival method is provided.
Optionally, in the present embodiment, above-mentioned message receival method can be applied to as shown in Figure 1 by server 102
In the hardware environment constituted with terminal 104.Fig. 1 is a kind of hardware environment of message receival method according to the ... of the embodiment of the present invention
Schematic diagram.As shown in Figure 1, server 102 is attached by network and terminal 104, above-mentioned network includes but not limited to:Extensively
Domain net, Metropolitan Area Network (MAN) or LAN, terminal 104 are not limited to PC, mobile phone, tablet computer etc..The message of the embodiment of the present invention connects
Receiving method can be executed by server 102, can also be executed, be can also be by server 102 and terminal by terminal 104
104 common execution.Wherein, the message receival method that terminal 104 executes the embodiment of the present invention can also be by mounted thereto
Client executes.
Fig. 2 is a kind of flow chart of message receival method according to the ... of the embodiment of the present invention.As shown in Fig. 2, the message sink
Method may comprise steps of:
Step S202, client receive the first PUSH message that server is sent by preset interface.
In the technical solution that above-mentioned steps S202 of the present invention is provided, client receives server by preset interface and sends
The first PUSH message, wherein the first PUSH message includes the predetermined information between client and server, and predetermined information is used for
The mode setting of default application is interruption-free pattern by instruction, presets application installation on the client.
Preset interface can be the prompt operation interface for message informing, and it is fast that client can register this to predetermined system
Prompt operate interface, for example, client to apple (Apple) system, Android (Android) system registry for message informing
Prompt operation interface.The client is registered to predetermined system registration prompt operation interface by key-value pair, for example, client
To server registration key (category).In the case where client registered key to predetermined system, client is receiving service
After the message of device push, button corresponding with PUSH message is shown, wherein server can be apple push notification service device
(Apple Push Notification Service, referred to as APNs).
After user end to server registers prompt operation interface, which has the PUSH message according to server
The ability of display button corresponding with PUSH message.First PUSH message can be the instant communication information issued by server,
Including the predetermined information between client and server, which is for being interruption-free by the mode setting of default application
Pattern, optionally, including preset character string between client and server.Wherein, application installation is preset on the client, than
Such as, which is instant messaging application, has message interruption-free pattern, is applied in preset time not that is, this is preset
Receive the operating mode of the message of server push.Wherein, interruption-free pattern further includes night non-disturbance, interruption-free, does not disturb mould
Formula.
Step S204 shows pre-set button corresponding with predetermined information, and is received and touched by pre-set button on the client
Control signal.
In the technical solution that above-mentioned steps S204 of the present invention is provided, show on the client corresponding with predetermined information pre-
If button, and touching signals are received by pre-set button.
Client by preset interface receive server push the first PUSH message after, on the client display with
The corresponding pre-set button of predetermined information, the pre-set button are the prompt operation button that shows of the default page in client.First
PUSH message includes predetermined information, and the predetermined information and pre-set button have correspondence so that the first PUSH message with
Pre-set button has correspondence, and PUSH message is different, and the button shown on the client is also different.The pre-set button includes using
In the button for briefly entering interruption-free pattern, for example, vacationette pattern, wherein light maintenance pattern includes 1 hour pattern of vacationette, small
Not 2 hours patterns, 3 hours patterns of vacationette.Pre-set button further includes the button for entering interruption-free pattern for a long time, than
Such as, it has come off duty pattern.
Pre-set button corresponding with predetermined information is shown on the client, and touching signals are received by pre-set button.It can
Selection of land, user click pre-set button, generate touching signals.Client receives the touching signals by pre-set button, from
And avoid the pattern into the default application of inside setting for presetting application program.
Step S206, client end response touching signals, and set default application to interruption-free pattern.
In the technical solution of above-mentioned steps S206 of the present invention, client end response touching signals, and default application is arranged
For interruption-free pattern.
Show corresponding with predetermined information pre-set button on the client, and by pre-set button reception touching signals it
Afterwards, client responds touching signals, sets default application to interruption-free pattern, that is, the client is exempted to beat at this
It disturbs under pattern, does not receive the message of server push.The interruption-free pattern is corresponding with pre-set button.Wherein, vacationette pattern is
It does not receive the message of server push, including the 1 hour message for not receiving server push within the of short duration time, does not connect within 2 hours
Receive the message of server push, the 3 hours message for not receiving server push.The interruption-free pattern further includes receiving clothes for a long time
It is engaged in the message of device push, for example, come off duty after pattern entering, client can be to not receiving clothes between the next morning
The message of business device push, realizes and receives touching signals by pre-set button, set default application to interruption-free pattern, improve
The convenience of interruption-free mode setting in message sink.
S202 to step S206 through the above steps receives what server was sent by using client by preset interface
First PUSH message, wherein the first PUSH message includes the predetermined information between client and server, and predetermined information is for referring to
Show that by the mode setting of default application be interruption-free pattern, presets application installation on the client;It shows on the client and pre-
Determine the corresponding pre-set button of information, and touching signals are received by pre-set button;Client end response touching signals, and answered default
With being set as interruption-free pattern.By the predetermined information between client and server, shown when message sink default
Button, so that it may interruption-free pattern is directly arranged by pre-set button, to realize the interruption-free improved in message sink
The technique effect of the convenience of mode setting, and then solve the interruption-free mode setting in message sink in the related technology
The low technical problem of convenience.
As a kind of optional embodiment, step S206, client end response touching signals, and default application is set as exempting from
The pattern of bothering includes:Client wakes up default application after receiving touching signals by pre-set button, by server;Client
End obtains the duration of interruption-free pattern;Client carries the first of the duration by default application to server transmission
Request.
Fig. 3 is a kind of client end response touching signals according to the ... of the embodiment of the present invention, and default application is set as exempting to beat
Disturb the flow chart of the method for pattern.As shown in figure 3, the client end response touching signals, and set default application to interruption-free
The method of pattern includes the following steps:
Step S301, client wake up default application after receiving touching signals by pre-set button, by server.
In the technical solution of above-mentioned steps S301 of the present invention, client by pre-set button receive touching signals it
Afterwards, default application is waken up by server.
After client receives touching signals by pre-set button, default application is waken up by server, can be passed through
Operating system wakes up default application.
Step S302, client obtain the duration of interruption-free pattern.
In the technical solution of above-mentioned steps S302 of the present invention, client obtains the duration of interruption-free pattern, wherein
Duration is obtained by default application according to predetermined information.
After client wakes up default application by server, client obtains the duration of interruption-free pattern, should
Duration is obtained by default application according to predetermined message.Optionally, application call presetting method is preset, the presetting method is passed through
Calculate in the duration of current interruption-free pattern, that is, it is default apply how long in do not receive disappearing for server push
The shielding time of breath, so that client obtains the default duration using interruption-free pattern, which can be
Instant messaging application.
Step S303, client send the first request for carrying the duration by default application to server.
In the technical solution of above-mentioned steps S303 of the present invention, client is carried by default application to server transmission
The first request of duration, wherein the first request of server response, and stop disappearing to client push within the duration
Breath.
For example, the mode that client is exchanged with backstage is to calculate to stop APNs notices in the time how long.For example,
If user clicks " rest one hour ", client just uploads 3600 seconds to server, and backstage is told within the time period should not
APNs notices, once after 3600 seconds, then restore APNs notices.
After the duration that client obtains interruption-free pattern, default application can send to carry and hold to server
The first request of continuous time, server receives first request and is responded to the first request, to stop within the duration
Only to client push message, so that client in the case where foreground is not aroused, makes default application enter interruption-free mould
Formula realizes the technique effect for the convenience for improving the interruption-free mode setting in message sink.
The client of the embodiment wakes up default answer after receiving touching signals by pre-set button, by server
With;Client obtains the duration of interruption-free pattern, which is obtained by default application according to predetermined information;Client
The first request for carrying the duration, the first request of server response are sent to server by default application, and is being held
Stop, to client push message, realizing client end response touching signals, and default application is set as exempting to beat in the continuous time
The purpose for disturbing pattern improves the technique effect of the convenience of the interruption-free mode setting in message sink.
As an alternative embodiment, carrying the duration to server transmission by default application in client
First request after, client obtain server stop to default application send PUSH message the current residual time;Client
End is obtained returns the packet time when server sends PUSH message to default application;Client is according to the current residual time and when returning packet
Between the sum of determine the first end time of interruption-free pattern.
Fig. 4 is the flow chart of another message receival method according to the ... of the embodiment of the present invention.As shown in figure 4, the message connects
Receiving method includes the following steps:
Step S401 is starting default in application, client acquisition server stops sending PUSH message to default application
The current residual time.
In the technical solution of above-mentioned steps S401 of the present invention, starting default in application, client acquisition server stops
The current residual time of PUSH message is only sent to default application, wherein the duration includes the current residual time.
It is pre- starting after client sends the first request for carrying the duration to server by default application
If in application, for example, default by client terminal start-up every time in application, client acquisition server stops sending to default application
The current residual time of PUSH message, that is, default application does not receive the current residual shielding time of the message of server push,
Wherein, the duration includes the current residual time.Server is obtained in client to stop sending PUSH message to default application
After the current residual time, the current residual time is stored in local by client.
Step S402, client is obtained returns the packet time when server sends PUSH message to default application.
In the technical solution of above-mentioned steps S402 of the present invention, client is obtained when server sends PUSH message to default
The packet time is returned in application.
It is that server sends PUSH message to the time of client to return the packet time.Client obtains this time packet time, that is,
The message of server push sends out the time received to client certainly.
Step S403, client determine that the first of interruption-free pattern terminates according to the sum of current residual time and time packet time
Time.
In the technical solution of above-mentioned steps S403 of the present invention, client is according to the sum of current residual time and time packet time
Determine the first end time of interruption-free pattern.
The current residual time that server stops sending PUSH message to default application is obtained in client, and client obtains
It takes when server sends PUSH message to default application after returning the packet time, when the current residual time is added back packet by client
Between so that it is determined that interruption-free pattern the first end time, first end time is for indicating when client terminates to shield
Cover the time for the message for receiving server push.
Optionally, client starts default application every time, and backstage can all be gone to pull the shielding time of current residual and preserve
In local, use back the packet time plus shielding remaining time every time, client, which just can calculate when to shield, to be terminated.
The embodiment after client sends the first request for carrying the duration to server by default application,
The current residual time in application, client acquisition server stops sending PUSH message to default application is preset starting,
In, the duration includes the current residual time;Client is obtained when server transmission PUSH message to default application is when returning packet
Between;Client determines the first end time of interruption-free pattern according to the sum of current residual time and time packet time.
Exempt to beat as an alternative embodiment, being determined according to the sum of current residual time and time packet time in client
After the first end time for disturbing pattern, user end to server sends the second request for carrying for the first end time;Client
End receives the message that server pushes after the second end time, wherein the second end time was the first end time kimonos
The sum of the service time of business device.
Fig. 5 is the embodiment of another message receival method according to the ... of the embodiment of the present invention.As shown in figure 5, the message connects
Receiving method includes the following steps:
Step S501, user end to server send the second request for carrying for the first end time.
In the technical solution of above-mentioned steps S501 of the present invention, user end to server transmission carried for the first end time
Second request.
Client according to the current residual time and return packet the sum of time determine interruption-free pattern the first end time it
Afterwards, client generates the second request according to the first end time, which carried for the first end time, and client is to clothes
Business device sends second request.
Step S502, client receive the message that server pushes after the second end time.
In the technical solution of above-mentioned steps S502 of the present invention, pusher of the client reception server in the second end time
The message sent, wherein the second end time was the sum of the service time of the first end time and server.
User end to server send carry the first end time second request after, server receive this second
Request, and the second request is responded, it obtained for the first end time, the first end time was added to the service of server
(server) time calculates server and stops to the default end time using PUSH message, so that client stops
The time and service device for receiving the message of server push stops the time synchronization to client push message, keeps client's termination
Receive the consistency of message and the time of server push message.In server each PUSH message time, second end is read
Time, judge current time whether exceed the second end time, if current time without departing from the second end time, to client
End pushes the PUSH message.
After the second end time, restore normal message push, client receives server in the second end time
The message pushed later.
The embodiment by client according to the current residual time and return that packet the sum of time determines interruption-free pattern the
After one end time, user end to server sends the second request for carrying for the first end time;Client receives service
The message that device pushes after the second end time, wherein the second end time was the service of the first end time and server
The sum of time, to realize the consistency for keeping client to receive message and the time of server push message.
As an alternative embodiment, predetermined information includes preset characters string, step S202, client passes through default
Interface server send the first PUSH message include:Client receives the predetermined word that server is sent by preset interface
Symbol string;Step S204, client show that pre-set button corresponding with predetermined information includes:Client is shown and preset characters string pair
The pre-set button answered.
Fig. 6 is the first push that a kind of client according to the ... of the embodiment of the present invention receives that server is sent by preset interface
The flow chart of the method for message.As shown in fig. 6, the client receives the first PUSH message that server is sent by preset interface
Method include the following steps:
Step S601, client receive the preset characters string that server is sent by preset interface.
In the technical solution of above-mentioned steps S601 of the present invention, client receives the pre- of server transmission by preset interface
If character string.
Predetermined message includes preset characters string, which is the specific character string of client and server commitment,
Server push specific character string indicates corresponding with preset characters string pre-set button occur in client.The preset characters string
It is determined from client when being registered to predetermined system with the correspondence of pre-set button, it is registered to predetermined system in client
Afterwards, client has according to the difference of server push message and shows different buttons.
Step S602, client show pre-set button corresponding with preset characters string.
In the technical solution of above-mentioned steps S602 of the present invention, client shows that preset corresponding with preset characters string is pressed
Button.
After client receives the preset characters string that server is sent by preset interface, client is shown and predetermined word
The corresponding pre-set button of symbol string.
Server receives message push packet, is parsed to message push packet, obtains analysis result.If it find that parsing knot
Fruit includes the key in key-value pair, then the client for searching whether to register the key in the key-value pair is gone, if found
The client of the key in the key-value pair was registered, then to the client push message, which shows after receiving the message
Show pre-set button corresponding with PUSH message.If user clicks pre-set button, operating system forces to wake up default application
And presetting method is called, default application calculates the current duration for needing to keep interruption-free pattern by the presetting method,
And the request for carrying the duration is sent to backstage, server responds the request and does not send push to client within the duration
Information, so that client is directly entered interruption-free pattern, and then improve and disappearing in the case where not waking up default application
The agility of interruption-free mode setting when breath receives.
The embodiment receives the preset characters string that server is sent by client by preset interface realizes client
The purpose for the first PUSH message that server is sent is received by preset interface.It is shown by client corresponding with preset characters string
The default purpose for realizing client and showing pre-set button corresponding with predetermined information so that without entering default application
Inside go to operate, and when receiving message informing, so that it may quickly to enter interruption-free pattern, improve in message
The agility of interruption-free mode setting when reception.
As an alternative embodiment, step S204, in the case where client registers cross predetermined information, client
Show that pre-set button corresponding with predetermined information includes:Client judges whether preset characters string includes default key assignments centering
Key, the predetermined information include the key of default key assignments centering;Client is if it is judged that preset characters string includes default key assignments centering
Key, show corresponding with the default key of key assignments centering pre-set button.
Fig. 7 is the method that a kind of client according to the ... of the embodiment of the present invention shows pre-set button corresponding with predetermined information
Flow chart.As shown in fig. 7, the method that the client shows pre-set button corresponding with predetermined information includes the following steps:
Step S701, client judge whether preset characters string includes the key for presetting key assignments centering.
In the technical solution of above-mentioned steps S701 of the present invention, client judges whether preset characters string includes default key assignments
The key of centering, wherein predetermined information includes the key of default key assignments centering.
After client receives the first PUSH message that server is sent by preset interface, client judges predetermined word
Whether symbol string includes that the key for presetting key assignments centering is worth for example, the key is Category for the key-value pair of " 1E ", wherein " 1E " is used
In expression rest 1 hour.If the client determine that preset characters string includes the key of default key assignments centering, step S702 is executed.
Step S702 shows pre-set button corresponding with the default key of key assignments centering.
In the technical solution of above-mentioned steps S702 of the present invention, client is if it is judged that preset characters string includes preset key
It is worth the key of centering, shows pre-set button corresponding with the default key of key assignments centering.
After client judges that preset characters string includes key in default key assignments pair, client is if it is judged that predetermined word
Accord with the key that string includes default key assignments centering, it is determined that the preset characters string is the character string with server commitment, is shown and default
The corresponding pre-set button of key in key-value pair.
The embodiment judges whether preset characters string includes the key for presetting key assignments centering by client, wherein predetermined letter
Breath includes the key of default key assignments centering;Client if it is judged that preset characters string includes the key of default key assignments centering, display with
The corresponding pre-set button of key of default key assignments centering, realizes in the case where client registers cross predetermined information, and client is aobvious
The purpose for showing pre-set button corresponding with predetermined information improves the agility of the interruption-free mode setting in message sink.
As an alternative embodiment, step S202, client receive that server sends by preset interface the
One PUSH message includes:Client receives multiple custom fields that server is sent by preset interface, wherein multiple to make by oneself
Adopted field corresponds to the various durations of interruption-free pattern respectively, and the first PUSH message includes multiple custom fields.
After user clicks pre-set button, the duration that application calculates interruption-free pattern according to presetting method is preset,
The request for carrying the duration is sent to server, server can issue custom field after receiving the request, than
Such as, 1E, 2E, 3E are issued, wherein 1E corresponds to client and shows interruption-free 1 hour, and 2E corresponds to client and shows interruption-free 2 hours,
3E corresponds to client and shows interruption-free 3 hours, to make the notice of client prompt different contents.
Embodiment 2
Technical scheme of the present invention is illustrated with reference to preferred embodiment.
The message receival method of the embodiment can fast enter vacationette pattern, mould of having come off duty when receiving message
Formula.Mobile terminal can provide above-mentioned function.The button that the APNS of iOS system can directly provide prompt operation unifies solution party
Case.Android system also provides similar solution.
Client registers the prompt operation interface of a notice to apple system.Client can pass through
UIRemoteNotifications registers UIMutableUserNotificationCategory interfaces to Apple in advance.
Client can in advance be registered by UIRemoteNotifications to Apple
After UIMutableUserNotificationCategory interfaces, client has the content pushed according to APNs not
Ability that is same and showing different buttons.Client and backstage is needed to arrange specific character string at this time, from the background to client push
Special string indicates that corresponding button occurs in client.For example, in instant communication applications, when backstage pushes APNs,
It is " category " that key is taken in the structure of push, and value is the key-value key-value pairs of " 1E ", instant messaging application
When receiving this APNs, corresponding button is shown in the pop-up that just can push.
Server-side can issue custom field, for example, issuing 1E, 2E, 3E, it is small to correspond to client display rest one respectively
When, rest two hours, rest three hours so that the notice of client prompts different content.APNs servers are receiving APNs
Bao Shi parses APNs packets, obtains analysis result.If carrying key category in analysis result, looked into client
It looks for whether having and registers breaking for the category.It, just can be in the visitor if finding the client for registering key category
Corresponding button is shown on the information display frame of family end pop-up.If user clicks the button, operating system forces to wake up
App simultaneously calls application:handleActionWithIdentifier:forRemoteNotification:
completionHandler:Method, how long instant messaging application can calculate in this method currently needs interruption-free, and to
The day after tomorrow sends request, and then client is directly entered vacationette, interruption-free of having come off duty pattern in the case where not arousing APP.
The mode that client is exchanged with backstage is to calculate to stop APNs notices in the time how long.For example, if user's point
Hit " rest one hour ", client just uploads 3600 seconds, tell backstage within the time period should not APNs notices, once 3600
After second, then restore APNs notices.
Client can all go to backstage to pull the shielding time of current residual and be stored in local when starting App every time.Often
Secondary to return the packet time plus shielding remaining time, client, which just can calculate when to shield, to be terminated.Backstage is receiving client
After the stopping APNs notice remaining times at end, the server times can be added with the time, calculate the APNs shieldings at the ends server
End time, every time need send APNs when, read the time, if current time still during shielding, not to client
End sends the APNs.
The interruption-free mould pattern of the message sink of the embodiment can need not enter in APP with prompt operation and go to operate, separately
Outside, vacationette interruption-free pattern, the perception of the function of interruption-free of having come off duty pattern are more extensive, improve the experience performance of user.
Embodiment 3
The application environment of the embodiment of the present invention can be, but not limited to reference to the application environment in above-described embodiment, the present embodiment
In this is repeated no more.An embodiment of the present invention provides optionally specifically answered for implementing a kind of of above-mentioned message receival method
With.
Fig. 8 is a kind of screenshotss schematic diagram of the interruption-free mode setting of reception that disappears according to the ... of the embodiment of the present invention.Such as Fig. 8 institutes
Show, client receives the first PUSH message that server is sent by preset interface, and the content of first PUSH message is " product
Requirement documents have been put in order", wherein the first PUSH message includes the predetermined information between client and server, makes a reservation for letter
It is interruption-free pattern that breath, which is used to indicate the mode setting of default application, for example, " vacationette 1 hour ", " next ".Instant messaging
On the client using installation;Pre-set button corresponding with the first PUSH message is shown on the client, for example, " vacationette 1 is small
When " button, " next " button.And touching signals are received by pre-set button;Client received by pre-set button it is tactile
After controlling signal, it sets default application to interruption-free pattern.
The embodiment is when receiving message informing, the prompt operation directly on message informing, into vacationette, comes off duty
In interruption-free pattern.Mobile terminal in this way is when receiving message informing, the interface that system can be utilized to provide, in message informing
Efficiently operation entry provided above, reaches in the case where not waking up APP, the purpose for being just directly entered vacationette, having come off duty, from
And the technique effect for the convenience for improving the interruption-free mode setting in message sink is realized, and then solve the relevant technologies
In interruption-free mode setting in message sink the low technical problem of convenience.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because
According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to existing
The part that technology contributes can be expressed in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 4
According to embodiments of the present invention, a kind of message receiving apparatus for implementing above-mentioned message receival method is additionally provided.
Fig. 9 is a kind of schematic diagram of message receiving apparatus according to the ... of the embodiment of the present invention.As shown in figure 9, the message receiving apparatus can be with
Including:Receiving unit 10, display unit 20 and setting unit 30.
Receiving unit 10, for making client receive the first PUSH message that server is sent by preset interface, wherein
First PUSH message includes the predetermined information between client and server, and predetermined information is used to indicate the pattern of default application
It is set as interruption-free pattern, presets application installation on the client.
Preset interface can be the prompt operation interface for message informing, and it is fast that client can register this to predetermined system
Prompt operate interface.The client to predetermined system registration prompt operation interface registered by key-value pair, for example, client to
Server registration key (category).In the case where client registered key to predetermined system, make client in receiving unit 10
It holds after the message for receiving server push, shows button corresponding with PUSH message.
After user end to server registers prompt operation interface, which has the PUSH message according to server
The ability of display button corresponding with PUSH message.First PUSH message can be the instant communication information issued by server,
Including the predetermined information between client and server, which is for being interruption-free by the mode setting of default application
Pattern, optionally, including preset character string between client and server.Wherein, application installation is preset on the client, than
Such as, which is instant messaging application, has message interruption-free pattern, is applied in preset time not that is, this is preset
Receive the operating mode of the message of server push.
Display unit 20 for showing pre-set button corresponding with predetermined information on the client, and passes through pre-set button
Receive touching signals.
After receiving unit 10 makes first PUSH message of the client by preset interface reception server push, display
Unit 20 makes client show that pre-set button corresponding with predetermined information, the pre-set button show for the default page in client
Prompt operation button.First PUSH message includes predetermined information, which has correspondence with pre-set button, in turn
So that the first PUSH message and pre-set button have correspondence, PUSH message is different, and the button shown on the client is not yet
Together.The pre-set button includes the button for briefly entering interruption-free pattern.
Display unit 20 makes to show pre-set button corresponding with predetermined information in client, and is received and touched by pre-set button
Control signal.Optionally, user clicks pre-set button, generates touching signals.Client receives this by pre-set button and touches
Signal is controlled, so as to avoid the pattern for the default application of inside setting for presetting application program is entered.
Setting unit 30 is set as interruption-free pattern for making client end response touching signals, and by default application.
Make to show pre-set button corresponding with predetermined information in client in display unit 20, and is received by pre-set button
After touching signals, client responds touching signals, sets default application to interruption-free pattern, that is, the client
End does not receive the message of server push under the interruption-free pattern.The interruption-free pattern is corresponding with pre-set button, realizes
Touching signals are received by pre-set button, set default application to interruption-free pattern, improves and exempts to beat in message sink
Disturb the convenience of mode setting.
Figure 10 is the schematic diagram of another message receiving apparatus according to the ... of the embodiment of the present invention.As shown in Figure 10, the message
Reception device may include:Receiving unit 10, display unit 20 and setting unit 30.Wherein, setting unit 30 includes:Wake up mould
Block 31, the first acquisition module 32 and the first sending module 33.
It should be noted that the receiving unit 10 of the embodiment, display unit 20 and setting unit 30 are implemented with shown in Fig. 9
Effect in the message receiving apparatus of example is identical, and details are not described herein again.
Wake-up module 31 is waken up for making client after receiving touching signals by pre-set button by server
Default application.
After client receives touching signals by pre-set button, wake-up module 31 is for making client pass through server
Default application is waken up, default application can be waken up by operating system.
First acquisition module 32, for making client obtain the duration of interruption-free pattern, wherein the duration is by pre-
If being obtained using according to predetermined information.
After wake-up module 31 makes client wake up default application by server, the first acquisition module 32 is for making visitor
Family end obtains the duration of interruption-free pattern, which is obtained by default application according to predetermined message.Optionally, it presets
Application call presetting method is calculated by the presetting method in the duration of current interruption-free pattern, so that client
Obtain the default duration using interruption-free pattern.
First sending module 33 carries the of the duration for making client pass through default application and send to server
One request, wherein the first request of server response, and stop to client push message within the duration.
After the duration for making client obtain interruption-free pattern by the first acquisition module 32, presetting application can be with
The first request for carrying the duration is sent to server, server receives first request and rung to the first request
It answers, to stop within the duration to client push message, so that client makes in the case where foreground is not aroused
Default application enters interruption-free pattern, realizes the technology effect for the convenience for improving the interruption-free mode setting in message sink
Fruit.
Figure 11 is the schematic diagram of another message receiving apparatus according to the ... of the embodiment of the present invention.As shown in figure 11, the message
Reception device may include:Receiving unit 10, display unit 20 and setting unit 30.Setting unit 30 includes:Wake-up module 31,
First acquisition module 32 and the first sending module 33.Wherein, setting unit 30 further includes:Second acquisition module 34, third obtain
Module 35 and determining module 36.
It should be noted that the receiving unit 10 of the embodiment, display unit 20, setting unit 30, wake-up module 31,
One acquisition module 32 and the first sending module 33 are identical as the effect in the message receiving apparatus of embodiment illustrated in fig. 10, herein not
It repeats again.
Second acquisition module 34 carries the of the duration for being sent to server by default application in client
After one request, starting default in application, so that client is obtained server stops working as to default application transmission PUSH message
Preceding remaining time, wherein the duration includes the current residual time.
So that client is passed through default application in the first sending module 33 and carries the first of the duration to server transmission
It is default in application, for example, default in application, the second acquisition module 34 makes by client terminal start-up every time starting after request
Client obtains the current residual time that server stops sending PUSH message to default application, that is, default application does not receive
The current residual of the message of server push shields the time, wherein the duration includes the current residual time.It is obtained in client
Server stopped after the current residual time that default application sends PUSH message, and the current residual time is stored in by client
It is local.
Third acquisition module 35, for making client obtain when server transmission PUSH message to default application is when returning packet
Between.
It is that server sends PUSH message to the time of client to return the packet time.Third acquisition module 35 makes client obtain
The time is wrapped in this time, that is, the message of server push sends out the time received to client certainly.
Determining module 36, for making client determine interruption-free pattern according to the sum of current residual time and time packet time
First end time.
Make client obtain server in third acquisition module 35 to stop sending the current surplus of PUSH message to default application
The remaining time, and client is obtained when server sends PUSH message to default application after returning the packet time, client will be current
Remaining time add back packet the time so that it is determined that interruption-free pattern the first end time, first end time for indicate visitor
When time that shielding receive the message of server push is terminated in family end.
Optionally, client starts default application every time, and backstage can all be gone to pull the shielding time of current residual and preserve
In local, use back the packet time plus shielding remaining time every time, client, which just can calculate when to shield, to be terminated.
Figure 12 is the schematic diagram of another message receiving apparatus according to the ... of the embodiment of the present invention.As shown in figure 12, the message
Reception device may include:Receiving unit 10, display unit 20 and setting unit 30.Setting unit 30 includes:Wake-up module 31,
First acquisition module 32 and the first sending module 33.The setting unit 30 further includes:Second acquisition module 34, third acquisition module
35 and determining module 36.Wherein, which further includes:Second sending module 37 and receiving module 38.
It should be noted that the receiving unit 10 of the embodiment, display unit 20, setting unit 30, wake-up module 31,
One acquisition module 32, the first sending module 33, the second acquisition module 34, third acquisition module 35 and determining module 36 and Figure 11 institutes
Show that the effect in the message receiving apparatus of embodiment is identical, details are not described herein again.
Second sending module 37, for determining interruption-free mould according to the sum of current residual time and time packet time in client
After first end time of formula, user end to server is made to send the second request for carrying for the first end time.
Client is set to determine interruption-free mould according to the sum of current residual time and time packet time in the second sending module 37
After first end time of formula, the second request is generated according to the first end time, which carries at the end of first
Between, the second sending module 37 makes user end to server send second request.
Receiving module 38, for making client receive the message that server pushes after the second end time, wherein the
Two end times were the sum of the service time of the first end time and server.
After the second sending module 37 makes user end to server send the second request for carrying for the first end time,
Server receives second request, and is responded to the second request, obtained for the first end time, the first end time was added
Service (server) time of server calculates server and stops to the default end time using PUSH message, to make
The time and service device for obtaining the message that client stops reception server push stops the time synchronization to client push message,
Client is kept to receive the consistency of message and the time of server push message.In server each PUSH message time, read
Second end time is taken, judges whether current time exceeded for the second end time, if current time terminates without departing from second
Time, then to the client push PUSH message.
After the second end time, restore normal message push, receiving module 38 makes client reception server exist
The message pushed after second end time.
Optionally, predetermined information includes preset characters string, and receiving unit 10 is for making client be received by preset interface
The preset characters string that server is sent;Display unit 20 is for making client show pre-set button corresponding with preset characters string.
Figure 13 is the schematic diagram of another message receiving apparatus according to the ... of the embodiment of the present invention.As shown in figure 13, the message
Reception device may include:Receiving unit 10, display unit 20 and setting unit 30.Wherein, display unit 20 includes:Judge mould
Block 21 and display module 22.
It should be noted that the receiving unit 10 of the embodiment, display unit 20 and setting unit 30 and 9 illustrated embodiments
Message receiving apparatus in effect it is identical, details are not described herein again.
Judgment module 21, for making client judge whether preset characters string includes the key for presetting key assignments centering, wherein pre-
Determine the key that information includes preset key value centering.
After receiving unit is used to that client to be made to receive the first PUSH message that server is sent by preset interface, sentence
Disconnected module 21 is used to make client to judge whether preset characters string includes the key for presetting key assignments centering.
Display module 22, for making client if it is judged that preset characters string includes the key of default key assignments centering, display
Pre-set button corresponding with the default key of key assignments centering.
After judgment module 21 makes client judge that preset characters string includes key in default key assignments pair, if client
Judge that preset characters string includes the key of default key assignments centering, it is determined that the preset characters string is the character with server commitment
String, display module 22 make client show pre-set button corresponding with the default key of key assignments centering.
Optionally, receiving unit 10 is used to that client to be made to receive multiple self-defined words that server is sent by preset interface
Section, wherein multiple custom fields correspond to the various durations of interruption-free pattern respectively, the first PUSH message include it is multiple oneself
Define field.
It should be noted that the receiving unit 10 in the embodiment can be used for executing the step in the embodiment of the present application 1
S202, the display unit 20 in the embodiment can be used for executing the step S204 in the embodiment of the present application 1, in the embodiment
Setting unit 30 can be used for executing the step S206 in the embodiment of the present application 1.
The embodiment is by receiving unit 10, for making client be pushed away by the first of preset interface reception server transmission
Send message, wherein the first PUSH message includes the predetermined information between client and server, and predetermined information is used to indicate will be pre-
If the mode setting of application is interruption-free pattern, application installation is preset on the client, on the client by display unit 20
Display pre-set button corresponding with predetermined information, and touching signals are received by pre-set button, client is made by setting unit 30
End response touching signals, and set default application to interruption-free pattern.
Herein it should be noted that example and application scenarios phase that said units and module and corresponding step are realized
Together, but it is not limited to the above embodiments 1 disclosure of that.It should be noted that above-mentioned module can be with as a part for device
It operates in hardware environment as shown in Figure 1, can also pass through hardware realization, wherein hardware environment by software realization
Including network environment.
Embodiment 5
According to embodiments of the present invention, a kind of server or terminal for implementing above-mentioned message receival method is additionally provided.
Figure 14 is a kind of structure diagram of terminal according to the ... of the embodiment of the present invention.As shown in figure 14, which may include:
One or more (one is only shown in figure) processors 141, memory 143 and transmitting device 145.As shown in figure 14, the end
End can also include input-output equipment 207.
Wherein, memory 143 can be used for storing software program and module, such as the message receiver in the embodiment of the present invention
Method and the corresponding program instruction/module of device, processor 141 by operation be stored in software program in memory 143 and
Module realizes above-mentioned message receival method to perform various functions application and data processing.Memory 143 can wrap
Include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage device, flash memory or
Other non-volatile solid state memories of person.In some instances, memory 143 can further comprise remote relative to processor 141
The memory of journey setting, these remote memories can pass through network connection to terminal.The example of above-mentioned network includes but unlimited
In internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 145 is used to receive via network or transmission data, can be also used for processor with
Data transmission between memory.Above-mentioned network specific example may include cable network and wireless network.In an example,
Transmitting device 145 includes a network adapter (Network Interface Controller, NIC), can pass through cable
It is connected with other network equipments with router so as to be communicated with internet or LAN.In an example, transmission dress
It is radio frequency (Radio Frequency, RF) module to set 145, is used to wirelessly be communicated with internet.
Wherein, specifically, memory 143 is for storing application program.
Processor 141 can call the application program that memory 143 stores by transmitting device 145, to execute following steps
Suddenly:
Client passes through preset interface and receives the first PUSH message that server is sent, wherein the first PUSH message includes
Predetermined information between client and server, it is interruption-free mould that predetermined information, which is used to indicate the mode setting of default application,
Formula presets application installation on the client;
Pre-set button corresponding with predetermined information is shown on the client, and touching signals are received by pre-set button;
Client end response touching signals, and set default application to interruption-free pattern.
Processor 141 is additionally operable to execute following step:Client passes through after receiving touching signals by pre-set button
Server wakes up default application;Client obtains the duration of interruption-free pattern, wherein the duration applies basis by default
Predetermined information obtains;Client sends the first request for carrying the duration by default application to server, wherein service
The first request of device response, and stop to client push message within the duration.
Processor 141 is additionally operable to execute following step:It is carried and is held to server transmission by default application in client
After the first of continuous time is asked, starting default in application, client acquisition server stops sending push to default application
The current residual time of message, wherein the duration includes the current residual time;Client is obtained to disappear when server sends push
It ceases to default application and returns the packet time;Client according to the current residual time and return that packet the sum of time determines interruption-free pattern the
One end time.
Processor 141 is additionally operable to execute following step:It is true according to the sum of current residual time and time packet time in client
After the first end time for determining interruption-free pattern, user end to server transmission, which carries the second of the first end time, asks
It asks;Client receives the message that server pushes after the second end time, wherein at the end of the second end time was first
Between and server the sum of service time.
Processor 141 is additionally operable to execute following step:Predetermined information includes preset characters string, and client passes through preset interface
Receiving the first PUSH message that server is sent includes:Client receives the preset characters that server is sent by preset interface
String;Client shows that pre-set button corresponding with predetermined information includes:Client shows that preset corresponding with preset characters string is pressed
Button.
Processor 141 is additionally operable to execute following step:Client judges whether preset characters string includes default key assignments centering
Key, wherein predetermined information includes the key of default key assignments centering;Client is if it is judged that preset characters string includes default key assignments
The key of centering shows pre-set button corresponding with the default key of key assignments centering.
Processor 141 is additionally operable to execute following step:Client by preset interface receive server send it is multiple from
Define field, wherein multiple custom fields correspond to the various durations of interruption-free pattern respectively, and the first PUSH message includes
Multiple custom fields.
Using the embodiment of the present invention, a kind of scheme of message receival method is provided.Preset interface is passed through using client
Receive the first PUSH message that server is sent, wherein the first PUSH message includes the predetermined letter between client and server
Breath, it is interruption-free pattern that predetermined information, which is used to indicate the mode setting of default application, presets application installation on the client;
Pre-set button corresponding with predetermined information is shown in client, and touching signals are received by pre-set button;Client end response touches
Signal is controlled, and sets default application to interruption-free pattern.By the predetermined information between client and server, connect in message
Pre-set button is shown when receipts, so that it may interruption-free pattern is directly arranged by pre-set button, disappear to realize to improve
The technique effect of the convenience of interruption-free mode setting when breath receives, and then solve in the related technology in message sink
The low technical problem of the convenience of interruption-free mode setting.Optionally, the specific example in the present embodiment can refer to above-mentioned reality
The example described in example is applied, details are not described herein for the present embodiment.
It will appreciated by the skilled person that structure shown in Figure 14 is only to illustrate, terminal can be smart mobile phone
(such as Android phone, iOS mobile phones), tablet computer, palm PC and mobile internet device (Mobile Internet
Devices, MID), the terminal devices such as PAD.Figure 14 it does not cause to limit to the structure of above-mentioned electronic device.For example, terminal is also
It may include more either less components (such as network interface, display device) than shown in Figure 14 or have and Figure 14 institutes
Show different configurations.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
To be completed come command terminal device-dependent hardware by program, which can be stored in a computer readable storage medium
In, storage medium may include:Flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random
Access Memory, RAM), disk or CD etc..
Embodiment 6
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can
For executing the program code of message receival method.
Optionally, in the present embodiment, above-mentioned storage medium can be located at multiple in network shown in above-described embodiment
On at least one of network equipment network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
Client passes through preset interface and receives the first PUSH message that server is sent, wherein the first PUSH message includes
Predetermined information between client and server, it is interruption-free mould that predetermined information, which is used to indicate the mode setting of default application,
Formula presets application installation on the client;
Pre-set button corresponding with predetermined information is shown on the client, and touching signals are received by pre-set button;
Client end response touching signals, and set default application to interruption-free pattern.
Optionally, storage medium is also configured to store the program code for executing following steps:Client is passing through
After pre-set button receives touching signals, default application is waken up by server;Client obtain interruption-free pattern it is lasting when
Between, wherein the duration is obtained by default application according to predetermined information;Client is sent to server by default application and is carried
There is the first request of duration, wherein the first request of server response, and stop disappearing to client push within the duration
Breath.
Optionally, storage medium is also configured to store the program code for executing following steps:Pass through in client
After default application sends the first request for carrying the duration to server, starting default in application, client obtains
Server stops sending the current residual time of PUSH message to default application, wherein the duration includes the current residual time;
Client is obtained returns the packet time when server sends PUSH message to default application;Client is according to the current residual time and returns
Wrap the first end time of the sum of time determining interruption-free pattern.
Optionally, storage medium is also configured to store the program code for executing following steps:Client according to
After the first end time that the sum of current residual time and time packet time determine interruption-free pattern, user end to server is sent
Carry the second request of the first end time;Client receives the message that server pushes after the second end time,
In, the second end time was the sum of the service time of the first end time and server.
Optionally, storage medium is also configured to store the program code for executing following steps:Predetermined information includes
Preset characters string, client receive the first PUSH message that server is sent by preset interface and include:Client passes through default
The preset characters string that interface server is sent;Client shows that pre-set button corresponding with predetermined information includes:Client
Display pre-set button corresponding with preset characters string.
Optionally, storage medium is also configured to store the program code for executing following steps:Client judges pre-
If whether character string includes the key for presetting key assignments centering, wherein predetermined information includes the key of default key assignments centering;If client
Judge that preset characters string includes the key of default key assignments centering, shows pre-set button corresponding with the default key of key assignments centering.
Optionally, storage medium is also configured to store the program code for executing following steps:Client passes through pre-
If multiple custom fields that interface server is sent, wherein multiple custom fields correspond to interruption-free pattern respectively
Various durations, the first PUSH message include multiple custom fields.
Optionally, the specific example in the present embodiment can refer to the example described in above-described embodiment, the present embodiment
Details are not described herein.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
The various media that can store program code such as CD.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
Sale in use, can be stored in the storage medium that above computer can be read.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of step of method.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, only one
Kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (14)
1. a kind of message receival method, which is characterized in that including:
Client passes through preset interface and receives the first PUSH message that server is sent, wherein first PUSH message includes
Predetermined information between the client and the server, the predetermined information are used to indicate the mode setting of default application
For interruption-free pattern, the default application is mounted in the client;
Pre-set button corresponding with the predetermined information is shown in the client, and touch-control is received by the pre-set button
Signal;
Touching signals described in the client end response, and set the default application to the interruption-free pattern.
2. according to the method described in claim 1, it is characterized in that, touching signals described in the client end response, and will be described
Default application is set as the interruption-free pattern:
The client is waken up described pre- after receiving the touching signals by the pre-set button by the server
If using;
The client obtains the duration of the interruption-free pattern, wherein the duration is by described default using root
It is obtained according to the predetermined information;
The client sends the first request for carrying the duration to the server by default apply,
In, server response first request, and stop to the client push message within the duration.
3. according to the method described in claim 2, it is characterized in that, default being applied to the clothes by described in the client
After business device sends the first request for carrying the duration, the method further includes:
Starting described default in application, the client acquisition server stops pushing away to described in the default application transmission
Send the current residual time of message, wherein the duration includes the current residual time;
The client is obtained returns the packet time when the server sends the PUSH message to the default application;
The client determines the first of the interruption-free pattern according to the sum of the current residual time and described time packet time
End time.
4. according to the method described in claim 3, it is characterized in that, in the client according to the current residual time and institute
After stating back the first end time that the sum of packet time determines the interruption-free pattern, the method further includes:
The client sends the second request for carrying first end time to the server;
The client receives the message that the server pushes after the second end time, wherein at the end of described second
Between be first end time and the sum of the service time of the server.
5. according to the method described in claim 1, which is characterized in that the predetermined information includes preset characters string,
The client receives first PUSH message that the server is sent by the preset interface:The visitor
Family end receives the preset characters string that the server is sent by the preset interface;
The client shows that the pre-set button corresponding with the predetermined information includes:The client show with it is described pre-
If the corresponding pre-set button of character string.
6. according to the method described in claim 5, which is characterized in that the client shows corresponding with the predetermined information
The pre-set button includes:
The client judges whether the preset characters string includes the key for presetting key assignments centering, wherein the predetermined information packet
Include the key of the default key assignments centering;
The client if it is judged that the preset characters string includes the key of the default key assignments centering, with described preset by display
The corresponding pre-set button of key in key-value pair.
7. according to the method described in claim 1, the client receives the server by the preset interface and sends
First PUSH message include:
The client receives multiple custom fields that the server is sent by the preset interface, wherein described more
A custom field corresponds to the various durations of the interruption-free pattern respectively, and first PUSH message includes the multiple
Custom field.
8. a kind of message receiving apparatus, which is characterized in that including:
Receiving unit receives the first PUSH message that server is sent, wherein described for making client pass through preset interface
One PUSH message includes the predetermined information between the client and the server, and the predetermined information is used to indicate will be default
The mode setting of application is interruption-free pattern, and the default application is mounted in the client;
Display unit, for showing pre-set button corresponding with the predetermined information in the client, and by described pre-
If button receives touching signals;
The default application for making touching signals described in the client end response, and is set as described and exempts to beat by setting unit
Disturb pattern.
9. device according to claim 8, which is characterized in that the setting unit includes:
Wake-up module, for making the client after receiving the touching signals by the pre-set button, by described
Server wakes up the default application;
First acquisition module, for making the client obtain the duration of the interruption-free pattern, wherein when described lasting
Between obtained according to the predetermined information by the default application;
First sending module carries described hold for making the client pass through default apply to server transmission
The first request of continuous time, wherein server response first request, and stop to described within the duration
Client push message.
10. device according to claim 9, which is characterized in that the setting unit further includes:
Second acquisition module, for carrying described hold by default apply to server transmission in the client
After the first request of continuous time, starting described default in application, the client acquisition server is made to stop to institute
State the current residual time that default application sends the PUSH message, wherein when the duration includes the current residual
Between;
Third acquisition module is answered for making the client obtain when the server sends the PUSH message to described preset
Return the packet time;
Determining module, for making the client exempt from according to described in the determination of the sum of the current residual time and described time packet time
Bother the first end time of pattern.
11. device according to claim 10, which is characterized in that the setting unit further includes:
Second sending module, for determining institute according to the sum of the current residual time and described time packet time in the client
After the first end time for stating interruption-free pattern, so that the client is carried described first to server transmission and terminate
The second request of time;
Receiving module, for making the client receive the message that the server pushes after the second end time, wherein
Second end time is the sum of the service time of first end time and the server.
12. according to the device described in claim 8, which is characterized in that the predetermined information includes preset characters string,
The receiving unit is used to make the client to receive the described default of the server transmission by the preset interface
Character string;
The display unit is for making the client show the pre-set button corresponding with the preset characters string.
13. according to the device described in claim 12, which is characterized in that the display unit includes:
Judgment module, for making the client judge whether the preset characters string includes the key for presetting key assignments centering, wherein
The predetermined information includes the key of the default key assignments centering;
Display module, for making the client if it is judged that the preset characters string includes the default key assignments centering
Key, the display pre-set button corresponding with the default key of key assignments centering.
14. according to the device described in claim 8, the receiving unit is for making the client pass through the preset interface
Receive multiple custom fields that the server is sent, wherein the multiple custom field corresponds to the interruption-free respectively
The various durations of pattern, first PUSH message include the multiple custom field.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710095330.7A CN108462734B (en) | 2017-02-20 | 2017-02-20 | Message receiving method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710095330.7A CN108462734B (en) | 2017-02-20 | 2017-02-20 | Message receiving method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108462734A true CN108462734A (en) | 2018-08-28 |
CN108462734B CN108462734B (en) | 2020-11-17 |
Family
ID=63229249
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710095330.7A Active CN108462734B (en) | 2017-02-20 | 2017-02-20 | Message receiving method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108462734B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109889438A (en) * | 2019-03-19 | 2019-06-14 | 北京达佳互联信息技术有限公司 | Information push method, message driving means and computer readable storage medium |
CN110365541A (en) * | 2019-07-31 | 2019-10-22 | 腾讯科技(深圳)有限公司 | Generation method, instruction sending method and the device of corresponding relationship in a kind of gateway |
CN112600978A (en) * | 2020-12-30 | 2021-04-02 | 北京字跳网络技术有限公司 | Information processing method and device and electronic equipment |
WO2022052878A1 (en) * | 2020-09-14 | 2022-03-17 | 华为技术有限公司 | Method for managing push message, and related apparatus |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003337499A (en) * | 2002-05-21 | 2003-11-28 | Canon Inc | Image forming apparatus |
CN103686645A (en) * | 2012-09-25 | 2014-03-26 | 京东方科技集团股份有限公司 | A user terminal conversation notifying method and a user terminal conversation notifying apparatus |
CN104035553A (en) * | 2013-03-06 | 2014-09-10 | 飞思卡尔半导体公司 | Systems and methods for indicating that an interface is being touched |
CN104346217A (en) * | 2014-10-08 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and system for prompting push information |
CN104978201A (en) * | 2015-07-14 | 2015-10-14 | 安一恒通(北京)科技有限公司 | Method and device for controlling automatic pop-up window display |
CN105100447A (en) * | 2015-06-30 | 2015-11-25 | 联想(北京)有限公司 | Method and device for setting application attributes and method and device for processing messages |
CN105979069A (en) * | 2016-04-25 | 2016-09-28 | 乐视控股(北京)有限公司 | Application shortcut operating method and application shortcut operating device |
CN205959049U (en) * | 2016-08-10 | 2017-02-15 | 广东灵镜医疗实业有限公司 | Central control panel for operating room |
-
2017
- 2017-02-20 CN CN201710095330.7A patent/CN108462734B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003337499A (en) * | 2002-05-21 | 2003-11-28 | Canon Inc | Image forming apparatus |
CN103686645A (en) * | 2012-09-25 | 2014-03-26 | 京东方科技集团股份有限公司 | A user terminal conversation notifying method and a user terminal conversation notifying apparatus |
CN104035553A (en) * | 2013-03-06 | 2014-09-10 | 飞思卡尔半导体公司 | Systems and methods for indicating that an interface is being touched |
CN104346217A (en) * | 2014-10-08 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and system for prompting push information |
CN105100447A (en) * | 2015-06-30 | 2015-11-25 | 联想(北京)有限公司 | Method and device for setting application attributes and method and device for processing messages |
CN104978201A (en) * | 2015-07-14 | 2015-10-14 | 安一恒通(北京)科技有限公司 | Method and device for controlling automatic pop-up window display |
CN105979069A (en) * | 2016-04-25 | 2016-09-28 | 乐视控股(北京)有限公司 | Application shortcut operating method and application shortcut operating device |
CN205959049U (en) * | 2016-08-10 | 2017-02-15 | 广东灵镜医疗实业有限公司 | Central control panel for operating room |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109889438A (en) * | 2019-03-19 | 2019-06-14 | 北京达佳互联信息技术有限公司 | Information push method, message driving means and computer readable storage medium |
CN109889438B (en) * | 2019-03-19 | 2021-07-13 | 北京达佳互联信息技术有限公司 | Message pushing method, message pushing device and computer readable storage medium |
CN110365541A (en) * | 2019-07-31 | 2019-10-22 | 腾讯科技(深圳)有限公司 | Generation method, instruction sending method and the device of corresponding relationship in a kind of gateway |
CN110365541B (en) * | 2019-07-31 | 2021-06-15 | 腾讯科技(深圳)有限公司 | Method for generating corresponding relation in gateway, and method and device for sending instruction |
WO2022052878A1 (en) * | 2020-09-14 | 2022-03-17 | 华为技术有限公司 | Method for managing push message, and related apparatus |
CN114268663A (en) * | 2020-09-14 | 2022-04-01 | 华为技术有限公司 | Management method of push message and related device |
CN112600978A (en) * | 2020-12-30 | 2021-04-02 | 北京字跳网络技术有限公司 | Information processing method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108462734B (en) | 2020-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106503584B (en) | A kind of session content methods of exhibiting and system | |
CN108462734A (en) | Message receival method and device | |
EP3142304B1 (en) | Synchronization method for notification message of electronic device, server and electronic device | |
CN109062489A (en) | Message treatment method, device, storage medium and electronic device | |
CN109152094A (en) | Wireless network connecting method for terminal | |
CN105430317B (en) | A kind of video background setting method and terminal device | |
CN108228025A (en) | message display method, device, mobile terminal and storage medium | |
WO2014198116A1 (en) | Method, apparatus and system for short message-based information push and mobile client supporting the same | |
CN109246741A (en) | Wireless network connecting method for terminal | |
CN107509051A (en) | Long-range control method, device, terminal and computer-readable recording medium | |
CN108063804A (en) | Communication means and device | |
CN107257313A (en) | A kind of message synchronization method and terminal | |
CN110134237A (en) | Interface control method and relevant device | |
CN103412885A (en) | Contact person photo setting method and device | |
CN112929254B (en) | Message processing method and device and electronic equipment | |
CN105530232A (en) | Account login method and device | |
CN109343944A (en) | Data processing method, device, terminal and the storage medium of eSIM card | |
CN105760048A (en) | Method and device for processing notice | |
CN108243085B (en) | Method and device for pushing and setting communication group state identifier | |
CN104811563A (en) | Method for adjusting working performance of mobile terminal | |
CN103873527A (en) | Data processing method, electronic equipment and server | |
CN104715188B (en) | A kind of application implementation method and device based on binding terminal | |
CN106339230B (en) | Graphical interface display method and device | |
CN108011860A (en) | A kind of method and device for handling broadcast message | |
CN107396319B (en) | A kind of method of wireless network authentication, equipment, storage medium and terminal reclaimer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |