CN103914335A - Invoking method, equipment and system for background service - Google Patents

Invoking method, equipment and system for background service Download PDF

Info

Publication number
CN103914335A
CN103914335A CN201310003631.4A CN201310003631A CN103914335A CN 103914335 A CN103914335 A CN 103914335A CN 201310003631 A CN201310003631 A CN 201310003631A CN 103914335 A CN103914335 A CN 103914335A
Authority
CN
China
Prior art keywords
background service
service unit
version information
call
permission message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310003631.4A
Other languages
Chinese (zh)
Other versions
CN103914335B (en
Inventor
刘霖
俞小良
徐志德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201310003631.4A priority Critical patent/CN103914335B/en
Publication of CN103914335A publication Critical patent/CN103914335A/en
Application granted granted Critical
Publication of CN103914335B publication Critical patent/CN103914335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an invoking method, equipment and a system for a background service. The method comprises the main contents of receiving a registration identifier of a second background service unit broadcasted by an application program and invoking request information of edition information of the second background service unit through a first background service unit, wherein a binding relationship is formed between the registration identifier of the second background service unit and the application program; when the received registration identifier of the second background service unit is the same as the a registration identifier taken by the second background service unit, and the edition information of the second background service unit is higher than the received edition information of the second background service unit, returning to permit the invoking information so that the application program can share the background service with a higher edition. Therefore, the problem that a background service between the application program and a background service unit can not be updated in the prior art can be prevented, a binding relationship is formed between the application program and the background service unit, the condition that a single background service is bad in operation performance can be solved, the operation performance between the application program and the background service can be improved, and the operation efficiency of the application program can be further improved.

Description

A kind of call method, equipment and system of background service
Technical field
The present invention relates to terminal technology field, relate in particular to call method, equipment and the system of a kind of application program based on terminal to background service.
Background technology
Along with the fast development of terminal technology, the application of intelligent terminal in society presents the universal trend using.Taking the ios system of Apple company as representative, various intelligent terminal operating system is released one after another, prove from development trend in the last few years, in intelligent terminal operating system, the quality and quantity of application program has directly determined the success or failure that intelligent terminal operating system is survived on market.Wherein, comparatively successfully surely belong to the ios system of Apple company and the Android system of Google company, in these two kinds of operating systems, the quantity of application program has reached the magnitude of hundreds of thousands.
When emerging in an endless stream appears in application program on intelligent terminal trend, a kind of " application of application " is also developed rapidly, itself is not used (not being real application program in other words) by user this " application of application ", but at running background, be the one " background service " of application program.This application provides service by communication mechanism for other application programs of moving in terminal, and wherein, the service providing comprises: network connection service, location information service, speech processes service, ad distribution service and cloud service etc.On intelligent terminal, there is this application program with " background service " ability, made different intelligent terminals can share these services, the system resource of having saved intelligent terminal.
At present, the numerous and confused application platform with shared background service of issuing of many companies, other developers or the application development company application platform with shared background service based on issuing, researches and develops the application product on intelligent terminal that is applied in of oneself.For this application product that calls background service, this product can be divided into following two classes from the angle of calling background service:
The first kind, that an independently background service application platform is installed on intelligent terminal, this background service application platform has own independent operation process, but the process of moving with the application program operating in this background service application is not same process, application program can only communicate by striding course, calls the associated process of this background service application.
For this background service application product, although " background service application platform " can ensure the real-time update of version,, there is the process of independently moving, will in the time of operation, use more system resource, cause the waste of system resource; And detached process operation is easily manslaughtered by antivirus software, causes this background service application platform normally to move, and then make also cannot normally use based on the application program of this background service application platform operation.
, there is Equations of The Second Kind in the problem existing for the first kind, be background service application platform is packaged in the operation process of the application program based on the operation of this background service application platform together with.
Although reduced like this system consumption, solve the problem that the first kind exists, but, because background service application platform is integrated in different application programs, the version of background service application platform cannot be upgraded, will cause background service application platform cannot meet the demand of application program operation like this.
In sum, in the prior art, between background service application platform and the application program based on this background service application platform, there is the problem that system resource operation is more and background service application platform renewal technology is limited, cause the poor-performing moving between background service application platform and application program.
Summary of the invention
The embodiment of the present invention provides a kind of call method, equipment and system of background service, between prior art background service application platform and the application program based on this background service application platform, exist system resource to move more and background service application platform renewal technology is limited for solving, cause the problem of the poor-performing moving between background service application platform and application program.
A call method for background service, comprising:
The first background service unit receives the call request message that application program sends, wherein, the sign-on ID of the second background service unit and the version number information of the second background service unit with this application program with binding relationship in described call request message, have been comprised;
The first background service unit is identical with self-contained sign-on ID at the sign-on ID of determining the second background service unit comprising in the described call request message receiving, and the version information of self is during higher than the version information of described the second background service unit, return to permission message call, wherein, the version information that has comprised self in described permission message call.
A call method for background service, comprising:
Application program, in the time starting, sends call request message, wherein, has comprised the sign-on ID of the second background service unit and the version information of the second background service unit with this application program with binding relationship in described call request message;
Application program receive except the second background service unit and identify with described the second background service unit (ONU) registration that other identical the 3rd background service unit return permission message call, and call the process of the 3rd background service unit comprising in this permission message call, wherein, the version information that has comprised the 3rd background service unit in described permission message call.
A kind of background service unit, comprising:
Receiver module, the call request message sending for receiving application program, wherein, has comprised the sign-on ID of the second background service unit and the version information of the second background service unit with this application program with binding relationship in described call request message;
Broadcast calling module, the sign-on ID that is used for the second background service unit comprising in definite described call request message receiving is identical with self-contained sign-on ID, and the version information of self is during higher than the version information of described the second background service unit, return to permission message call, wherein, the version information that has comprised self in described permission message call.
A kind of application program, comprising:
Broadcast module, for send call request message in the time starting, wherein, has comprised the sign-on ID of the second background service unit and the version number information of the second background service unit with this application program with binding relationship in described call request message;
Calling module, for the permission message call that receives except the second background service unit and other three background service unit identical with the sign-on ID of described the second background service unit return, and call the process of the 3rd background service unit comprising in this permission message call, wherein, the version information that has comprised the 3rd background service unit in described permission message call.
A calling system for background service, comprising:
Application program, for sending and comprised the call request message with this application program with the sign-on ID of the second background service unit and the version information of the second background service unit of binding relationship in the time starting, and the permission message call of version information of the first background service unit that received comprising of the first background service cell broadcast, call the process of the first background service unit comprising in this permission message call;
The first background service unit, for receiving the call request message with this application program with the sign-on ID of the second background service unit and the version information of the second background service unit of binding relationship that comprised of application program broadcast, identical with self-contained sign-on ID at the sign-on ID of determining the second background service unit comprising in the described call request message receiving, and the version information of self during higher than the version information of described the second background service unit, returns to the permission message call of the version information that has comprised the first background service unit.
Beneficial effect of the present invention is as follows:
The embodiment of the present invention receives the call request message with this application program with the sign-on ID of the second background service unit and the version information of the second background service unit of binding relationship that comprised of application program broadcast by the first background service unit, sign-on ID in the second background service unit receiving is identical with self-contained sign-on ID, and the version information of self is during higher than the version information of the second background service unit receiving, return to permission message call, make the application program can the higher background service of shared vision, not only avoid having in prior art the problem that between the application program of binding relationship and background service unit, background service cannot upgrade, also solved and used single background service to occur the situation that runnability is poor, improve the runnability between application program and background service, further improve the operational efficiency of application program.
Brief description of the drawings
Fig. 1 is the process flow diagram of the call method of a kind of background service of the embodiment of the present invention one;
Fig. 2 is the process flow diagram of the call method of a kind of background service of the embodiment of the present invention two;
Fig. 3 is the structural representation of a kind of background service unit of the embodiment of the present invention three;
Fig. 4 is the structural representation of a kind of application program of the embodiment of the present invention four;
Fig. 5 is the structural representation of the calling system of a kind of background service of the embodiment of the present invention five.
Embodiment
In order to realize object of the present invention, the embodiment of the present invention provides a kind of call method of background service, equipment and system, receive the call request message with this application program with the sign-on ID of the second background service unit and the version information of the second background service unit of binding relationship that comprised of application program broadcast by the first background service unit, sign-on ID in the second background service unit receiving is identical with self-contained sign-on ID, and the version information of self is during higher than the version information of the second background service unit receiving, return to permission message call, make the application program can the higher background service of shared vision, not only avoid having in prior art the problem that between the application program of binding relationship and background service unit, background service cannot upgrade, also solved and used single background service to occur the situation that runnability is poor, improve the runnability between application program and background service, further improve the operational efficiency of application program.
Below in conjunction with Figure of description, each embodiment of the present invention is described in detail.
Embodiment mono-:
As shown in Figure 1, be the process flow diagram of the call method of a kind of background service of the embodiment of the present invention one, described method comprises:
Step 101: the first background service unit receives the call request message that application program sends.
Wherein, the sign-on ID of the second background service unit and the version number information of the second background service unit with this application program with binding relationship in described call request message, have been comprised.
In step 101, because the background service of each application program binding can be different, also can be identical; In the time that the background service of different application program binding is identical, when these application programs are registered in terminal, the sign-on ID of background service registration is identical.That is to say, whether identical the background service that just can judge different application binding according to sign-on ID is.
In the time that the background service of different application program binding is identical, the version information of the background service of different application binding can be identical, also can be different, bind in the different application of same background service unit, the version information of the background service of some application program binding is higher, and the version information of the background service of some application program binding is lower.
For example: in intelligent terminal, comprised application A, application program B, application program C and application program D, the background service with application A with binding relationship is that sign-on ID is the background service that a, version information are v1; The background service with application program B with binding relationship is that sign-on ID is the background service that a, version information are v2; The background service with application program C with binding relationship is that sign-on ID is the background service that a, version information are v3; The background service with application program D with binding relationship is that sign-on ID is the background service that a, version information are v4; As can be seen here, but the application A comprising in intelligent terminal, application program B, application program C and application program D have the different background service of identical sign-on ID a version information.
More preferably, application program can adopt the mode of broadcast in the time sending call request message, can make so more background service unit receive this message call.
Step 102: the first background service judges that whether the sign-on ID of the second background service comprising in the described call request message receiving is identical with self-contained sign-on ID, if identical, performs step 103; Otherwise, this call request message of refusal response.
Particularly, in step 102, in the time that the first background service unit receives the call request message of application program transmission, need to determine that whether the sign-on ID of the second background service unit comprising in the described call request message that receive is identical with self-contained sign-on ID, and the version information of self is whether higher than the version information of described the second background service unit.
Particularly, the first background service unit reads the sign-on ID of the second background service unit from described call request message, and this sign-on ID and self-contained sign-on ID are compared, determine that whether the sign-on ID of the second background service unit that application program need to call is identical with the sign-on ID of self.
For example: application A has sent call request message, in this call request message, comprise the sign-on ID a with application A with the background service unit of binding relationship, in the time that the background service unit that has a binding relationship with application program C receives this call request message, this background service unit reads the sign-on ID a with application A with the background service unit of binding relationship from this call request message, and the sign-on ID a reading and the sign-on ID of self are compared, when comparative result is while being identical, execution step 103; Otherwise the background service unit refusal with application program C with binding relationship responds the call request message receiving.
Step 103: the first background service unit compares the version information of the second background service receiving and the version information of self, if the version information of self during higher than the version information of the second background service unit receiving, execution step 104; Otherwise, this call request message of refusal response.
Particularly, in step 103, the first background service unit is in the time that the sign-on ID of determining self-contained sign-on ID and the second background service unit receiving is identical, determine the second background service unit that application program need to be called and self be of a sort background service unit, from the call request message receiving, read the version information of the second background service unit, and compare with the version information of self, when comparative result is that self version information is during higher than the version information of the second background service receiving, execution step 104, otherwise, this call request message of refusal response.
It should be noted that, the height that judges two background service unit version informations can judge by the version number information of background service unit, the version number information of general same class background service belongs to the information of same form, but is also not limited to adopt described mode, does not limit here.
As can be seen here, application program is in the time starting background service unit, in background service unit set from terminal, select same class and higher the starting of version information, so both met the demand of version updating, by making to have the common higher background service of same version that uses of multiple application programs that calls same class background service feature, save system resource.
More preferably, after the version information of the version information that background service is self at comparative result higher than the second background service unit receiving, before returning to permission message call, described method also comprises:
First, the first background service unit judges whether to receive the permission message call that other the 3rd background service unit return in the first duration of setting.
The version information that has comprised the 3rd background service unit in described permission message call.
Wherein, the first duration of described setting refers to that the first background service unit obtains the time of other background service unit version number information, can arrange as required, also can arrange according to experiment, does not limit here.
Particularly, the first background service unit is in the version number information of determining self during higher than the version number information of the second background service unit receiving, also need to determine whether the version information of self is the highest version information, therefore, receive the permission message call that other the 3rd background service unit return setting in duration, whether the version number information that judges self is higher than the version information of the 3rd background service unit.
It should be noted that, the permission message call that other the 3rd background service unit that the first background service receives return is that other the 3rd background service unit send by the mode of broadcast.
Wherein, a more than background service unit, described other the 3rd background service unit, " first ", " second " and " the 3rd " they are only in order to distinguish different background service unit, there is no what particular meaning, here and be not used in restriction.
Secondly, when judged result is receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, the first background service unit compares the version information of the 3rd background service receiving and the version information of self, and during higher than self version information, return to refusal response message at the version information of determining the 3rd background service unit that receives; , carry out and return to the operation that allows message call during not higher than self version information at the version information of determining the 3rd background service unit that receives;
When judged result is that do not receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, the first background service unit is carried out and returned to the operation that allows message call.
Step 104: the first background service unit returns to permission message call to application program.
Wherein, the version information that has comprised the first background service unit in described permission message call.
By the scheme of the embodiment of the present invention one, the first background service unit receives the call request message with this application program with the sign-on ID of the second background service unit and the version information of the second background service unit of binding relationship that comprised of application program broadcast, sign-on ID in the second background service unit receiving is identical with self-contained sign-on ID, and the version information of self is during higher than the version information of the second background service unit receiving, return to permission message call, make the application program can the higher background service of shared vision, not only avoid having in prior art the problem that between the application program of binding relationship and background service unit, background service cannot upgrade, also solved and used single background service to occur the situation that runnability is poor, improve the runnability between application program and background service, further improve the operational efficiency of application program.
Embodiment bis-:
As shown in Figure 2, be the process flow diagram of the call method of a kind of background service of the embodiment of the present invention two, the embodiment of the present invention two is and the embodiment of the method for embodiment mono-under same design that described method comprises:
Step 201: application program, in the time starting, sends call request message.
Wherein, the sign-on ID of the second background service unit and the version number information of the second background service unit with this application program with binding relationship in described call request message, have been comprised
In step 201, in the time that application program is prepared to start, adopt the mode of broadcast to send call request message, the sign-on ID of the background service unit that the background service unit set in notification terminal need to call and with the version number information of background service unit self with binding relationship.
Step 202: application program judges whether receive except the second background service unit in the second duration of setting and permission message call that other three background service unit identical with the sign-on ID of described the second background service unit return, if so, perform step 203; Otherwise, execution step 204.
Wherein, the second duration of described setting refers to the maximum wait time that application call background service is required, can determine as required, can also rule of thumb obtain, and does not limit here.
In step 202, wait for by application program the second duration of setting, determine whether to exist other high the 3rd background service unit of version information than the second background service unit, wherein, other the 3rd background service unit return and allow the mode of message call to realize by the mode of the embodiment of the present invention one.
Particularly, when judged result is to receive the permission message call that other background service unit except the second background service unit return in the second duration of setting, perform step 203;
When judged result is not receive the permission message call that other background service unit except the second background service unit return in the second duration of setting, perform step 204.
Step 203: application program receives except the second background service unit and the permission message call of other the three background service cell broadcast identical with the sign-on ID of described the second background service unit, and call the process of the 3rd background service unit comprising in this permission message call.
Particularly, in step 203, described application program receives except the second background service unit and the permission message call of other the three background service cell broadcast identical with the sign-on ID of described the second background service unit, specifically comprises:
Application program receives multiple except the second background service unit and the permission message call that returns of other three background service unit identical with the sign-on ID of described the second background service unit in the 3rd duration of setting, wherein, the version information that has comprised the 3rd background service unit in each permission message call.
Wherein, the 3rd duration of described setting refers in application program a period of time after sending message call and receives and return to the maximum duration that allows message call, can determine as required, also can obtain according to experiment, does not limit here.
It should be noted that, other that relate in the embodiment of the present invention the 3rd background service unit has comprised the first background service unit in the embodiment of the present invention one.
More preferably, application program receive multiple except the second background service unit and after the permission message call that returns of other the 3rd background service unit identical with the sign-on ID of described the second background service unit, before calling the process that allows the 3rd background service unit comprising in message call, described method also comprises:
First, application program compares the version information of the 3rd background service unit comprising in the multiple permission message calls that receive.
Secondly, application program is selected wherein the 3rd the highest background service unit of version information.
Particularly, described in call the background service unit process comprising in this permission message call, specifically comprise:
The process of the 3rd background service unit that application call is selected.
Step 204: the process of application call the second background service unit.
By the scheme of the embodiment of the present invention two, application program sends and has comprised the call request message with this application program with the sign-on ID of the second background service unit and the version information of the second background service unit of binding relationship in the time starting, receive except the second background service unit and other three background service unit identical with the sign-on ID of described the second background service unit return permission message call, and call the process of the 3rd background service unit comprising in this permission message call, make like this application program in the time that terminal possesses with other background service unit that sign-on ID is identical and version information is higher of the second background service unit, call other background service unit, in the time that terminal does not possess with other background service unit that sign-on ID is identical and version information is higher of the second background service unit, call the second background service but forever, realize the dirigibility of application call background service unit, improved and called efficiency, saved system resource.
Embodiment tri-:
As shown in Figure 3, be the structural representation of a kind of background service unit of the embodiment of the present invention three, described background service unit comprises: receiver module 11 and broadcast calling module 12, wherein:
Receiver module 11, the call request message sending for receiving application program, wherein, has comprised the sign-on ID of the second background service and the version number information of the second background service with this application program with binding relationship in described call request message.
Broadcast calling module 12, the sign-on ID that is used for the second background service unit comprising in definite described call request message receiving is identical with self-contained sign-on ID, and the version information of self is during higher than the version information of described the second background service unit, return to permission message call, wherein, the version number information that has comprised self in described permission message call.
Described broadcast calling module 12, whether the sign-on ID of the second background service unit comprising in the described call request message receiving specifically for judgement is identical with self-contained sign-on ID, also when being identical in judged result, the version number information of the second background service unit receiving and the version number information of self are compared.
More preferably, described background service also comprises: judge module 13, wherein:
Judge module 13, the sign-on ID that is used for the second background service unit comprising in definite described call request message receiving is identical with self-contained sign-on ID, and after the version information of the version information of self higher than described the second background service unit, before returning to permission message call, in the first duration of setting, judge whether to receive the permission message call that other the 3rd background service unit return;
When judged result is receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, the version information of the 3rd background service unit receiving and the version information of self are compared, and during higher than self version information, return to refusal response message at the version information of determining the 3rd background service unit that receives; During not higher than self version information, trigger broadcast calling module at the version information of determining the 3rd background service unit that receives;
When judged result is, do not receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, to trigger broadcast calling module.
Wherein, the permission message call that other that receive described in the 3rd background service unit returns is that other rear the 3rd service units send by the mode of broadcast.
It should be noted that, the background service unit described in the embodiment of the present invention three can be both the first background service unit, can be also the second background service unit, can also be other the 3rd background service unit, was not specifically limited here.
Embodiment tetra-:
As shown in Figure 4, be the structural representation of a kind of application program of the embodiment of the present invention four, described application program comprises: broadcast module 21 and calling module 22, wherein:
Broadcast module 21, for send call request message in the time starting, wherein, has comprised the sign-on ID of the second background service unit and the version number information of the second background service unit with this application program with binding relationship in described call request message.
Calling module 22, for the permission message call that receives except the second background service unit and other three background service unit identical with the sign-on ID of described the second background service unit return, and call the process of the 3rd background service unit comprising in this permission message call, wherein, the version information that has comprised the 3rd background service unit in described permission message call.
More preferably, described application program also comprises: judge module 23, wherein:
Judge module 23, for after sending call request message, before calling the process of the 3rd background service unit comprising in this permission message call, in the second duration of setting, judge whether to receive except the second background service unit and permission message call that other three background service unit identical with the sign-on ID of described the second background service unit return;
When judged result is can receive except the second background service unit and permission message call that other three background service unit identical with the sign-on ID of described the second background service unit return in the second duration of setting, trigger calling module;
When judged result is not receive except the second background service unit and permission message call that other three background service unit identical with the sign-on ID of described the second background service unit return in the second duration of setting, call the process of the second background service unit.
More preferably, described application program also comprises: select module 24, wherein:
Select module 24, for receive multiple except the second background service unit and after the permission message call that returns of other the 3rd background service unit identical with the sign-on ID of described the second background service unit, before calling the process that allows the background service unit comprising in message call, the version information of the 3rd background service unit comprising in the multiple permission message calls that receive is compared, and select wherein the 3rd the highest background service unit of version information;
Described calling module 22, multiple except the second background service unit and the permission message call that returns of other three background service unit identical with the sign-on ID of described the second background service unit specifically for receiving in the 3rd duration of setting, and call the process of the 3rd background service unit of selecting, wherein, the version information that has comprised the 3rd background service unit in each permission message call.
Embodiment five:
As shown in Figure 5, be the structural representation of the calling system of a kind of background service of the embodiment of the present invention five, described system comprises: application program 31 and the first background service unit 32, wherein:
Application program 31, for sending and comprised the call request message with this application program with the sign-on ID of the second background service unit and the version information of the second background service unit of binding relationship in the time starting, and the permission message call of version information of the first background service unit that received comprising of the first background service cell broadcast, call the process of the first background service unit comprising in this permission message call.
The first background service unit 32, for receiving the call request message with this application program with the sign-on ID of the second background service unit and the version information of the second background service unit of binding relationship that comprised of application program broadcast, identical with self-contained sign-on ID at the sign-on ID of determining the second background service unit comprising in the described call request message receiving, and the version information of self during higher than the version information of described the second background service unit, returns to the permission message call of the version information that has comprised the first background service unit.
Particularly, described the first background service unit 32, specifically for identical with self-contained sign-on ID at the sign-on ID of determining the second background service unit comprising in the described call request message receiving, and the version information of self during higher than the version information of described the second background service unit after, before returning to permission message call, judge in the first duration of setting whether receive the permission message call that other the 3rd background service unit return;
When judged result is receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, the version information of the 3rd background service unit receiving and the version information of self are compared, and during higher than self version information, return to refusal response message at the version information of determining the 3rd background service unit that receives; , carry out and return to the operation that allows message call during not higher than self version information at the version information of determining the 3rd background service unit that receives;
When judged result is, do not receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, to carry out and return to the operation that allows message call.
Described application program 31, specifically for after broadcast call request message, before calling the process of the first background service unit comprising in this permission message call, in the second duration of setting, judge whether to receive the permission message call that the first background service unit returns;
When judged result is to receive the permission message call that the first background service unit returns in the second duration of setting, carry out the process of calling the first background service unit comprising in the permission message call the first background service unit of receiving returning;
When judged result is can not receive the permission message call that the first background service unit returns in the second duration of setting, call the process of the second background service unit.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (15)

1. a call method for background service, is characterized in that, comprising:
The first background service unit receives the call request message that application program sends, and wherein, has comprised the sign-on ID of the second background service unit and the version information of the second background service unit with this application program with binding relationship in described call request message;
The first background service unit is identical with self-contained sign-on ID at the sign-on ID of determining the second background service unit comprising in the described call request message receiving, and the version information of self is during higher than the version information of described the second background service unit, return to permission message call, wherein, the version information that has comprised the first background service unit in described permission message call.
2. the method for claim 1, is characterized in that, described the first background service unit is after determining self the version information version information higher than the second background service unit receiving, and before returning and allowing message call, described method also comprises:
The first background service unit judges whether to receive the permission message call that other the 3rd background service unit return in the first duration of setting;
When judged result is receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, the first background service unit compares the version information of the 3rd background service unit receiving and the version information of self, and during higher than self version information, return to refusal response message at the version information of determining the 3rd background service unit that receives; , carry out and return to the operation that allows message call during not higher than self version information at the version information of determining the 3rd background service unit that receives;
When judged result is, do not receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, to carry out and return to the operation that allows message call.
3. the method for claim 1, is characterized in that, the permission message call that other the 3rd background service unit that described the first background service unit receives return is that other the 3rd background service unit send by the mode of broadcast.
4. a call method for background service, is characterized in that, comprising:
Application program, in the time starting, sends call request message, wherein, has comprised the sign-on ID of the second background service unit and the version information of the second background service unit with this application program with binding relationship in described call request message;
Application program receive except the second background service unit and identify with described the second background service unit (ONU) registration that other identical the 3rd background service unit return permission message call, and call the process of the 3rd background service unit comprising in this permission message call, wherein, the version information that has comprised the 3rd background service unit in described permission message call.
5. method as claimed in claim 4, is characterized in that, described application program is after sending call request message, and before calling the process of the 3rd background service unit comprising in this permission message call, described method also comprises:
The permission message call that application program judges whether to receive except the second background service unit in the second duration of setting and other three background service unit identical with the sign-on ID of described the second background service unit return;
When judged result is to receive except the second background service unit and permission message call that other three background service unit identical with the sign-on ID of described the second background service unit return in the second duration of setting, carry out the process of calling the 3rd background service unit comprising in the described permission message call receiving;
When judged result is not receive except the second background service unit and permission message call that other three background service unit identical with the sign-on ID of described the second background service unit return in the second duration of setting, call the process of the second background service unit.
6. method as claimed in claim 4, it is characterized in that, described application program receives except the second background service unit and the permission message call of other the three background service cell broadcast identical with the sign-on ID of described the second background service unit, specifically comprises:
Application program receives multiple except the second background service unit and the permission message call that returns of other three background service unit identical with the sign-on ID of described the second background service unit in the 3rd duration of setting, wherein, the version information that has comprised the 3rd background service unit in each permission message call;
Application program receive multiple except the second background service unit and after the permission message call that returns of other the 3rd background service unit identical with the sign-on ID of described the second background service unit, before calling the process that allows the 3rd background service unit comprising in message call, described method also comprises:
Application program compares the version information of the 3rd background service unit comprising in the multiple permission message calls that receive;
Application program is selected wherein the 3rd the highest background service unit of version information;
The described background service unit process comprising in this permission message call of calling, specifically comprises:
The process of the 3rd background service unit that application call is selected.
7. a background service unit, is characterized in that, comprising:
Receiver module, the call request message sending for receiving application program, wherein, has comprised the sign-on ID of the second background service unit and the version information of the second background service unit with this application program with binding relationship in described call request message;
Broadcast calling module, the sign-on ID that is used for the second background service unit comprising in definite described call request message receiving is identical with self-contained sign-on ID, and the version information of self is during higher than the version information of described the second background service unit, return to permission message call, wherein, the version information that has comprised self in described permission message call.
8. background service as claimed in claim 7 unit, is characterized in that, described background service unit also comprises:
Judge module, for after determining self the version information version information higher than the second background service unit receiving, before returning to permission message call, in the first duration of setting, judge whether to receive the permission message call that other the 3rd background service unit return;
When judged result is receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, the version information of the 3rd background service unit receiving and the version information of self are compared, and during higher than self version information, return to refusal response message at the version information of determining the 3rd background service unit that receives; During not higher than self version information, trigger broadcast calling module at the version information of determining the 3rd background service unit that receives;
When judged result is, do not receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, to trigger broadcast calling module.
9. background service as claimed in claim 8 unit, is characterized in that, described in the permission message call that returns of other the 3rd background service unit of receiving be that other rear the 3rd service units send by the mode of broadcast.
10. an application program, is characterized in that, comprising:
Broadcast module, for send call request message in the time starting, wherein, has comprised the sign-on ID of the second background service unit and the version number information of the second background service unit with this application program with binding relationship in described call request message;
Calling module, for the permission message call that receives except the second background service unit and other three background service unit identical with the sign-on ID of described the second background service unit return, and call the process of the 3rd background service unit comprising in this permission message call, wherein, the version information that has comprised the 3rd background service unit in described permission message call.
11. application programs as claimed in claim 10, is characterized in that, described application program also comprises:
Judge module, for after sending call request message, before calling the process of the 3rd background service unit comprising in this permission message call, in the second duration of setting, judge whether to receive except the second background service unit and permission message call that other three background service unit identical with the sign-on ID of described the second background service unit return;
When judged result is can receive except the second background service unit and permission message call that other three background service unit identical with the sign-on ID of described the second background service unit return in the second duration of setting, trigger calling module;
When judged result is not receive except the second background service unit and permission message call that other three background service unit identical with the sign-on ID of described the second background service unit return in the second duration of setting, call the process of the second background service unit.
12. application programs as claimed in claim 11, is characterized in that, described application program also comprises: select module, wherein:
Select module, for receive multiple except the second background service unit and after the permission message call that returns of other the 3rd background service unit identical with the sign-on ID of described the second background service unit, before calling the process that allows the background service unit comprising in message call, the version information of the 3rd background service unit comprising in the multiple permission message calls that receive is compared, and select wherein the 3rd the highest background service unit of version information;
Described calling module, multiple except the second background service unit and the permission message call that returns of other three background service unit identical with the sign-on ID of described the second background service unit specifically for receiving in the 3rd duration of setting, and call the process of the 3rd background service unit of selecting, wherein, the version information that has comprised the 3rd background service unit in each permission message call.
The calling system of 13. 1 kinds of background services, is characterized in that, comprising:
Application program, for sending and comprised the call request message with this application program with the sign-on ID of the second background service unit and the version information of the second background service unit of binding relationship in the time starting, and the permission message call of version information of the first background service unit that received comprising of the first background service cell broadcast, call the process of the first background service unit comprising in this permission message call;
The first background service unit, for receiving the call request message with this application program with the sign-on ID of the second background service unit and the version information of the second background service unit of binding relationship that comprised of application program broadcast, identical with self-contained sign-on ID at the sign-on ID of determining the second background service unit comprising in the described call request message receiving, and the version information of self during higher than the version information of described the second background service unit, returns to the permission message call of the version information that has comprised the first background service unit.
14. systems as claimed in claim 13, is characterized in that,
Described the first background service unit, specifically for identical with self-contained sign-on ID at the sign-on ID of determining the second background service unit comprising in the described call request message receiving, and the version information of self during higher than the version information of described the second background service unit after, before returning to permission message call, judge in the first duration of setting whether receive the permission message call that other the 3rd background service unit return;
When judged result is receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, the version information of the 3rd background service unit receiving and the version information of self are compared, and during higher than self version information, return to refusal response message at the version information of determining the 3rd background service unit that receives; , carry out and return to the operation that allows message call during not higher than self version information at the version information of determining the 3rd background service unit that receives;
When judged result is, do not receive the permission message call of the version information that has comprised the 3rd background service unit returning other the 3rd background service unit in setting duration time, to carry out and return to the operation that allows message call.
15. systems as claimed in claim 13, is characterized in that,
Described application program, specifically for after broadcast call request message, before calling the process of the first background service unit comprising in this permission message call, in the second duration of setting, judge whether to receive the permission message call that the first background service unit returns;
When judged result is to receive the permission message call that the first background service unit returns in the second duration of setting, carry out the process of calling the first background service unit comprising in the permission message call the first background service unit of receiving returning;
When judged result is can not receive the permission message call that the first background service unit returns in the second duration of setting, call the process of the second background service unit.
CN201310003631.4A 2013-01-05 2013-01-05 Invoking method, equipment and system for background service Active CN103914335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310003631.4A CN103914335B (en) 2013-01-05 2013-01-05 Invoking method, equipment and system for background service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310003631.4A CN103914335B (en) 2013-01-05 2013-01-05 Invoking method, equipment and system for background service

Publications (2)

Publication Number Publication Date
CN103914335A true CN103914335A (en) 2014-07-09
CN103914335B CN103914335B (en) 2017-03-22

Family

ID=51040040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310003631.4A Active CN103914335B (en) 2013-01-05 2013-01-05 Invoking method, equipment and system for background service

Country Status (1)

Country Link
CN (1) CN103914335B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055360A (en) * 2016-05-30 2016-10-26 乐视控股(北京)有限公司 Starting method of application background service and mobile terminal
WO2017156672A1 (en) * 2016-03-14 2017-09-21 Ebay Inc. System and method for delegating content processing
CN109144600A (en) * 2018-06-21 2019-01-04 连尚(新昌)网络科技有限公司 A kind of operation method of application program, equipment and computer-readable medium
CN109426570A (en) * 2017-08-29 2019-03-05 阿里巴巴集团控股有限公司 A kind of acquisition methods of data, device and equipment
CN109857537A (en) * 2019-03-06 2019-06-07 网易传媒科技(北京)有限公司 Background service starts method, apparatus, medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090109478A1 (en) * 2007-10-29 2009-04-30 Canon Kabushiki Kaisha Image processing apparatus, workflow registering method, and storage medium
CN102204210A (en) * 2011-05-18 2011-09-28 华为技术有限公司 Method, server, and system for starting application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090109478A1 (en) * 2007-10-29 2009-04-30 Canon Kabushiki Kaisha Image processing apparatus, workflow registering method, and storage medium
CN102204210A (en) * 2011-05-18 2011-09-28 华为技术有限公司 Method, server, and system for starting application

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017156672A1 (en) * 2016-03-14 2017-09-21 Ebay Inc. System and method for delegating content processing
CN106055360A (en) * 2016-05-30 2016-10-26 乐视控股(北京)有限公司 Starting method of application background service and mobile terminal
CN109426570A (en) * 2017-08-29 2019-03-05 阿里巴巴集团控股有限公司 A kind of acquisition methods of data, device and equipment
CN109144600A (en) * 2018-06-21 2019-01-04 连尚(新昌)网络科技有限公司 A kind of operation method of application program, equipment and computer-readable medium
CN109144600B (en) * 2018-06-21 2021-10-29 连尚(新昌)网络科技有限公司 Application program running method and device and computer readable medium
CN109857537A (en) * 2019-03-06 2019-06-07 网易传媒科技(北京)有限公司 Background service starts method, apparatus, medium and electronic equipment

Also Published As

Publication number Publication date
CN103914335B (en) 2017-03-22

Similar Documents

Publication Publication Date Title
EP3337206A1 (en) Euicc and activation method thereof, internet of things system, remote subscription management platform
CN105139641A (en) WiFi relay station-based vehicle scheduling method and system
CN103914335A (en) Invoking method, equipment and system for background service
CN104809589A (en) Order processing method and device
CN101944048B (en) Management method of terminal in audio resource conflict and terminal
CN105991363B (en) Monitoring processing method and device
CN103294553A (en) Method and device for managing multimedia resources of mobile terminal
US20180018204A1 (en) Cloud platform, application running method, and access network unit
CN103517243A (en) Emergency call establishment method, network equipment and communication system
CN101194484A (en) Communication path distributing entity and method
CN109618174A (en) A kind of live data transmission method, device, system and storage medium
CN107968881A (en) End-point device broadcast processing method and processing device, terminal device and storage medium
CN114465998A (en) Multi-device file transmission method and device, terminal device and readable storage medium
CN111858050B (en) Server cluster hybrid deployment method, cluster management node and related system
CN111124431A (en) Service callback method, service processing method, device, equipment and storage medium
CN102572804A (en) Data calling method and device
US8751560B2 (en) Method and device arrangement for managing a client/server environment
CN110290009A (en) A kind of data dispatching method, device and computer readable storage medium
CN111356182A (en) Resource scheduling and processing method and device
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium
CN112148320A (en) Application program upgrading method, device, equipment and storage medium
CN110035496A (en) A kind of cloud platform switching method, system and electronic equipment
CN102025534A (en) Single-plate resource allocation method and device thereof
CN112616143B (en) Method and device for distributing communication numbers, electronic equipment and storage medium
CN114302351A (en) Short message service processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant