Summary of the invention
In order to satisfy the difference registration demand of each applications client, the embodiment of the invention provides a kind of terminal applies client register method and system and equipment.Described technical scheme is as follows:
On the one hand, provide a kind of terminal applies client register method, described method comprises:
Terminal sends login request message first to push server, and to initiate the first registration of each applications client in described push server, described registration information first comprises the application identification information of each applications client correspondence on the described terminal;
Described terminal receives registration reply message first from described push server, described registration reply message first comprises that the application identification information of each applications client correspondence on the described terminal and described push server are the exceeding the time limit the time of each applications client appointment on the terminal, described push server is in the time of exceeding the time limit of each applications client appointment on the terminal, has two asynchronism(-nization)s of exceeding the time limit at least;
Described terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to described push server, sends heavy login request message to described push server respectively, to initiate the heavily registration of each applications client in described push server respectively.
On the other hand, also provide a kind of terminal applies client register method, described method comprises:
The login request message first that the push server receiving terminal sends, described registration information first comprises the application identification information of each applications client correspondence on the described terminal;
Described push server is that each applications client is specified the time of exceeding the time limit respectively on the described terminal, wherein at least two asynchronism(-nization)s of exceeding the time limit;
Described push server sends registration reply message first to described terminal, described registration reply message first comprises that the application identification information of each applications client correspondence on the described terminal and described push server are the exceeding the time limit the time of each applications client appointment on the terminal, so that described terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to described push server, send heavy login request message to described push server respectively;
Described push server receives the heavy login request message that described terminal sends, and upgrades the state of respective application client on the described terminal according to described heavy login request message.
On the other hand, also provide a kind of terminal, described terminal comprises:
First transmitting element, be used for sending login request message first to push server, to initiate the first registration of each applications client in described push server, described registration information first comprises the application identification information of each applications client correspondence on the described terminal;
First receiving element, be used for receiving registration reply message first from described push server, described registration reply message first comprises that the application identification information of each applications client correspondence on the terminal of the described first transmitting element request registration and described push server are the exceeding the time limit the time of each applications client appointment on the terminal, described push server is in the time of exceeding the time limit of each applications client appointment on the terminal, has two asynchronism(-nization)s of exceeding the time limit at least;
Heavy registering unit, being used for according to the push server that described first receiving element receives is the exceeding the time limit the time of each applications client appointment on the terminal, send heavy login request message to described push server respectively, to initiate of the heavily registration of each applications client respectively in described push server.
On the other hand, also provide a kind of push server, described push server comprises:
Second receiving element is used for the login request message first that receiving terminal sends, and described registration information first comprises the application identification information of each applications client correspondence on the described terminal;
Designating unit is used on the terminal of the application identification information correspondence that described second receiving element receives each applications client to specify the time of exceeding the time limit wherein at least two asynchronism(-nization)s of exceeding the time limit respectively;
Second transmitting element, be used for sending registration reply message first to described terminal, described registration reply message first comprises that the application identification information of each applications client correspondence on the terminal that described second receiving element receives and described designating unit are the exceeding the time limit the time of each applications client appointment on the terminal, so that described terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to described push server, send heavy login request message to described push server respectively;
First updating block is used to receive the heavy login request message that described terminal sends, and upgrades the state of respective application client on the described terminal according to described heavy login request message.
On the other hand, the invention provides a kind of terminal applies client state update method, comprising:
Push server is to the inquiry request message of the state of activation of described terminal transmission application-specific client, so that described terminal is inquired about the state of activation of described application-specific client according to described inquiry request message;
Described push server receives the query response message that described terminal sends, and described query response message comprises the state of activation of the described application-specific client that inquires;
Described push server is upgraded the state of activation of the described application-specific client of local record according to the state of activation of the described described application-specific client that inquires.
On the other hand, also provide a kind of terminal applies client state update method, having comprised:
The inquiry request message of the state of activation of the application-specific client that terminal reception push server sends;
Described terminal is inquired about the state of activation of described application-specific client according to described inquiry request message;
Described terminal sends query response message to described push server, described query response message comprises the state of activation of the described application-specific client that inquires, so that described push server according to the state of activation of the described described application-specific client that inquires, is upgraded the state of activation of the described application-specific client of local record.
On the other hand, also provide a kind of push server, having comprised:
The 3rd transmitting element is used for the inquiry request message to the state of activation of described terminal transmission application-specific client, so that described terminal is inquired about the state of activation of described application-specific client according to described inquiry request message;
The 3rd receiving element is used to receive the query response message that described terminal sends, and described query response message comprises the state of activation of the application-specific client of described the 3rd transmitting element request inquiry that inquires;
Second updating block is used for the state of activation of the described application-specific client that receives according to described the 3rd receiving element, upgrades the state of activation of the described application-specific client of local record.
On the other hand, also provide a kind of terminal, having comprised:
The 4th receiving element is used to receive the inquiry request message of the state of activation of the application-specific client that push server sends;
Second query unit is used for inquiring about according to the inquiry request message that described the 4th receiving element receives the state of activation of described application-specific client;
The 4th transmitting element, be used to send query response message to described push server, described query response message comprises the state of activation of the described application-specific client that described second query unit inquires, so that described push server according to the state of activation of the described described application-specific client that inquires, is upgraded the state of activation of the described application-specific client of local record.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is:
Send login request message first by terminal to push server, to initiate of the first registration of each applications client in push server, push server is that each applications client is specified at least two different exceeding the time limit the time on the terminal, terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to push server, initiate the heavily registration of each applications client respectively to push server, realized distributing different exceeding the time limit the time according to the characteristic of different application client, so that each applications client is initiated registration according to the needs of self to push server, satisfied the difference registration demand of each applications client, quality of service requirement for example, the user is specific needs etc., for the application that does not need frequent registration, the different times of exceeding the time limit can be saved Internet resources.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment 1
Referring to Fig. 1, present embodiment provides a kind of terminal applies client register method, and this method comprises:
S11: terminal sends login request message first to push server, and to initiate the first registration of each applications client in push server, registration information comprises the application identification information of each applications client correspondence on the terminal first;
S12: terminal receives registration reply message first from push server, registration reply message comprises that the application identification information of each applications client correspondence on the terminal and push server are the exceeding the time limit the time of each applications client appointment on the terminal first, push server is in the time of exceeding the time limit of each applications client appointment on the terminal, has two asynchronism(-nization)s of exceeding the time limit at least;
S13: terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to push server, sends heavy login request message to push server respectively, to initiate the heavily registration of each applications client in push server respectively.
Present embodiment sends login request message first by terminal to push server, to initiate of the first registration of each applications client in push server, push server is that each applications client is specified at least two different exceeding the time limit the time on the terminal, terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to push server, initiate the heavily registration of each applications client respectively to push server, realized distributing different exceeding the time limit the time according to the characteristic of different application client, so that each applications client is initiated registration according to the needs of self to push server, satisfied the difference registration demand of each applications client, quality of service requirement for example, the user is specific needs etc., for the application that does not need frequent registration, the different times of exceeding the time limit can be saved Internet resources.
Embodiment 2
Referring to Fig. 2, present embodiment provides a kind of terminal applies client register method, and this method comprises:
S21: the login request message first that the push server receiving terminal sends, registration information comprises the application identification information of each applications client correspondence on the terminal first;
S22: push server is that each applications client is specified the time of exceeding the time limit respectively on the terminal, wherein at least two asynchronism(-nization)s of exceeding the time limit;
S23: push server sends registration reply message first to terminal, registration reply message comprises that the application identification information of each applications client correspondence on the terminal and push server are the exceeding the time limit the time of each applications client appointment on the terminal first, so that terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to push server, send heavy login request message to push server respectively;
S24: the heavy login request message that the push server receiving terminal sends, according to the weight login request message state of respective application client on the new terminal more.
Present embodiment is that each applications client is specified at least two different exceeding the time limit the time on the terminal by push server, terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to push server, initiate the heavily registration of each applications client respectively to push server, push server is according to the heavy login request message state of respective application client on the new terminal more, realized distributing different exceeding the time limit the time according to the characteristic of different application client, so that each applications client is initiated registration according to the needs of self to push server, satisfied the difference registration demand of each applications client, quality of service requirement for example, the user is specific needs etc., for the application that does not need frequent registration, the different times of exceeding the time limit can be saved Internet resources.
Embodiment 3
Present embodiment provides a kind of terminal applies client process registration, and this method comprises:
101: there have N applications client and propelling movement (Push) client to carry out on the terminal to be related, and N 〉=2 are to realize receiving the service message that network equipment sends by the Push passage; Applications client sends login request message first to the Push client respectively;
Present embodiment is that example describes with 4 applications client, and 4 applications client are respectively WAP Markup Language client wml.ua, multimedia message client mms.ua, the facility management client dm.ua of locations services client loc.ua, wireless Internet services.
This step is the registration process first of Push client and applications client, or the start-up logging process.
The 102:Push client is initiated login request message first to the Push server, wherein carries the application identification information of each applications client correspondence;
Further, login request message also comprises on the terminal each applications client time reference value of exceeding the time limit accordingly first, so that push server is that each applications client is specified exceed the time limit the time (expire) on the terminal according to the time reference value of exceeding the time limit accordingly of each applications client on the terminal.
The 103:Push server is that each applications client is specified the time of exceeding the time limit respectively on the terminal, wherein at least two asynchronism(-nization)s of exceeding the time limit;
Concrete, push server is according to exceeding the time limit reference time information, be that each applications client is specified at least two different exceeding the time limit the time on the terminal, the reference time information that exceeds the time limit comprises: each applications client at least one parameter in time reference value, user signing contract information or the offered load of exceeding the time limit accordingly on the terminal.Wherein, user signing contract information, offered load are that push server is obtained.Need to prove that the time of exceeding the time limit of Push server-assignment can be different with the time reference value of exceeding the time limit of carrying in the login request message first.Generally, the time of exceeding the time limit of Push server-assignment is more than or equal to the time reference value of exceeding the time limit of carrying in the login request message first.For example, the time reference value of exceeding the time limit of carrying in the login request message first is 480 seconds, and the time of exceeding the time limit of Push server-assignment can be 1800 seconds.
The 104:Push server returns first, and registration reply message wherein carries the application identification information and Push server the exceeding the time limit the time for each applications client appointment of applications client to the Push client.
At this moment, the Push client has been obtained Push server exceeding the time limit the time accordingly for each applications client appointment.The Push client can buffer memory Push server exceeding the time limit the time for each applications client appointment accordingly.
The 105:Push client is returned first registration reply message and is given the application corresponding client.
Need to prove that this step can be carried out before or after step 102 or step 103 or step 104.
Push client and know that push server is after the time of exceeding the time limit accordingly of each applications client appointment, according to push server is the exceeding the time limit the time of each applications client appointment on the terminal, send heavy login request message to push server respectively, to initiate of the heavily registration of each applications client respectively in push server, so that the state of applications client can be known or upgrade to push server, in time provide the business of propelling movement for applications client.According to different triggering modes, following two kinds heavy registration processes are arranged specifically.
First kind, the Push client triggers heavy registration process according to the state of applications client, and referring to Fig. 3, this method comprises:
The 401:Push client in the time of exceeding the time limit accordingly of each applications client appointment, is made regular check on the state of applications client at the Push server;
Wherein, the state of applications client comprises: state of activation and deactivation status.If applications client is owing to make mistakes, crash, the user closes reasons such as applications client, does not continue to receive when sending to the service message of this applications client from the Push client, and then applications client is a deactivation status at this moment.
The Push client knows that the state of applications client has two kinds of methods at least.First method, whether the Push client can receive the message of its forwarding according to applications client, know the state of applications client, if applications client can be received the message that the Push client is transmitted, then applications client is a state of activation, otherwise if applications client can not be received the message that the Push client is transmitted, then applications client is a deactivation status.Second method, applications client are notified the Push client when state changes, when the Push client receives the notice of applications client state variation, can know the state of applications client.
402: become deactivation status if the Push client detects the state of a certain applications client, the Push client sends heavy login request message to the Push server, wherein carry deexcitation applications client application identification information and go registered tags information, with the state of the applications client of notice Push server update deexcitation;
Wherein, going registered tags information to be set to 0 by the time parameter that exceeds the time limit of applications client realizes, if the time parameter that exceeds the time limit of applications client is set to 0, then the state of this applications client of Push server update is a deactivation status, be that applications client no longer is registered to the Push server, no longer receive the Push client simultaneously its service message that provides is provided.
Further, the Push client can also be carried another label information (tag) in heavy login request message, promptly second label information is constant with the state of other applications client of notice Push server (i.e. applications client except that the deexcitation applications client of heavy login request message indication).This identifies certain applications client state and becomes deactivation status, second label information that other applications client states are constant can be determined by specific implementation, or server is prefabricated, when modes such as negotiation in advance realize, can not carry label information, any can realize that announcement server application-specific client goes to register and the implementation of keeping the registration of other applications client all within technical scheme is considered.
For example, carry following information :+g.oma.pusheventapp=" loc.ua; expire=0 " in the heavy login request message, tag=1000, represent that then the loc applications client becomes deactivation status, the Push server is deleted the log-on message of this applications client, and the state of other applications client is constant, continues to remain on the log-on message of Push server.
The 403:Push server is according to going registered tags information, and the state that upgrades the applications client of deexcitation is a deactivation status;
For the applications client of deexcitation, the Push server is the log-on message of the applications client of deletion deexcitation further, as register list etc.
Concrete, when the time parameter that exceeds the time limit of applications client is set to 0, the state of the applications client of Push server update deexcitation.
Further, second label information that the Push server can also carry according to heavy login request message keeps the state of other applications client constant.
The 404:Push server returns heavy registration reply message and gives the Push client.
Second kind, the Push client triggers heavy registration process according to the arrival situation of the time of exceeding the time limit of applications client, and referring to Fig. 4, this method comprises:
The 501:Push client is according to accordingly the exceed the time limit time of Push server for each applications client appointment, and whether the time of exceeding the time limit of making regular check on applications client arrives.
502: arrive if the Push client detects the time of exceeding the time limit of some or a plurality of applications client, and the applications client that the time of exceeding the time limit arrives is a state of activation, then the Push client sends heavy login request message to the Push server, wherein carries the application identification information of this applications client (time of promptly exceeding the time limit arrives and still be in the applications client of state of activation);
Further, wherein can also carry exceed the time limit the time (the expire parameter) of this applications client.
Wherein, this heavy login request message is to show that applications client is after the time of exceeding the time limit arrives, and applications client continues to keep to receive the registration message that sends to this applications client service message by Push server and Push client.
The 503:Push server upgrades this applications client state and continues as state of activation according to the application identification information of the applications client of heavy login request message indication.
The 504:Push server returns heavy registration reply message and gives the Push client.
Further, in time know the state of terminal in order to make push server, guarantee the accurate incoming terminal of message of push server end, after the terminal applies client is finished registration first at the Push server, the state of all right active inquiry application-specific client of push server specifically comprises:
Push server is to the inquiry request message of the state of activation of terminal transmission application-specific client, so that terminal is according to the state of activation of inquiry request message inquiry application-specific client; The query response message that the push server receiving terminal sends, query response message comprises the state of activation of the application-specific client that inquires; Push server is upgraded the state of activation of the application-specific client of local record according to the state of activation of the application-specific client that inquires.
Wherein, send to terminal in push server before the inquiry request message of state of activation of application-specific client, push server can also be determined the application-specific client according at least one parameter in user signing contract information, configuration information and the network state from all clients; If the time of exceeding the time limit of distributing for the application-specific client arrives, perhaps, if the service message that sends to the application-specific client is arranged, push server need to determine the state of activation of inquiry application-specific client.
Present embodiment sends login request message first by terminal to push server, to initiate of the first registration of each applications client in push server, push server is that each applications client is specified at least two different exceeding the time limit the time on the terminal, terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to push server, initiate the heavily registration of each applications client respectively to push server, realized distributing different exceeding the time limit the time according to the characteristic of different application client, the different demands of each applications client have been satisfied, quality of service requirement for example, the user is specific needs etc., better user experience is provided, for the application that does not need frequent registration, the different times of exceeding the time limit can be saved Internet resources.
Embodiment 4
Present embodiment provides a kind of terminal applies client register method, as push server is a kind of implementation that each applications client is specified at least two different times of exceeding the time limit on the described terminal, this method can be divided into groups applications client, and organize applications client distribution for each and exceed the time limit the time accordingly, this method comprises:
201: there have N applications client and propelling movement (Push) client to carry out on the terminal to be related, and N 〉=2 are to realize receiving the service message that network equipment sends by the Push passage; Applications client sends login request message first to the Push client respectively;
Present embodiment is that example describes with 4 applications client, and 4 applications client are respectively WAP Markup Language client wml.ua, multimedia message client mms.ua, the facility management client dm.ua of locations services client loc.ua, wireless Internet services
This step is the registration process first of Push client and applications client, or the start-up logging process.
The 202:Push client is initiated login request message first to the Push server, wherein carries the application identification information of each applications client;
Further, login request message also comprises on the terminal each applications client time reference value of exceeding the time limit accordingly first, so that push server is that each applications client is specified exceed the time limit the time (expire) on the terminal according to the time reference value of exceeding the time limit accordingly of each applications client on the terminal.
The 203:Push server divides into groups each applications client on the terminal, distinguishes the group id of each applications client on the designated terminal, and specifies the time of exceeding the time limit respectively for every group of applications client, and has the asynchronism(-nization) of exceeding the time limit of two groups of applications client at least;
Concrete, push server is according to exceeding the time limit reference time information, each applications client on the terminal is divided into groups, the group id of each applications client on the difference designated terminal, and specify the time of exceeding the time limit respectively for every group of applications client, and have the asynchronism(-nization) of exceeding the time limit of two groups of applications client at least, reference information comprises: each applications client at least one parameter in time reference value, user signing contract information or the offered load of exceeding the time limit accordingly on the terminal.Wherein, user signing contract information, offered load are that push server is obtained.Need to prove, the Push server for each set of dispense exceed the time limit the time can with the asynchronism(-nization) of exceeding the time limit of carrying in the login request message.Generally, the Push server for time of exceeding the time limit of each set of dispense more than or equal to exceeding the time limit the time of carrying in the login request message.For example, the time of exceeding the time limit of carrying in the login request message is 480 seconds, and the time of exceeding the time limit of Push server-assignment can be 1800 seconds.
The 204:Push server returns registration reply message first to the Push client, wherein carries the group id of the affiliated group of each applications client and exceeding the time limit the time of every group of correspondence;
For example, carry following information first in the registration reply message:
+g.oma.pusheventapp=″mms.ua?%x21?group1?%x21?expire=480,loc.ua?%x21?group1%x21?expire=480,dm.ua?%x21?group2?%x21?expire=3600,wml.ua?%x21?group?2?%x21expire=3600″
Above-mentioned information representation: applications client is divided into two groups, be respectively group group1 and group group2, comprise mms and loc applications client among the group group1, comprise dm and wml applications client among the group group2, the time of exceeding the time limit of group group1 is 480 seconds, and 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 grouping only is a kind of signal, can also have other compound modes during specific implementation.
The 205:Push client is returned first registration reply message and is given the application corresponding client.
Need to prove that this step can be carried out before or after step 202 or step 203 or step 204.
Push client and know that push server is respectively to organize after the time of exceeding the time limit accordingly of applications client distribution, need heavily register using client according to the time of exceeding the time limit of distributing, so that push server can be known the state of applications client, in time provide the business of propelling movement for applications client.
Push client and know that push server is respectively to organize after the time of exceeding the time limit accordingly of applications client appointment, according to push server is respectively to organize exceeding the time limit the time of applications client appointment on the terminal, send heavy login request message to push server respectively, to initiate of the heavily registration of each applications client respectively in push server, so that push server can be known the state of applications client, in time provide the business of propelling movement for applications client.According to different triggering modes, following two kinds heavy registration processes are arranged.
First kind, the Push client triggers heavy registration process according to the state of applications client, and referring to Fig. 5, this method comprises:
The 601:Push client is made regular check on the state of using client in the group in the time of exceeding the time limit accordingly that the Push server distributes for each group applications client;
Wherein, the state of applications client comprises: state of activation and deactivation status.If applications client owing to make mistakes, deadlock, user close reasons such as applications client, do not continue to receive when sending to the service message of this applications client from the Push client, then this moment, applications client was a deactivation status.
The Push client knows that the state of applications client has two kinds of methods at least.First method, whether the Push client can receive the message of its forwarding according to applications client, know the state of applications client, if applications client can be received the message that the Push client is transmitted, then applications client is a state of activation, otherwise if applications client can not be received the message that the Push client is transmitted, then applications client is a deactivation status.Second method, applications client are notified the Push client when state changes, when the Push client receives the notice of applications client state variation, can know the state of applications client.
602: become deactivation status if the Push client detects the state of a certain applications client, the Push client sends heavy login request message to the Push server, wherein carry deexcitation applications client application identification information and go registered tags information, with the state of the applications client of this deexcitation of notice Push server update;
Wherein, go registered tags information to be set to 0 and realize that if the time parameter that exceeds the time limit of applications client is set to 0, then the state of this applications client of Push server update is a deactivation status by the time parameter that exceeds the time limit of applications client.
Further, the Push client can also be carried another label information (tag) in heavy login request message, promptly second label information is constant with the state of other applications client in the notice Push server group (i.e. applications client the applications client of the deexcitation of indicating except that heavy login request message in the group).
For example, carry following information in the heavy login request message:
+g.oma.pusheventapp=″group?1%x21?expire=480,mms.ua?%x21?expire=0”tag=1000
Above-mentioned information representation: the mms applications client becomes deactivation status, and the state of organizing other applications client among the group1 under the mms is constant.
The 603:Push server is according to going registered tags information, and the state that upgrades the applications client of this deexcitation is a deactivation status;
For the applications client of deexcitation, the Push server is the log-on message of the applications client of deletion deexcitation further, as register list etc.
Concrete, when the time parameter that exceeds the time limit of applications client is set to 0, the state of the applications client of Push server update deexcitation.
Further, second label information that the Push server can also carry according to heavy login request message, the state of other applications client is constant in the maintenance group.
The 604:Push server returns heavy registration reply message and gives the Push client.
Second kind, the Push client triggers heavy registration process according to the arrival situation of the time of exceeding the time limit of applications client, and referring to Fig. 6, this method comprises:
Whether the 701:Push client is the exceeding the time limit the time accordingly of each group applications client appointment according to the Push server, make regular check on the time of exceeding the time limit of respectively organizing applications client to arrive.
702: arrive if the Push client detects the time of exceeding the time limit of a certain group of applications client, and having an applications client at least in the group that the time of exceeding the time limit arrives is state of activation, the Push client sends heavy login request message to the Push server, wherein carries the application identification information of this applications client (time of promptly exceeding the time limit arrives and still be in the applications client of state of activation); Further, wherein can also carry exceed the time limit the time (the expire parameter) of the applications client that is in state of activation in this group.
The 703:Push server upgrades this applications client state and continues as state of activation according to the application identification information of this applications client of heavy login request message indication.
Further, the time of exceeding the time limit that the Push server is indicated according to heavy login request message arrives and is in the application identification information of the applications client of state of activation, the state of the applications client that heavy login request message in this group is not indicated is updated to deactivation status, also can be further with its log-on message deletion.
The 704:Push server returns heavy registration reply message and gives the Push client.
Further, in time know the state of terminal in order to make push server, guarantee the accurate incoming terminal of message of push server end, after the terminal applies client is finished registration first at the Push server, the state of all right active inquiry application-specific client of push server specifically comprises:
Push server is to the inquiry request message of the state of activation of terminal transmission application-specific client, so that terminal is according to the state of activation of inquiry request message inquiry application-specific client; The query response message that the push server receiving terminal sends, query response message comprises the state of activation of the application-specific client that inquires; Push server is upgraded the state of activation of the application-specific client of local record according to the state of activation of the application-specific client that inquires.
Wherein, send to terminal in push server before the inquiry request message of state of activation of application-specific client, push server can also be determined the application-specific client according at least one parameter in user signing contract information, configuration information and the network state from all clients; If the time of exceeding the time limit of distributing for the application-specific client arrives, perhaps, if the service message that sends to the application-specific client is arranged, push server need to determine the state of activation of inquiry application-specific client.
Present embodiment sends login request message first by terminal to push server, to initiate of the first registration of each applications client in push server, push server is divided into groups each applications client on the terminal, for every group of applications client specified the time of exceeding the time limit respectively, and has the asynchronism(-nization) of exceeding the time limit of two groups of applications client at least, terminal is respectively to organize exceeding the time limit the time of applications client appointment on the terminal according to push server, initiate the heavily registration of each applications client respectively to push server, realized distributing different exceeding the time limit the time according to the characteristic of different application client, the different demands of each applications client have been satisfied, quality of service requirement for example, the user is specific needs etc., better user experience is provided, and for the application that does not need frequent registration, the different times of exceeding the time limit can be saved Internet resources.
Embodiment 5
Referring to Fig. 7, present embodiment provides a kind of terminal applies client state update method, and this method comprises:
S31: push server is to the inquiry request message of the state of activation of terminal transmission application-specific client, so that terminal is according to the state of activation of inquiry request message inquiry application-specific client;
S32: the query response message that the push server receiving terminal sends, query response message comprises the state of activation of the application-specific client that inquires;
S33: push server is upgraded the state of activation of the application-specific client of local record according to the state of activation of the application-specific client that inquires.
Referring to Fig. 8, present embodiment provides a kind of terminal applies client state update method, and this method comprises:
S41: the inquiry request message of the state of activation of the application-specific client that terminal reception push server sends;
S42: terminal is according to the state of activation of inquiry request message inquiry application-specific client;
S43: terminal sends query response message to push server, query response message comprises the state of activation of the application-specific client that inquires, so that push server according to the state of activation of the application-specific client that inquires, is upgraded the state of activation of the application-specific client of local record.
Referring to Fig. 9, present embodiment provides a kind of terminal applies client register method, and this method can be set separately the application-specific client by push server and exceed the time limit the time, and this method comprises:
301: there have N applications client and propelling movement (Push) client to carry out on the terminal to be related, and N 〉=2 are to realize receiving the service message that network equipment sends by the Push passage; Applications client sends login request message to the Push client respectively;
Present embodiment is that example describes with 4 applications client, and 4 applications client are respectively WAP Markup Language client wml.ua, multimedia message client mms.ua, the facility management client dm.ua of locations services client loc.ua, wireless Internet services.
This step is the registration process first of Push client and applications client, or the start-up logging process.
The 302:Push client is initiated login request message to the Push server, wherein carries the application identities letter of each applications client and thinks;
The 303:Push server distributes one first for all applications client and exceeds the time limit the time according to the application identification information of each applications client, so that applications client is initiated heavily registration to the Push server;
Further, the Push server is breathed out and can be distributed second to exceed the time limit the time for application-specific client wherein.Wherein, the application-specific client can be one or more in all applications client.In addition, the application-specific client can be the Push server according at least one parameter in the configuration information of the user signing contract information of client's application end on the terminal, Push server and the network state etc., determines the applications client on terminal.
The 304:Push server returns registration reply message and gives the Push client, wherein carries first and exceeds the time limit the time.
The 305:Push client is returned registration reply message and is given the application corresponding client, so that applications client is initiated heavily registration to the Push server;
Need to prove that this step can be carried out before or after step 302 or step 303 or step 304.
The 306:Push server need to determine whether the state of activation of inquiry application-specific client;
Concrete, if second time of exceeding the time limit of distributing for the application-specific client arrives, the Push server determines to need inquire about the state of activation of application-specific client; Perhaps, if the Push server has the service message that sends to the application-specific client, need can determine the state of activation of inquiry application-specific client.
307: when the Push server was determined to need the state of activation of inquiry application-specific client, the Push server sent inquiry request message, wherein carries the application identification information of application-specific client;
Wherein, inquiry request message can be a SIP OPTIONS message, SIP OPTIONS message is also carried label information except carrying the application identities of application-specific client, serves as the solicited message of inquiry application-specific client state of activation to indicate this SIP OPTIONS message.
The application identification information of the application-specific client that the 308:Push client is carried according to inquiry request message is inquired about the state of activation of this application-specific client;
The 309:Push client is returned query response message and is given the Push server, wherein carries the state of activation information of application-specific client;
The state of activation information of the application-specific client of 310:Push server update local record.
Present embodiment sends the inquiry request message of the state of activation of application-specific client to terminal by push server, the state of activation of terminal inquiry application-specific client, and return to push server, push server is according to the state of activation of the application-specific client that inquires, upgrade the state of activation of the application-specific client of local record, can guarantee the accurate incoming terminal of message of push server end.
Embodiment 6
Referring to Figure 10, present embodiment provides a kind of terminal, and this terminal comprises:
First transmitting element 801 is used for sending login request message first to push server, and to initiate the first registration of each applications client in push server, registration information comprises the application identification information of each applications client correspondence on the terminal first;
First receiving element 802, be used for receiving registration reply message first from push server, registration reply message comprises that the application identification information of each applications client correspondence on the terminal of first transmitting element, 801 request registration and push server are the exceeding the time limit the time of each applications client appointment on the terminal first, push server is in the time of exceeding the time limit of each applications client appointment on the terminal, has two asynchronism(-nization)s of exceeding the time limit at least;
Heavy registering unit 803, being used for according to the push server that first receiving element 802 receives is the exceeding the time limit the time of each applications client appointment on the terminal, send heavy login request message to push server respectively, to initiate of the heavily registration of each applications client respectively in push server.
Further, registration reply message also comprises the group id of organizing under each applications client first; Push server is that the time of exceeding the time limit of each applications client appointment that group id is identical on the terminal is identical.
Wherein, heavy registering unit 803 specifically is used for
If the time of exceeding the time limit of applications client arrives, terminal sends heavy login request message to push server, heavy login request message comprises the application identification information of the applications client that the time of exceeding the time limit arrives, and the applications client that arrives with the time of initiating to exceed the time limit is in the heavily registration of push server; Or,
If the time no show of exceeding the time limit of applications client, and the state that terminal detects the applications client of the time no show of exceeding the time limit becomes deactivation status, then terminal sends heavy login request message to push server, heavy login request message comprise deexcitation applications client application identification information and go registered tags information so that push server is a deactivation status according to removing the state of the applications client of registered tags information updating deexcitation.
Further, heavy login request message also comprises second label information, and the state that is used on the indicating terminal other applications client the applications client of the applications client that arrives except that the time of exceeding the time limit or deexcitation is constant.
Further, first receiving element 802 also is used to receive the inquiry request message of the state of activation of the application-specific client that push server sends;
Terminal also comprises query unit, is used for inquiring about according to the inquiry request message that first receiving element 802 receives the state of activation of application-specific client;
First transmitting element 801, also be used to send query response message to push server, query response message comprises the state of activation of the application-specific client that inquires, so that push server according to the state of activation of the application-specific client that inquires, is upgraded the state of activation of the application-specific client of local record.
The terminal that present embodiment provides is by sending login request message first to push server, to initiate of the first registration of each applications client in push server, push server is that each applications client is specified at least two different exceeding the time limit the time on the terminal, terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to push server, initiate the heavily registration of each applications client respectively to push server, realized distributing different exceeding the time limit the time according to the characteristic of different application client, so that each applications client is initiated registration according to the needs of self to push server, the different demands of each applications client have been satisfied, quality of service requirement for example, the user is specific needs etc., better user experience is provided, for the application that does not need frequent registration, the different times of exceeding the time limit can be saved Internet resources.
Embodiment 7
Referring to Figure 11, present embodiment provides a kind of push server, and this push server comprises:
Second receiving element 901 is used for the login request message first that receiving terminal sends, and registration information comprises the application identification information of each applications client correspondence on the terminal first;
Designating unit 902 is used on the terminal of the application identification information correspondence that second receiving element 901 receives each applications client to specify the time of exceeding the time limit wherein at least two asynchronism(-nization)s of exceeding the time limit respectively;
Second transmitting element 903, be used for sending registration reply message first to terminal, registration reply message comprises the application identification information of each applications client correspondence on the terminal that second receiving element 901 receives and designating unit 902 time of exceeding the time limit for each applications client appointment on the terminal first, so that terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to push server, send heavy login request message to push server respectively;
First updating block 904 is used for the heavy login request message that receiving terminal sends, according to the weight login request message state of respective application client on the new terminal more.
Further, login request message also comprises on the terminal each applications client time reference value of exceeding the time limit accordingly first;
Designating unit 902, also be used for according to exceeding the time limit reference time information, specify the time of exceeding the time limit respectively for each applications client on the terminal, the reference time information that exceeds the time limit comprises: each applications client at least one parameter in time reference value, user signing contract information or the offered load of exceeding the time limit accordingly on the terminal.
Wherein, designating unit 902 specifically is used for
With each applications client grouping on the terminal, distinguish the group id of each applications client on the designated terminal, and specify the time of exceeding the time limit respectively, and have the asynchronism(-nization) of exceeding the time limit of two groups of applications client at least for every group of applications client.
Wherein, first updating block 904 specifically is used for:
The heavy login request message that receiving terminal sends, heavy login request message comprises the application identification information of the applications client that the time of exceeding the time limit arrives, the state that upgrades the applications client of the time arrival of exceeding the time limit is a state of activation;
Perhaps,
The heavy login request message that receiving terminal sends, heavy login request message comprise deexcitation applications client application identification information with go registered tags information, be deactivation status according to the state of the applications client of going registered tags information updating deexcitation.
Further, heavy login request message also comprises second label information, and the state that is used on the indicating terminal other applications client the applications client of the applications client that arrives except that the time of exceeding the time limit or deexcitation is constant.
The push server that present embodiment provides is by specifying at least two different times of exceeding the time limit for each applications client on the terminal, terminal is the exceeding the time limit the time of each applications client appointment on the terminal according to push server, initiate the heavily registration of each applications client respectively to push server, push server is according to the heavy login request message state of respective application client on the new terminal more, realized distributing different exceeding the time limit the time according to the characteristic of different application client, the different demands of each applications client have been satisfied, quality of service requirement for example, the user is specific needs etc., better user experience is provided, for the application that does not need frequent registration, the different times of exceeding the time limit can be saved Internet resources.
Embodiment 8
Referring to Figure 12, present embodiment provides a kind of push server, and push server comprises:
The 3rd transmitting element 1001 is used for the inquiry request message to the state of activation of terminal transmission application-specific client, so that terminal is according to the state of activation of inquiry request message inquiry application-specific client;
The 3rd receiving element 1002 is used for the query response message that receiving terminal sends, and query response message comprises the state of activation of the application-specific client of the 3rd transmitting element 1001 request inquiries that inquire;
Second updating block 1003 is used for the state of activation of the application-specific client that receives according to the 3rd receiving element 1002, upgrades the state of activation of the application-specific client of local record.
Further, push server also comprises determining unit, be used for before the inquiry request message of the state of activation that sends the application-specific client to terminal, according at least one parameter in user signing contract information, configuration information and the network state of client's application end on the terminal, on terminal, determine the application-specific client the applications client; If the time of exceeding the time limit of distributing for the application-specific client arrives, perhaps, if the service message that sends to the application-specific client is arranged, push server need to determine the state of activation of inquiry application-specific client.
The push server that present embodiment provides is by sending the inquiry request message of the state of activation of application-specific client to terminal, the state of activation of terminal inquiry application-specific client, and return to push server, push server is according to the state of activation of the application-specific client that inquires, upgrade the state of activation of the application-specific client of local record, can guarantee the accurate incoming terminal of message of push server end.
Embodiment 9
Referring to Figure 13, present embodiment provides a kind of terminal, and terminal comprises:
The 4th receiving element 1101 is used to receive the inquiry request message of the state of activation of the application-specific client that push server sends;
Unit 1102 is sent in second inquiry, and the inquiry request message that is used for receiving according to the 4th receiving element 1101 is inquired about the state of activation of application-specific client;
The 4th transmitting element 1103, be used to send query response message to push server, query response message comprises that second inquiry send the state of activation of the application-specific client that unit 1102 inquires, so that push server according to the state of activation of the application-specific client that inquires, is upgraded the state of activation of the application-specific client of local record.
The terminal that present embodiment provides is by the inquiry request message of the state of activation of the application-specific client of reception push server transmission, the state of activation of inquiry application-specific client, and return to push server, push server is according to the state of activation of the application-specific client that inquires, upgrade the state of activation of the application-specific client of local record, can guarantee the accurate incoming terminal of message of push server end.
Push server that present embodiment provides and terminal, belong to same design with method embodiment, those skilled in the art can be well understood to, be the convenience described and succinct, the concrete course of work of the push server of foregoing description and terminal, can not repeat them here with reference to the corresponding process among the preceding method embodiment.
Those skilled in the art can be well understood to, and device embodiment described above only is schematically, and the division of described unit only is that a kind of logic function is divided, and during actual the realization other dividing mode can be arranged.For example, each functional unit can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in a unit in two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, also can adopt the form of SFU software functional unit to realize.
The all or part of step that one of ordinary skill in the art will appreciate that realization the foregoing description can be finished by hardware, also can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.