Terminal applies client registers method and system and equipment
Technical field
The present invention relates to communication technical field, particularly to a kind of terminal applies client registers method and system and equipment.
Background technology
(Push) technology of propelling movement is the mechanism of a kind of content distribution, uses the working method of customer end/server mode, it is desirable to clothes
Business device need not client send request just by required content distribution to corresponding client.
Applications client, refers to be arranged on terminal, corresponding with application server, provides locally applied service for client
Program, corresponding application service refers to multimedia message, location-based service application etc..Applications client in terminal is using before Push Service,
Need first to register to push server.Registration process is, applications client sends login request message to pushing client, then
Push server sends login request message to push server, wherein carries all applications client needing to use Push Service
Application identities and one exceed the time limit the time (expire), after push server receives login request message, for push client
All client application of request are distributed one and are exceeded the time limit the time, and return to push client.Follow-up, pushing client needs to press
Time of exceeding the time limit according to push server distribution carries out re-register, in order to push server can know the state of applications client,
Transmission service is provided in time for applications client.
During realizing the present invention, inventor finds that prior art at least there is problems in that
All applications client are bound one and are exceeded the time limit the time, it is impossible to meet the different registration demands of each applications client.Such as,
If exceeded the time limit the time distribution smaller, the most all applications client all can frequently to push server register, and as multimedia message this
The business of sample, is not required to frequently register to keep server online, thus wastes Internet resources.
Summary of the invention
In order to meet the different registration demands of each applications client, embodiments provide a kind of terminal applies client note
Volume method and system and equipment.Described technical scheme is as follows:
On the one hand, it is provided that a kind of terminal applies client registers method, described method includes:
Terminal sends login request message first to push server, to initiate each applications client head in described push server
Secondary registration, described registration information first includes the application identification information that in described terminal, each applications client is corresponding;
Described terminal receives registration reply message first from described push server, and described registration reply message first includes described end
Application identification information that on end, each applications client is corresponding and described push server are exceeding the time limit of specifying of each applications client in terminal
Time, described push server be in terminal each applications client specify exceed the time limit in the time, at least two times of exceeding the time limit are different;
Described terminal is exceeding the time limit the time, respectively to described propelling movement of specifying of each applications client in terminal according to described push server
Server sends re-register request message, to initiate each applications client re-register in described push server respectively.
On the other hand, additionally providing a kind of terminal applies client registers method, described method includes:
Push server receives the login request message first that terminal sends, and described registration information first includes in described terminal
The application identification information that each applications client is corresponding;
Described push server is that in described terminal, each applications client respectively specifies that time of exceeding the time limit, at least two of which exceed the time limit the time
Different;
Described push server sends registration reply message first to described terminal, and described registration reply message first includes described end
Application identification information that on end, each applications client is corresponding and described push server are exceeding the time limit of specifying of each applications client in terminal
Time, so that described terminal is exceeding the time limit the time, respectively to institute of specifying of each applications client in terminal according to described push server
State push server and send re-register request message;
Described push server receives the re-register request message that described terminal sends, and asks information updating institute according to described re-register
State the state of respective application client in terminal.
On the other hand, additionally providing a kind of terminal, described terminal includes:
First transmitting element, for sending login request message first to push server, to initiate each applications client described
The registration first of push server, described registration information first includes the application mark that in described terminal, each applications client is corresponding
Knowledge information;
First receives unit, for receiving registration reply message first, described registration reply message first from described push server
The application identification information corresponding including each applications client in the terminal of described first transmitting element request registration and described Push Service
Device is exceeding the time limit the time of specifying of each applications client in terminal, described push server be in terminal each applications client specify super
In time phase, at least two times of exceeding the time limit are different;
Re-register unit, is that in terminal, each applications client is specified for receiving the push server of unit reception according to described first
Exceed the time limit the time, respectively to described push server send re-register request message, to initiate each applications client respectively described
The re-register of push server.
On the other hand, additionally providing a kind of push server, described push server includes:
Second receives unit, and for receiving the login request message first that terminal sends, described registration information first includes institute
State the application identification information that in terminal, each applications client is corresponding;
Designating unit, divides for receiving each applications client in the terminal that the application identification information of unit reception is corresponding for described second
Zhi Ding not exceed the time limit the time, at least two of which time of exceeding the time limit is different;
Second transmitting element, for sending registration reply message first to described terminal, described registration reply message first includes institute
It is each in terminal for stating application identification information corresponding to each applications client and described designating unit in the terminal that the second reception unit receives
What applications client was specified exceeds the time limit the time, so that described terminal is that in terminal, each applications client is specified according to described push server
Exceed the time limit the time, respectively to described push server send re-register request message;
First updating block, for receiving the re-register request message that described terminal sends, according to described re-register request message more
The state of respective application client in new described terminal.
On the other hand, the invention provides a kind of terminal applies client state update method, including:
Push server sends the inquiry request message of the state of activation of application-specific client to described terminal, so that described terminal
The state of activation of described application-specific client is inquired about according to described inquiry request message;
Described push server receives the query response message that described terminal sends, and described query response message includes the institute inquired
State the state of activation of application-specific client;
Described push server according to described in the state of activation of described application-specific client that inquires, update the institute of local record
State the state of activation of application-specific client.
On the other hand, additionally provide a kind of terminal applies client state update method, including:
Terminal receives the inquiry request message of the state of activation of the application-specific client that push server sends;
Described terminal inquires about the state of activation of described application-specific client according to described inquiry request message;
Described terminal transmission query response message is to described push server, and described query response message includes the described spy inquired
Determine the state of activation of applications client so that described push server according to described in inquire described application-specific client swash
The state of living, updates the state of activation of the described application-specific client of local record.
On the other hand, additionally provide a kind of push server, including:
3rd transmitting element, for sending the inquiry request message of the state of activation of application-specific client to described terminal, so that
Described terminal inquires about the state of activation of described application-specific client according to described inquiry request message;
3rd receives unit, and for receiving the query response message that described terminal sends, described query response message includes inquiring
The state of activation of application-specific client of described 3rd transmitting element requesting query;
Second updating block, for receiving the state of activation of the described application-specific client that unit receives according to the described 3rd,
Update the state of activation of the described application-specific client of local record.
On the other hand, additionally provide a kind of terminal, including:
4th receives unit, for receiving the inquiry request message of the state of activation of the application-specific client that push server sends;
Second query unit, for receiving, according to the described 4th, the inquiry request message inquiry described application-specific visitor that unit receives
The state of activation of family end;
4th transmitting element, is used for sending query response message to described push server, and described query response message includes described
The state of activation of the described application-specific client that the second query unit inquires, so that described push server is according to described inquiry
The state of activation of the described application-specific client arrived, updates the state of activation of the described application-specific client of local record.
The technical scheme that the embodiment of the present invention provides has the benefit that
Login request message first is sent to push server, to initiate each applications client head in push server by terminal
Secondary registration, push server is that in terminal, each applications client specifies different the exceeding the time limit the time of at least two, and terminal is according to pushing clothes
Business device is exceeding the time limit the time of specifying of each applications client in terminal, initiates the re-register of each applications client respectively to push server,
Achieve characteristic according to different application client and distribute different exceeding the time limit the time so that each applications client according to self
Need push server is initiated registration, meet the different registration demands of each applications client, such as quality of service requirement, use
Family specifically needs, and for need not the application frequently registered, the different time of exceeding the time limit can save Internet resources.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in describing embodiment below, required use is attached
Figure is briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, for this area
From the point of view of those of ordinary skill, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the terminal applies client registers method flow diagram provided in the embodiment of the present invention 1;
Fig. 2 is the terminal applies client registers method flow diagram provided in the embodiment of the present invention 2;
Fig. 3 is the terminal applies client registers method information interaction figure provided in the embodiment of the present invention 3;
Fig. 4 is the terminal applies client registers other method information interaction figure provided in the embodiment of the present invention 3;
Fig. 5 is the terminal applies client registers method information interaction figure provided in the embodiment of the present invention 4;
Fig. 6 is the terminal applies client registers other method information interaction figure provided in the embodiment of the present invention 4;
Fig. 7 is the terminal applies client registers method flow diagram provided in the embodiment of the present invention 5;
Fig. 8 is the terminal applies client registers other method flow chart provided in the embodiment of the present invention 5;
Fig. 9 is the terminal applies client registers method information interaction figure provided in the embodiment of the present invention 5;
Figure 10 is the terminal structure schematic diagram provided in the embodiment of the present invention 6;
Figure 11 is the push server structural representation provided in the embodiment of the present invention 7;
Figure 12 is the push server structural representation provided in the embodiment of the present invention 8;
Figure 13 is the terminal structure schematic diagram provided in the embodiment of the present invention 9.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing embodiment of the present invention made into
One step ground describes in detail.
Embodiment 1
Seeing Fig. 1, present embodiments provide a kind of terminal applies client registers method, the method includes:
S11: terminal sends login request message first to push server, to initiate each applications client head in push server
Secondary registration, registration information includes the application identification information that in terminal, each applications client is corresponding first;
S12: terminal receives registration reply message first from push server, and registration reply message includes respectively applying in terminal visitor first
Application identification information that family end is corresponding and push server are exceeding the time limit the time of specifying of each applications client, push server in terminal
Exceeding the time limit in the time for what applications client each in terminal was specified, at least two times of exceeding the time limit are different;
S13: terminal is exceeding the time limit the time of specifying of each applications client in terminal according to push server, sends out to push server respectively
Re-register is sent to ask message, to initiate each applications client re-register in push server respectively.
The present embodiment sends login request message first by terminal to push server, to initiate each applications client at propelling movement clothes
The registration first of business device, push server is that in terminal, each applications client specifies different the exceeding the time limit the time of at least two, terminal root
It is exceeding the time limit the time of specifying of each applications client in terminal according to push server, initiates each applications client to push server respectively
Re-register, it is achieved that distribute different exceeding the time limit the time according to the characteristic of different application client, so that each applications client
According to self need to push server initiate registration, meet the different registration demands of each applications client, such as Service Quality
Amount requirement, user specifically needs, and for need not the application frequently registered, the different time of exceeding the time limit can save network money
Source.
Embodiment 2
Seeing Fig. 2, present embodiments provide a kind of terminal applies client registers method, the method includes:
S21: push server receives the login request message first that terminal sends, and registration information includes respectively should in terminal first
By application identification information corresponding to client;
S22: push server is that in terminal, each applications client respectively specifies that time of exceeding the time limit, at least two of which time of exceeding the time limit is different;
S23: push server sends registration reply message first to terminal, and registration reply message includes respectively applying in terminal visitor first
Application identification information that family end is corresponding and push server are exceeding the time limit the time of specifying of each applications client in terminal, so that terminal root
It is exceeding the time limit the time of specifying of each applications client in terminal according to push server, sends re-register request to push server respectively and disappear
Breath;
S24: push server receives the re-register request message that terminal sends, according to corresponding in re-register request information updating terminal
The state of applications client.
The present embodiment is that in terminal, each applications client specifies different the exceeding the time limit the time of at least two, terminal root by push server
It is exceeding the time limit the time of specifying of each applications client in terminal according to push server, initiates each applications client to push server respectively
Re-register, push server is according to the state of respective application client in re-register request information updating terminal, it is achieved that according to
The characteristic of different application client distributes different exceeding the time limit the time so that each applications client according to self needs to propelling movement
Server initiates registration, meets the different registration demands of each applications client, and such as quality of service requirement, user specifically needs
Waiting, for need not the application frequently registered, the different time of exceeding the time limit can save Internet resources.
Embodiment 3
A kind of method present embodiments providing terminal applies client registers, the method includes:
101: have N number of applications client to be associated with pushing (Push) client in terminal, N >=2, to realize passing through Push
The service message that channel reception network equipment sends;Applications client sends registration request first to Push client terminal respectively and disappears
Breath;
The present embodiment illustrates as a example by 4 applications client, and 4 applications client are respectively locations services client
Loc.ua, WML client wml.ua of wireless Internet services, multimedia message client mms.ua, facility management client
dm.ua。
This step is the registration process first of Push client terminal and applications client, or start-up logging process.
102:Push client initiates login request message first to Push server, wherein carries each applications client corresponding
Application identification information;
Further, login request message also includes in terminal that each applications client is exceeded the time limit temporal reference value accordingly first, so that
Push server according to applications client each in terminal exceed the time limit accordingly temporal reference value be in terminal each applications client specify exceed the time limit
Time (expire).
103:Push server is that in terminal, each applications client respectively specifies that time of exceeding the time limit, at least two of which exceed the time limit the time not
With;
Concrete, push server, according to the reference time information that exceeds the time limit, specifies at least two different for each applications client in terminal
Exceed the time limit the time, the reference time information that exceeds the time limit includes: in terminal each applications client exceed the time limit accordingly temporal reference value, user sign
About at least one parameter in information or offered load.Wherein, user signing contract information, offered load are that push server obtains
's.It should be noted that Push server-assignment exceed the time limit the time can with login request message first in carry exceed the time limit the time
Reference value is different.Under normal circumstances, the time of exceeding the time limit of Push server-assignment carries more than or equal in login request message first
Temporal reference value of exceeding the time limit.Such as, the temporal reference value of exceeding the time limit carried in login request message first is 480 seconds, and Push services
The time of exceeding the time limit of device distribution can be 1800 seconds.
104:Push server returns registration reply message first and, to Push client terminal, wherein carries the application mark of applications client
Knowledge information and Push server are exceeding the time limit the time of specifying of each applications client.
Now, Push client terminal obtains Push server is exceeding the time limit the time accordingly of specifying of each applications client.Push visitor
It is exceeding the time limit the time accordingly of specifying of each applications client that family end can cache Push server.
105:Push client return first registration reply message give corresponding applications client.
It should be noted that this step can perform before or after step 102 or step 103 or step 104.
After propelling movement client knows that push server is the time of exceeding the time limit accordingly that each applications client is specified, according to Push Service
Device is exceeding the time limit the time of specifying of each applications client in terminal, sends re-register request message to push server respectively, with respectively
Initiate each applications client re-register in push server, in order to push server can be known or update applications client
State, provides transmission service for applications client in time.According to different triggering modes, specifically there is following two re-register process.
The first, Push client terminal triggers re-register process according to the state of applications client, sees Fig. 3, and the method includes:
401:Push client Push server be each applications client specify exceed the time limit in the time accordingly, make regular check on should
By the state of client;
Wherein, the state of applications client includes: state of activation and deactivation status.If applications client owing to makeing mistakes, extremely
Machine, user closes the reasons such as applications client, and the business not continuing to be sent to this applications client from Push client terminal disappears
During breath, the most now applications client is deactivation status.
Push client terminal knows state at least two kinds of methods of applications client.First method, Push client terminal is according to application
Whether client can receive its message forwarded, and knows the state of applications client, if applications client can receive Push client
The message that end forwards, then applications client is state of activation, otherwise, if applications client can not receive Push client terminal and forward
Message, then applications client is deactivation status.Second method, applications client notifies Push when state changes
Client, when Push client terminal receives the notice of applications client state change, can know the state of applications client.
402: if Push client terminal detects that the state of a certain applications client becomes deactivation status, Push client terminal is to Push
Server sends re-register request message, wherein carries the application identification information of the applications client of deexcitation and goes registered tags to believe
Breath, to notify the state of the applications client of Push server update deexcitation;
Wherein, go registered tags information can realize by the time parameter that exceeds the time limit of applications client is set to 0, if should
Be set to 0 with the time parameter that exceeds the time limit of client, then the state of this applications client of Push server update is deactivation status,
I.e. applications client is no longer registered with Push server, the most no longer receives the service message that Push client terminal provides for it.
Further, Push client terminal can also carry another label information (tag), the i.e. second label in re-register request message
Information, with notify other applications client of Push server (i.e. except re-register request message instruction deexcitation applications client it
Outer applications client) state constant.This mark applications client state becomes deactivation status, other applications client
Constant the second label information of state can be by implementing decision, or server is prefabricated, negotiation in advance etc. time mode realizes,
Can not carry label information, any notice server application-specific client that can realize goes registration to maintain other applications client
The implementation of registration is all within technical scheme considers.
Such as, re-register request message carries following information :+g.oma.pusheventapp=" loc.ua, expire=0 ",
Tag=1000, then it represents that loc applications client becomes deactivation status, Push server deletes the registration letter of this applications client
Breath, the state of other applications client is constant, is continually maintained in the log-on message of Push server.
403:Push server is according to going registered tags information, and the state of the applications client updating deexcitation is deactivation status;
For the applications client of deexcitation, Push server can also delete the registration letter of the applications client of deexcitation further
Breath, such as register list etc..
Concrete, when the time parameter that exceeds the time limit of applications client is set to 0, the application client of Push server update deexcitation
The state of end.
Further, the second label information that Push server can also carry according to re-register request message, keep other application visitor
The state of family end is constant.
404:Push server returns re-register response message to Push client terminal.
The second, Push client terminal triggers re-register process according to the arrival situation of the time of exceeding the time limit of applications client, sees Fig. 4,
The method includes:
501:Push client is exceeding the time limit the time accordingly of specifying of each applications client according to Push server, and making regular check on should
Whether arrive with the time of exceeding the time limit of client.
502: if Push client terminal detects some or the time arrival of exceeding the time limit of multiple applications client, and the time of exceeding the time limit arrives
The applications client reached is state of activation, then Push client terminal sends re-register request message to Push server, wherein carries
The application identification information of this applications client (i.e. exceed the time limit time arrival and the applications client still in state of activation);
Further, exceed the time limit the time (the expire parameter) of this applications client can also wherein be carried.
Wherein, this re-register request message is to show that applications client is that applications client continues to keep after the time of exceeding the time limit arrives
The registration message being sent to this applications client service message is received by Push server and Push client terminal.
503:Push server, according to the application identification information of the applications client of re-register request message instruction, updates this application
Client state continues as state of activation.
504:Push server returns re-register response message to Push client terminal.
Further, in order to make push server know the state of terminal in time, it is ensured that the message of push server end accurately arrives
Terminal, completes after the registration first of Push server in terminal applies client, and push server can be special with active inquiry
Determine the state of applications client, specifically include:
Push server sends the inquiry request message of the state of activation of application-specific client to terminal, so that terminal is according to inquiry
The state of activation of request information query application-specific client;Push server receives the query response message that terminal sends, inquiry
Response message includes the state of activation of the application-specific client inquired;Push server is according to the application-specific client inquired
The state of activation of end, updates the state of activation of the application-specific client of local record.
Wherein, before the inquiry request message of the state of activation sending application-specific client in push server to terminal, push
Server can also be according at least one parameter in user signing contract information, configuration information and network state, from all clients
In determine application-specific client;Time of exceeding the time limit if the distribution of application-specific client arrives, or, if be sent to
The service message of application-specific client, push server determines the state of activation needing to inquire about application-specific client.
The present embodiment sends login request message first by terminal to push server, to initiate each applications client at propelling movement clothes
The registration first of business device, push server is that in terminal, each applications client specifies different the exceeding the time limit the time of at least two, terminal root
It is exceeding the time limit the time of specifying of each applications client in terminal according to push server, initiates each applications client to push server respectively
Re-register, it is achieved that distribute different exceeding the time limit the time according to the characteristic of different application client, meet each applications client
Different demands, such as quality of service requirement, user specifically needs, it is provided that more preferably Consumer's Experience, for need not frequently
The application of registration, the different time of exceeding the time limit can save Internet resources.
Embodiment 4
Present embodiments provide a kind of terminal applies client registers method, be in described terminal, respectively to apply visitor as push server
Family end specifies a kind of implementation of the time of exceeding the time limit that at least two is different, and applications client can be grouped by the method, and is each
Group applications client distribution is exceeded the time limit the time accordingly, and the method includes:
201: have N number of applications client to be associated with pushing (Push) client in terminal, N >=2, to realize passing through Push
The service message that channel reception network equipment sends;Applications client sends registration request first to Push client terminal respectively and disappears
Breath;
The present embodiment illustrates as a example by 4 applications client, and 4 applications client are respectively locations services client
Loc.ua, WML client wml.ua of wireless Internet services, multimedia message client mms.ua, facility management client
dm.ua
This step is the registration process first of Push client terminal and applications client, or start-up logging process.
202:Push client initiates login request message first to Push server, wherein carries the application of each applications client
Identification information;
Further, login request message also includes in terminal that each applications client is exceeded the time limit temporal reference value accordingly first, so that
Push server according to applications client each in terminal exceed the time limit accordingly temporal reference value be in terminal each applications client specify exceed the time limit
Time (expire).
Applications client each in terminal is grouped by 203:Push server, respectively specifies that the group of each applications client in terminal
Mark, and respectively specify that the time of exceeding the time limit for often group applications client, and the time of exceeding the time limit of at least two groups of applications client is different;
Concrete, applications client each in terminal, according to the reference time information that exceeds the time limit, is grouped, refers to respectively by push server
Determine the group mark of each applications client in terminal, and respectively specify that time of exceeding the time limit, and at least two groups of application for often group applications client
The time of exceeding the time limit of client is different, and reference information includes: in terminal, each applications client is exceeded the time limit temporal reference value, user accordingly
At least one parameter in CAMEL-Subscription-Information or offered load.Wherein, user signing contract information, offered load are that push server obtains
Take.It should be noted that Push server is each component join exceed the time limit the time can with login request message in carry exceed the time limit
Time is different.Under normal circumstances, Push server is to carry more than or equal in login request message the time of exceeding the time limit that each component is joined
Exceed the time limit the time.Such as, the time of exceeding the time limit carried in login request message is 480 seconds, exceeding the time limit the time of Push server-assignment
It can be 1800 seconds.
204:Push server returns registration reply message first to Push client terminal, wherein carries group belonging to each applications client
Group mark and often corresponding the exceeding the time limit the time of group;
Such as, registration reply message carries following information first:
+ g.oma.pusheventapp=" mms.ua %x21 group1 %x21 expire=480, loc.ua %x21 group
1%x21 expire=480, dm.ua %x21 group2 %x21 expire=3600, wml.ua %x21 group 2 %x21
Expire=3600 "
Above-mentioned information represents: applications client is divided into two groups, is respectively group group1 and group group2, wraps in group group1
Including mms and loc applications client, group group2 includes dm and wml applications client, and group group1 exceeds the time limit the time
Being 480 seconds, the time of exceeding the time limit of group group 2 is 3600 seconds.It will be understood by those skilled in the art that above-mentioned packet is only a kind of
Signal, can also have other compound modes when implementing.
205:Push client return first registration reply message give corresponding applications client.
It should be noted that this step can perform before or after step 202 or step 203 or step 204.
After propelling movement client knows the time of exceeding the time limit accordingly that push server is each group of applications client distribution, need according to dividing
The time of exceeding the time limit joined carries out re-register to applications client, in order to push server can know the state of applications client, and
Time provide transmission service for applications client.
After propelling movement client knows that push server is the time of exceeding the time limit accordingly that each group of applications client is specified, according to pushing clothes
Business device is exceeding the time limit the time of specifying of each group applications client in terminal, sends re-register request message to push server respectively, with
Initiate each applications client re-register in push server respectively, in order to push server can know the shape of applications client
State, provides transmission service for applications client in time.According to different triggering modes, there is following two re-register process.
The first, Push client terminal triggers re-register process according to the state of applications client, sees Fig. 5, and the method includes:
601:Push client Push server be the distribution of each group of applications client exceed the time limit accordingly in the time, make regular check on
The state of applications client in group;
Wherein, the state of applications client includes: state of activation and deactivation status.If applications client owing to makeing mistakes, extremely
Machine, user close the reasons such as applications client, and the business not continuing to be sent to this applications client from Push client terminal disappears
During breath, the most now applications client is deactivation status.
Push client terminal knows state at least two kinds of methods of applications client.First method, Push client terminal is according to application
Whether client can receive its message forwarded, and knows the state of applications client, if applications client can receive Push client
The message that end forwards, then applications client is state of activation, otherwise, if applications client can not receive Push client terminal and forward
Message, then applications client is deactivation status.Second method, applications client notifies Push when state changes
Client, when Push client terminal receives the notice of applications client state change, can know the state of applications client.
602: if Push client terminal detects that the state of a certain applications client becomes deactivation status, Push client terminal is to Push
Server sends re-register request message, wherein carries the application identification information of the applications client of deexcitation and goes registered tags to believe
Breath, to notify the state of the applications client of Push this deexcitation of server update;
Wherein, go registered tags information can realize by the time parameter that exceeds the time limit of applications client is set to 0, if should
Be set to 0 with the time parameter that exceeds the time limit of client, then the state of this applications client of Push server update is deactivation status.
Further, Push client terminal can also carry another label information (tag), the i.e. second label in re-register request message
Information, with other applications client in notifying Push server group (except re-register asks answering of the deexcitation of message instruction in i.e. organizing
Applications client with outside client) state constant.
Such as, re-register request message is carried following information:
+ g.oma.pusheventapp=" group 1%x21 expire=480, mms.ua %x21 expire=0 " tag=1000
Above-mentioned information represents: mms applications client becomes deactivation status, other applications client in group group1 belonging to mms
State constant.
603:Push server is according to going registered tags information, and the state of the applications client updating this deexcitation is deexcitation shape
State;
For the applications client of deexcitation, Push server can also delete the registration letter of the applications client of deexcitation further
Breath, such as register list etc..
Concrete, when the time parameter that exceeds the time limit of applications client is set to 0, the application client of Push server update deexcitation
The state of end.
Further, the second label information that Push server can also carry according to re-register request message, in holding group, other should
Constant by the state of client.
604:Push server returns re-register response message to Push client terminal.
The second, Push client terminal triggers re-register process according to the arrival situation of the time of exceeding the time limit of applications client, sees Fig. 6,
The method includes:
701:Push client is exceeding the time limit the time accordingly of specifying of each group of applications client according to Push server, makes regular check on
Whether the time of exceeding the time limit of each group applications client arrives.
702: if Push client terminal detects the time arrival of exceeding the time limit of a certain group of applications client, and the group that the time of exceeding the time limit arrives
In at least an applications client be state of activation, Push client terminal to Push server send re-register request message, its
In carry the application identification information of this applications client (time of i.e. exceeding the time limit arrives and still in the applications client of state of activation);
Further, exceed the time limit the time (the expire parameter) of the applications client being active in this group can also wherein be carried.
703:Push server is according to the application identification information of this applications client of re-register request message instruction, and updating should
State of activation is continued as with client state.
Further, the application that Push server arrives according to the time of exceeding the time limit of re-register request message instruction and is active
The application identification information of client, the state of applications client re-register request message in this group not indicated is updated to deexcitation
State, also can delete its log-on message further.
704:Push server returns re-register response message to Push client terminal.
Further, in order to make push server know the state of terminal in time, it is ensured that the message of push server end accurately arrives
Terminal, completes after the registration first of Push server in terminal applies client, and push server can be special with active inquiry
Determine the state of applications client, specifically include:
Push server sends the inquiry request message of the state of activation of application-specific client to terminal, so that terminal is according to inquiry
The state of activation of request information query application-specific client;Push server receives the query response message that terminal sends, inquiry
Response message includes the state of activation of the application-specific client inquired;Push server is according to the application-specific client inquired
The state of activation of end, updates the state of activation of the application-specific client of local record.
Wherein, before the inquiry request message of the state of activation sending application-specific client in push server to terminal, push
Server can also be according at least one parameter in user signing contract information, configuration information and network state, from all clients
In determine application-specific client;Time of exceeding the time limit if the distribution of application-specific client arrives, or, if be sent to
The service message of application-specific client, push server determines the state of activation needing to inquire about application-specific client.
The present embodiment sends login request message first by terminal to push server, to initiate each applications client at propelling movement clothes
The registration first of business device, applications client each in terminal is grouped, respectively specifies that for often organizing applications client by push server
Exceeding the time limit the time, and the time of exceeding the time limit of at least two groups of applications client is different, terminal is that in terminal, each group should according to push server
Exceed the time limit the time with what client was specified, initiate the re-register of each applications client respectively to push server, it is achieved that according to difference
The characteristic of applications client distributes different exceeding the time limit the time, meets the different demands of each applications client, such as service quality
Requirement, user specifically needs, it is provided that more preferably Consumer's Experience, for need not the application frequently registered, different when exceeding the time limit
Between can save Internet resources.
Embodiment 5
Seeing Fig. 7, present embodiments provide a kind of terminal applies client state update method, the method includes:
S31: push server sends the inquiry request message of state of activation of application-specific client to terminal so that terminal according to
The state of activation of inquiry request message inquiry application-specific client;
S32: push server receives the query response message that terminal sends, and query response message includes the application-specific visitor inquired
The state of activation of family end;
S33: push server, according to the state of activation of the application-specific client inquired, updates the application-specific visitor of local record
The state of activation of family end.
Seeing Fig. 8, present embodiments provide a kind of terminal applies client state update method, the method includes:
S41: terminal receives the inquiry request message of the state of activation of the application-specific client that push server sends;
S42: terminal is according to the state of activation of inquiry request message inquiry application-specific client;
S43: terminal transmission query response message is to push server, and query response message includes the application-specific client inquired
State of activation so that push server is according to the state of activation of the application-specific client inquired, update the spy of local record
Determine the state of activation of applications client.
Seeing Fig. 9, present embodiments provide a kind of terminal applies client registers method, the method can be by push server pair
Application-specific client individually sets the time of exceeding the time limit, and the method includes:
301: have N number of applications client to be associated with pushing (Push) client in terminal, N >=2, to realize passing through Push
The service message that channel reception network equipment sends;Applications client sends login request message to Push client terminal respectively;
The present embodiment illustrates as a example by 4 applications client, and 4 applications client are respectively locations services client
Loc.ua, WML client wml.ua of wireless Internet services, multimedia message client mms.ua, facility management client
dm.ua。
This step is the registration process first of Push client terminal and applications client, or start-up logging process.
302:Push client initiates login request message to Push server, wherein carries the application identities of each applications client
Letter is thought;
303:Push server, according to the application identification information of each applications client, distributes one first for all applications client
Exceed the time limit the time, in order to applications client initiates re-register to Push server;
Further, Push server is breathed out can be that application-specific client therein distribution second is exceeded the time limit the time.Wherein, specific should
Can be one or more in all applications client by client.It addition, application-specific client can be Push server
According at least in the user signing contract information of Client application end, the configuration information of Push server and network state etc. in terminal
Individual parameter, determines in applications client from terminal.
304:Push server return registration reply message, to Push client terminal, wherein carries first and exceeds the time limit the time.
305:Push client returns registration reply message to corresponding applications client, in order to applications client takes to Push
Re-register initiated by business device;
It should be noted that this step can perform before or after step 302 or step 303 or step 304.
306:Push server determines the need for inquiring about the state of activation of application-specific client;
Concrete, arrive if the second of application-specific client distribution time of exceeding the time limit, Push server determines needs inquiry spy
Determine the state of activation of applications client;Or, if Push server has the service message being sent to application-specific client, can
To determine the state of activation needing to inquire about application-specific client.
307: when Push server determines the state of activation needing to inquire about application-specific client, Push server sends inquiry
Request message, wherein carries the application identification information of application-specific client;
Wherein, inquiry request message can be SIP OPTIONS message, and SIP OPTIONS message is except carrying application-specific visitor
The application identities of family end, also carries label information, to indicate this SIP OPTIONS message to activate for inquiry application-specific client
The solicited message of state.
The application identification information of the application-specific client that 308:Push client is carried according to inquiry request message, inquires about this spy
Determine the state of activation of applications client;
309:Push client return query response message, to Push server, wherein carries the activation shape of application-specific client
State information;
The state of activation information of the application-specific client of 310:Push server update local record.
The present embodiment sends the inquiry request message of the state of activation of application-specific client, terminal by push server to terminal
The state of activation of inquiry application-specific client, and return to push server, push server is according to the application-specific inquired
The state of activation of client, updates the state of activation of the application-specific client of local record, it can be ensured that push server end
The accurate incoming terminal of message.
Embodiment 6
Seeing Figure 10, present embodiments provide a kind of terminal, this terminal includes:
First transmitting element 801, for sending login request message first to push server, exists initiating each applications client
The registration first of push server, registration information includes the application identification information that in terminal, each applications client is corresponding first;
First receives unit 802, and for receiving registration reply message first from push server, registration reply message includes first
Application identification information that in first transmitting element 801 terminal registered of request, each applications client is corresponding and push server are as terminal
What upper each applications client was specified exceeds the time limit the time, push server be in terminal each applications client specify exceed the time limit in the time, extremely
Rare two times of exceeding the time limit are different;
Re-register unit 803, is each applications client in terminal for receiving the push server of unit 802 reception according to first
That specifies exceeds the time limit the time, sends re-register request message to push server respectively, to initiate each applications client respectively in propelling movement
The re-register of server.
Further, registration reply message also includes the group mark of group belonging to each applications client first;Push server is in terminal
The time of exceeding the time limit that the group identical each applications client of mark is specified is identical.
Wherein, re-register unit 803, specifically for
If the time of exceeding the time limit of applications client arrives, terminal sends re-register request message to push server, and re-register is asked
Message includes exceeding the time limit the application identification information of applications client that the time arrives, exists with the applications client that the time of initiating to exceed the time limit arrives
The re-register of push server;Or,
If the exceeding the time limit to have not timed out of applications client reaches, and terminal detects the state exceeding the time limit to have not timed out the applications client reached
Become deactivation status, then terminal sends re-register request message to push server, and re-register request message includes deexcitation
The application identification information of applications client and go registered tags information, so that push server is according to going registered tags information updating to go
The state of the applications client activated is deactivation status.
Further, re-register request message also includes the second label information, for indicating the application arrived in terminal except the time of exceeding the time limit
The state of other applications client outside the applications client of client or deexcitation is constant.
Further, first receives unit 802, is additionally operable to receive the state of activation of the application-specific client that push server sends
Inquiry request message;
Terminal also includes query unit, for receiving, according to first, the inquiry request message inquiry application-specific visitor that unit 802 receives
The state of activation of family end;
First transmitting element 801, be additionally operable to send query response message to push server, query response message includes inquiring
The state of activation of application-specific client so that push server is according to the state of activation of the application-specific client inquired,
Update the state of activation of the application-specific client of local record.
The terminal that the present embodiment provides, by sending login request message first to push server, exists initiating each applications client
The registration first of push server, push server is that in terminal, each applications client specifies different the exceeding the time limit the time of at least two,
Terminal is exceeding the time limit the time of specifying of each applications client in terminal according to push server, initiates each application to push server respectively
The re-register of client, it is achieved that distribute different exceeding the time limit the time according to the characteristic of different application client, so that each application
Client according to self need to push server initiate registration, meet the different demands of each applications client, such as, service
Prescription, user specifically needs, it is provided that more preferably Consumer's Experience, and for need not the application frequently registered, different is super
Time phase can save Internet resources.
Embodiment 7
Seeing Figure 11, present embodiments provide a kind of push server, this push server includes:
Second receives unit 901, and for receiving the login request message first that terminal sends, registration information includes end first
The application identification information that on end, each applications client is corresponding;
Designating unit 902, for being each application client in terminal corresponding to application identification information that receive of the second reception unit 901
End respectively specifies that time of exceeding the time limit, at least two of which time of exceeding the time limit is different;
Second transmitting element 903, for sending registration reply message first to terminal, registration reply message includes that second connects first
Application identification information and designating unit 902 that in the terminal that receipts unit 901 receives, each applications client is corresponding are respectively applied in terminal
What client was specified exceeds the time limit the time, so that terminal is exceeding the time limit the time of specifying of each applications client in terminal according to push server,
Re-register request message is sent respectively to push server;
First updating block 904, for receiving the re-register request message that terminal sends, according to re-register request information updating eventually
The state of respective application client on end.
Further, login request message also includes in terminal that each applications client is exceeded the time limit temporal reference value accordingly first;
Designating unit 902, is additionally operable to according to exceeding the time limit reference time information, respectively specifies that when exceeding the time limit for applications client each in terminal
Between, the reference time information that exceeds the time limit includes: in terminal each applications client exceed the time limit accordingly temporal reference value, user signing contract information,
Or at least one parameter in offered load.
Wherein, it is intended that unit 902, specifically for
Each applications client in terminal is grouped, respectively specifies that the group mark of each applications client in terminal, and for often organizing application client
End respectively specifies that the time of exceeding the time limit, and the time of exceeding the time limit of at least two groups of applications client is different.
Wherein, the first updating block 904, specifically for:
Receiving the re-register request message that terminal sends, what re-register request message included exceeding the time limit applications client that the time arrives should
With identification information, the state updating the applications client that the time of exceeding the time limit arrives is state of activation;
Or,
Receiving the re-register request message that terminal sends, re-register request message includes the application identities of the applications client of deexcitation
Information and go registered tags information, is deactivation status according to the state of the applications client going registered tags information updating deexcitation.
Further, re-register request message also includes the second label information, for indicating the application arrived in terminal except the time of exceeding the time limit
The state of other applications client outside the applications client of client or deexcitation is constant.
The present embodiment provide push server by terminal each applications client specify different the exceeding the time limit the time of at least two,
Terminal is exceeding the time limit the time of specifying of each applications client in terminal according to push server, initiates each application to push server respectively
The re-register of client, push server is according to the state of respective application client in re-register request information updating terminal, it is achieved
Characteristic according to different application client distributes different exceeding the time limit the time, meets the different demands of each applications client, example
Such as quality of service requirement, user specifically needs, it is provided that more preferably Consumer's Experience, for need not the application frequently registered, no
The same time of exceeding the time limit can save Internet resources.
Embodiment 8
Seeing Figure 12, present embodiments provide a kind of push server, push server includes:
3rd transmitting element 1001, for sending the inquiry request message of the state of activation of application-specific client to terminal, so that
Terminal is according to the state of activation of inquiry request message inquiry application-specific client;
3rd receives unit 1002, for receiving the query response message that terminal sends, query response message include inquiring the
The state of activation of the application-specific client of three transmitting element 1001 requesting queries;
Second updating block 1003, for receiving the state of activation of the application-specific client that unit 1002 receives according to the 3rd,
Update the state of activation of the application-specific client of local record.
Further, push server also includes determining unit, in the state of activation to terminal transmission application-specific client
Before inquiry request message, according in the user signing contract information of Client application end, configuration information and network state in terminal extremely
A few parameter, determines application-specific client from terminal in applications client;If surpassing of application-specific client distribution
Time phase arrives, or, if there being the service message being sent to application-specific client, push server determines needs inquiry spy
Determine the state of activation of applications client.
The push server that the present embodiment provides is disappeared by the inquiry request sending the state of activation of application-specific client to terminal
Breath, the state of activation of terminal inquiry application-specific client, and return to push server, push server is according to inquiring
The state of activation of application-specific client, updates the state of activation of the application-specific client of local record, it can be ensured that push clothes
The accurate incoming terminal of message of business device end.
Embodiment 9
Seeing Figure 13, present embodiments provide a kind of terminal, terminal includes:
4th receives unit 1101, for receiving the inquiry request of the state of activation of the application-specific client that push server sends
Message;
Unit 1102 is sent in second inquiry, inquires about specific answering for the inquiry request message received according to the 4th reception unit 1101
By the state of activation of client;
4th transmitting element 1103, is used for sending query response message to push server, and query response message includes the second inquiry
Send the state of activation of the application-specific client that unit 1102 inquires, so that push server is according to the application-specific visitor inquired
The state of activation of family end, updates the state of activation of the application-specific client of local record.
The terminal that the present embodiment provides is by receiving the inquiry request of the state of activation of the application-specific client that push server sends
Message, the state of activation of inquiry application-specific client, and return to push server, push server is according to the spy inquired
Determine the state of activation of applications client, update the state of activation of the application-specific client of local record, it can be ensured that Push Service
The accurate incoming terminal of message of device end.
The push server of the present embodiment offer and terminal, belong to same design with embodiment of the method, and those skilled in the art are permissible
It is well understood to, for convenience and simplicity of description, the push server of foregoing description and the specific works process of terminal are permissible
With reference to the corresponding process in preceding method embodiment, do not repeat them here.
Those skilled in the art are it can be understood that arrive, and device embodiment described above is only schematically, described list
The division of unit, is only a kind of logic function and divides, and actual can have other dividing mode when realizing.Such as, each function list
Unit can be integrated in a processing unit, it is also possible to is that unit is individually physically present, it is also possible to two or more are single
Unit is integrated in a unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ SFU software functional unit
Form realize.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be completed by hardware,
Can also instruct relevant hardware by program to complete, described program can be stored in a kind of computer-readable recording medium,
Storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all the spirit and principles in the present invention it
In, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.