CN103914335B - Invoking method, equipment and system for background service - Google Patents
Invoking method, equipment and system for background service Download PDFInfo
- Publication number
- CN103914335B CN103914335B CN201310003631.4A CN201310003631A CN103914335B CN 103914335 B CN103914335 B CN 103914335B CN 201310003631 A CN201310003631 A CN 201310003631A CN 103914335 B CN103914335 B CN 103914335B
- Authority
- CN
- China
- Prior art keywords
- background service
- service unit
- call
- version information
- sign
- 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.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (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
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of application program based on terminal is called to background service
Method, apparatus and system.
Background technology
With the fast development of terminal technology, application of the intelligent terminal in society is presented the trend that popularization is used.With
The ios systems of Apple companies are representative, and various intelligent terminal operation systems are released one after another, from development trend card in the last few years
Bright, in intelligent terminal operation system, the quality and quantity of application program directly determines that intelligent terminal operation system is commercially given birth to
The success or failure deposited.Wherein, the ios systems of Apple companies and the android system of Google companies are more successfully surely belonged to, this
In two kinds of operating systems, the quantity of application program has reached the magnitude of hundreds of thousands.
When on intelligent terminal, the trend for emerging in an endless stream occurs in application program, a kind of " application of application " has also been obtained quickly
Development, this " application of application " are not used by a user itself(It is not real application program in other words), but on backstage
Operation, is one kind " background service " of application program.This application is the other application journey run in terminal by communication mechanism
Sequence provide service, wherein, there is provided service include:Network connection service, location information service, Speech processing services, advertisement are sent out
Cloth service and cloud service etc..There is this application program with " background service " ability on intelligent terminal so that different
Intelligent terminal can share these service, saved the system resource of intelligent terminal.
At present, many companies issue the application platform with shared background service, other developers or application one after another
Program development company researches and develops oneself apply on intelligent terminal based on the application platform with shared background service issued
Application product.For this application product for calling background service, this product can be divided into from the angle of background service is called
Two categories below:
The first kind, is to install an independent background service application platform on intelligent terminal, and the background service application is put down
Platform has oneself individually operation process, but with the process of the application program operation operated in the background service application is not
Same process, application program can only be communicated by striding course, call the associated process of the background service application.
For this background service application product, although " background service application platform " can guarantee that the real-time update of version,
But, with independent operation process, it will operationally using more system resource, cause the waste of system resource;And
And, independent process operation is easily manslaughtered by antivirus software, causes the background service application platform normally cannot run, and then is caused
Also normally cannot be used based on the application program of the background service application platform operation.
For the problem that the first kind is present, Equations of The Second Kind is occurred in that, be that background service application platform is taken with the backstage is based on
The operation process of the application program of business application platform operation is packaged with.
Although so reducing system consumption, the first kind is solved the problems, such as, as background service application is put down
Platform is integrated in different application programs so that the version of background service application platform cannot be updated, after so causing
Platform is served by the demand that platform cannot meet application program operation.
In sum, in the prior art, background service application platform and the application based on the background service application platform
There is a problem of between program that system resource operation is more and background service application platform update method is limited, cause backstage to take
The poor-performing run between business application platform and application program.
The content of the invention
A kind of call method of background service, equipment and system is embodiments provided, for solving prior art
There is system resource operation between middle background service application platform and the application program based on the background service application platform more
And background service application platform update method is limited, causes the performance run between background service application platform and application program
Poor problem.
A kind of call method of background service, including:
First background service unit receives the call request message that application program sends, wherein, the call request message
In contain the sign-on ID and the second background service list of the second background service unit that there is binding relationship with the application program
The version number information of unit;
First background service unit is it is determined that the second background service list included in the call request message that receives
The sign-on ID of unit is identical with self-contained sign-on ID, and the version information of itself is higher than the second background service unit
Version information when, return allow message call, wherein, it is described permission message call in contain the version information of itself.
A kind of call method of background service, including:
Application program on startup, sends call request message, and wherein, containing in the call request message should with this
There is the version information of the sign-on ID and the second background service unit of the second background service unit of binding relationship with program;
Application program is received in addition to the second background service unit and is identified with the second background service unit (ONU) registration
The permission message call that identical other the 3rd background service units are returned, and the included in calling the permission message call
The process of three background service units, wherein, contains the version information of the 3rd background service unit in the permission message call.
A kind of background service unit, including:
Receiver module, for receiving the call request message of application program transmission, wherein, wraps in the call request message
The sign-on ID and the second background service unit of the second background service unit that there is binding relationship with the application program are contained
Version information;
Broadcast calling module, for it is determined that the second background service list included in the call request message that receives
The sign-on ID of unit is identical with self-contained sign-on ID, and the version information of itself is higher than the second background service unit
Version information when, return allow message call, wherein, it is described permission message call in contain the version information of itself.
A kind of application program, including:
Broadcast module, for sending call request message on startup, wherein, contain in the call request message with
The application program has the version number of the sign-on ID and the second background service unit of the second background service unit of binding relationship
Information;
Calling module, for receiving the note in addition to the second background service unit and with the second background service unit
Volume identifies the permission message call of other the 3rd background service units returns of identical, and wraps in calling the permission message call
The process of the 3rd background service unit for containing, wherein, contains the version of the 3rd background service unit in the permission message call
This information.
A kind of calling system of background service, including:
Application program, contains the second background service for having binding relationship with the application program for sending on startup
The call request message of the version information of the sign-on ID of unit and the second background service unit, and receive the first background service list
The permission message call of the version information for containing the first background service unit of unit's broadcast, wraps in calling the permission message call
The process of the first background service unit for containing;
First background service unit, has binding relationship for receiving containing for application program broadcast with the application program
The second background service unit sign-on ID and the second background service unit version information call request message, it is determined that
The sign-on ID of the second background service unit included in the call request message for receiving and self-contained registration mark
It is sensible same, and the version information of itself higher than the second background service unit version information when, after return contains first
The permission message call of the version information of platform service unit.
The present invention has the beneficial effect that:
The embodiment of the present invention receives containing for application program broadcast by the first background service unit and applies journey with this
Sequence has calling for the version information of the sign-on ID and the second background service unit of the second background service unit of binding relationship
Request message, it is identical with self-contained sign-on ID in the sign-on ID of the second background service unit for receiving, and itself
Version information higher than the second background service unit for receiving version information when, returning allows message call so that application
Program can the higher background service of shared vision, not only avoid the application program in prior art with binding relationship and after
The problem that background service cannot update between platform service unit, also solves and runnability difference occurs using single background service
Situation, improves the runnability between application program and background service, further increases the operational efficiency of application program.
Description of the drawings
Flow charts of the Fig. 1 for a kind of call method of background service of the embodiment of the present invention one;
Flow charts of the Fig. 2 for a kind of call method of background service of the embodiment of the present invention two;
Structural representations of the Fig. 3 for a kind of background service unit of the embodiment of the present invention three;
Structural representations of the Fig. 4 for a kind of application program of the embodiment of the present invention four;
Structural representations of the Fig. 5 for a kind of calling system of background service of the embodiment of the present invention five.
Specific embodiment
In order to realize the purpose of the present invention, embodiments provide a kind of call method of background service, equipment and
System, receives containing for application program broadcast by the first background service unit and has binding relationship with the application program
The call request message of the version information of the sign-on ID of the second background service unit and the second background service unit, is receiving
The second background service unit sign-on ID it is identical with self-contained sign-on ID, and the version information of itself higher than receive
During the version information of the second background service unit for arriving, return allow message call so that application program can shared vision compared with
High background service, has backstage between the application program and background service unit of binding relationship in not only avoid prior art
The problem that service cannot update, also solves the situation for runnability difference occur using single background service, improves and apply journey
Runnability between sequence and background service, further increases the operational efficiency of application program.
Each embodiment of the invention is described in detail with reference to Figure of description.
Embodiment one:
As shown in figure 1, the flow chart of the call method for a kind of background service of the embodiment of the present invention one, methods described bag
Include:
Step 101:First background service unit receives the call request message that application program sends.
Wherein, the second background service list that there is binding relationship with the application program is contained in the call request message
The version number information of the sign-on ID and the second background service unit of unit.
In a step 101, as the background service of each application program binding can be with difference, it is also possible to identical;Work as difference
Application program binding background service it is identical when, when these application programs are registered in terminal, background service registration registration
Mark is identical.That is, can just judge whether identical the background service of different application binding is according to sign-on ID.
When the background service that different application programs is bound is identical, the version of the background service of different application binding
Information can be identical, it is also possible to different, bind in the different application of same background service unit, and some apply journey
The version information of the background service of sequence binding is higher, and the version information of the background service of some application program bindings is relatively low.
For example:Application program A, application program B, application program C and application program D is contained in intelligent terminal, with application
It is that sign-on ID is a, the background service that version information is v1 that program A has the background service of binding relationship;Have with application program B
The background service for having binding relationship is that sign-on ID is a, the background service that version information is v2;There is binding with application program C
The background service of relation is that sign-on ID is a, the background service that version information is v3;There is binding relationship with application program D
Background service is that sign-on ID is a, the background service that version information is v4;As can be seen here, the application journey for including in intelligent terminal
But sequence A, application program B, application program C are to take with identical sign-on ID a different backstage of version information with application program D
Business.
More preferably, by the way of application program can be to adopt broadcast when call request message is sent, so can be so that more
Many background service units receive the message call.
Step 102:The second background service that first background service is included in judging the call request message for receiving
Sign-on ID it is whether identical with self-contained sign-on ID, if identical, execution step 103;Otherwise, refusal respond tune
Use request message.
Specifically, in a step 102, when the first background service unit receives the call request message of application program transmission
When, it is thus necessary to determine that the sign-on ID of the second background service unit included in the call request message for receiving is taken with itself
Whether the sign-on ID of band is identical, and whether the version information of itself is believed higher than the version of the second background service unit
Breath.
Specifically, the first background service unit reads the registration of the second background service unit from the call request message
Mark, and the sign-on ID is compared with self-contained sign-on ID, after determine that application program needs to call second
Whether the sign-on ID of platform service unit is identical with the sign-on ID of itself.
For example:Application program A have sent call request message, contains and have with application program A in the call request message
There is the sign-on ID a of the background service unit of binding relationship, when the background service unit with application program C with binding relationship is connect
When receiving the call request message, the background service unit is read to be had with application program A from the call request message and is tied up
Determine the sign-on ID a of the background service unit of relation, and the sign-on ID a for reading is compared with the sign-on ID of itself
Compared with, when comparative result is identical, execution step 103;Otherwise, there is the background service unit of binding relationship with application program C
The call request message that refusal respond is received.
Step 103:First background service unit is by the version information of the second background service for receiving and the version of itself
Information is compared, if the version information of itself is higher than the version information of the second background service unit for receiving, performs step
Rapid 104;Otherwise, refusal respond call request message.
Specifically, in step 103, the first background service unit it is determined that self-contained sign-on ID with receive
When the sign-on ID of the second background service unit is identical, determine application program need the second background service unit for calling and itself
It is of a sort background service unit, reads the version letter of the second background service unit from the call request message for receiving
Breath, and is compared with the version information of itself, when comparative result is the version information of itself higher than the second backstage for receiving
During the version information of service, execution step 104, otherwise, the refusal respond call request message.
It should be noted that judging that the height of two background service unit version informations can be by background service unit
Version number information judged, the version number information of general same class background service belongs to the information of same form, but also not
It is limited to, using the mode, not limit here.
As can be seen here, application program upon actuation platform service unit when, in the background service unit set from terminal select
Select same class and higher the carrying out of version information starts, so both meet the demand of version updating, it is same with calling by causing
Multiple application programs of one class background service feature are used in conjunction with the higher background service of same version, save system resource.
More preferably, background service is the version information of itself higher than the second background service unit for receiving in comparative result
Version information after, return allow message call before, methods described also includes:
First, the first background service unit in the first duration of setting judges whether to receive other the 3rd background services
The permission message call that unit is returned.
The version information of the 3rd background service unit is contained in the permission message call.
Wherein, the first duration of the setting refers to that the first background service unit obtains other background service unit version numbers
The time of information, can be arranged as required to, it is also possible to according to Setup Experiments, do not limit here.
Specifically, the first background service unit is it is determined that the version number information of itself is higher than the second background service for receiving
During the version number information of unit, in addition it is also necessary to determine whether the version information of itself is highest version information, therefore, in setting
The permission message call that other the 3rd background service units are returned is received in long, judges the version number information of itself whether higher than the
The version information of three background service units.
It should be noted that other the 3rd background service units that the first background service is received return allow to call and disappear
Breath is that other the 3rd background service units are sent by way of broadcast.
Wherein, described other the 3rd background service unit more than one background service units, " first ", " second " and "
Three " merely to distinguishing different background service units, there is no any particular meaning, be not used to here limit.
Secondly, when judged result be receive that other the 3rd background service units return in setting duration contain the
During the permission message call of the version information of three background service units, the 3rd backstage for receiving is taken by the first background service unit
The version information of business is compared with the version information of itself, and it is determined that the version letter of the 3rd background service unit for receiving
Severe dyspnea returns refusal respond message when the version information of itself;It is determined that the version of the 3rd background service unit for receiving
When information is not higher than the version information of itself, performs and return the operation for allowing message call;
When judged result be not received by that other the 3rd background service units return in setting duration contain the
During the permission message call of the version information of three background service units, the first background service unit performs to return allows message call
Operation.
Step 104:First background service unit is returned to application program and allows message call.
Wherein, the version information of the first background service unit is contained in the permission message call.
By the scheme of the embodiment of the present invention one, the first background service unit receive application program broadcast contain with
The application program has the version letter of the sign-on ID and the second background service unit of the second background service unit of binding relationship
The call request message of breath, in sign-on ID and the self-contained sign-on ID phase of the second background service unit for receiving
Together, and the version information of itself higher than the second background service unit for receiving version information when, returning allows message call,
The higher background service of shared vision is allowed the application to, there is in not only avoid prior art the application of binding relationship
The problem that background service cannot update between program and background service unit, also solves and occurs running using single background service
The situation of poor performance, improves the runnability between application program and background service, further increases the fortune of application program
Line efficiency.
Embodiment two:
As shown in Fig. 2 the flow chart of the call method for a kind of background service of the embodiment of the present invention two, present invention enforcement
Example two is the embodiment of the method with embodiment one under same design, and methods described includes:
Step 201:Application program on startup, sends call request message.
Wherein, the second background service list that there is binding relationship with the application program is contained in the call request message
The version number information of the sign-on ID and the second background service unit of unit
In step 201, when application program prepares to start, call request message is sent by the way of broadcast, notified
Background service unit set in terminal needs the sign-on ID of the background service unit for calling and has binding relationship with itself
Background service unit version number information.
Step 202:Application program judges whether receive except the second background service unit in the second duration of setting
Outside and the permission that returns with the sign-on ID identical of the second background service unit other the 3rd background service units adjust
With message, if so, then execution step 203;Otherwise, execution step 204.
Wherein, the second duration of the setting refers to the high latency needed for application call background service, can
To determine as needed, can also rule of thumb obtain, not limit here.
Wait the second duration of setting in step 202. by application program, it is determined whether exist than the second background service
Other high the 3rd background service units of the version information of unit, wherein, other the 3rd background service units return and allow to call
The mode of message is realized by way of the embodiment of the present invention one.
Specifically, when judged result is received in addition to the second background service unit in the second duration of setting
The permission message call that other background service units are returned, then execution step 203;
When judged result is its that in the second duration of setting be not received by addition to the second background service unit
The permission message call that his background service unit is returned, then execution step 204.
Step 203:Application program receive in addition to the second background service unit and with the second background service unit
Sign-on ID identical other the 3rd background service cell broadcasts permission message call, and in calling the permission message call
Comprising the 3rd background service unit process.
Specifically, in step 203, the application program is received in addition to the second background service unit and with described the
The permission message call of sign-on ID identical other the 3rd background service cell broadcasts of two background service units, it is concrete to wrap
Include:
Application program setting the 3rd duration in receive it is multiple in addition to the second background service unit and with it is described
The permission message call that the sign-on ID identical of the second background service unit other the 3rd background service units are returned, wherein,
Each contains the version information of the 3rd background service unit in allowing message call.
Wherein, the 3rd duration of the setting refers to reception in a period of time of application program after message call is sent
Returning allows the maximum duration of message call, can determine as needed, it is also possible to is obtained according to experiment, is not limited here.
It should be noted that other the 3rd background service units being related in the embodiment of the present invention contain enforcement of the present invention
The first background service unit in example one.
More preferably, application program receive it is multiple in addition to the second background service unit and with second backstage take
After the permission message call that sign-on ID identical other the 3rd background service units of business unit are returned, calling allows to call
Before the process of the 3rd background service unit included in message, methods described also includes:
First, application program is by the version of the 3rd background service unit included in the multiple permission message calls for receiving
Information is compared.
Secondly, application program selects wherein the 3rd background service unit of version information highest.
Specifically, it is described call the permission message call in the background service unit process that includes, specifically include:
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 is sent on startup to contain to be had with the application program and is tied up
Determine the call request message of the version information of the sign-on ID and the second background service unit of the second background service unit of relation,
Receive in addition to the second background service unit and with the sign-on ID identical of the second background service unit other the 3rd
The permission message call that background service unit is returned, and the 3rd background service unit included in calling the permission message call
Process, so that application program terminal possess and version information identical with the sign-on ID of the second background service unit compared with
During high other background service units, other background service units are called;Do not possess and the second background service unit in terminal
During other background service units that sign-on ID is identical and version information is higher, the second background service but forever is called, is realized
The motility of application call background service unit, improves and calls efficiency, save system resource.
Embodiment three:
As shown in figure 3, a kind of structural representation of the background service unit for the embodiment of the present invention three, the background service
Unit includes:Receiver module 11 and broadcast calling module 12, wherein:
Receiver module 11, for receiving the call request message of application program transmission, wherein, in the call request message
Contain the version number of the sign-on ID and the second background service of the second background service that there is binding relationship with the application program
Information.
Broadcast calling module 12, for it is determined that the second background service included in the call request message that receives
The sign-on ID of unit is identical with self-contained sign-on ID, and the version information of itself is higher than the second background service list
During the version information of unit, returning allows message call, wherein, contains the version number of itself and believe in the permission message call
Breath.
The broadcast calling module 12, after judging include in the call request message for receiving second
Whether the sign-on ID of platform service unit identical with self-contained sign-on ID, also particularly useful in judged result for identical
When, the version number information of the second background service unit for receiving is compared with the version number information of itself.
More preferably, the background service also includes:Judge module 13, wherein:
Judge module 13, for it is determined that the second background service unit included in the call request message that receives
Sign-on ID it is identical with self-contained sign-on ID, and the version information of itself is higher than the second background service unit
After version information, return before allowing message call, judge whether to receive other in the first duration of setting after the 3rd
The permission message call that platform service unit is returned;
When judged result is to receive after containing the 3rd of other the 3rd background service units returns in setting duration
During the permission message call of the version information of platform service unit, by the version information of the 3rd background service unit for receiving and certainly
The version information of body is compared, and it is determined that the version information of the 3rd background service unit for receiving is higher than the version of itself
During information, refusal respond message is returned;It is determined that the version information of the 3rd background service unit for receiving is not higher than itself
During version information, triggering broadcast calling module;
When judged result be not received by that other the 3rd background service units return in setting duration contain the
During the permission message call of the version information of three background service units, triggering broadcast calling module.
Wherein, the permission message call that described other the 3rd background service units for receiving are returned is other latter 3rd
What service unit was sent by way of broadcast.
It should be noted that the background service unit described in the embodiment of the present invention three can both be the first background service list
Unit, or the second background service unit, can also be other the 3rd background service units, are not specifically limited here.
Example IV:
As shown in figure 4, a kind of structural representation of the application program for the embodiment of the present invention four, the application package
Include:Broadcast module 21 and calling module 22, wherein:
Broadcast module 21, for sending call request message on startup, wherein, contains in the call request message
With the sign-on ID and the version of the second background service unit of the second background service unit that the application program has binding relationship
Number information.
Calling module 22, for receive in addition to the second background service unit and with the second background service unit
The permission message call that sign-on ID identical other the 3rd background service units are returned, and in calling the permission message call
Comprising the 3rd background service unit process, wherein, it is described permission message call in contain the 3rd background service unit
Version information.
More preferably, the application program also includes:Judge module 23, wherein:
Judge module 23, for send call request message after, the 3rd included in calling the permission message call
Before the process of background service unit, judge whether to receive except the second background service list in the second duration of setting
The permission returned outside unit and with the sign-on ID identical of the second background service unit other the 3rd background service units
Message call;
When judged result be can receive in addition to the second background service unit in the second duration of setting and with
The permission message call that the sign-on ID identical of the second background service unit other the 3rd background service units are returned, then
Triggering calling module;
When judged result be not received by addition to the second background service unit in the second duration of setting and with
The permission message call that the sign-on ID identical of the second background service unit other the 3rd background service units are returned, then
Call the process of the second background service unit.
More preferably, the application program also includes:Selecting module 24, wherein:
Selecting module 24, for receive it is multiple in addition to the second background service unit and with second backstage take
After the permission message call that sign-on ID identical other the 3rd background service units of business unit are returned, calling allows to call
Before the process of the background service unit included in message, the 3rd backstage that will be included in the multiple permission message calls for receiving
The version information of service unit is compared, and selects wherein the 3rd background service unit of version information highest;
The calling module 22, it is multiple except the second background service list specifically for receiving in the 3rd duration of setting
The permission returned outside unit and with the sign-on ID identical of the second background service unit other the 3rd background service units
Message call, and call the process of the 3rd background service unit selected, wherein, each contains the in allowing message call
The version information of three background service units.
Embodiment five:
As shown in figure 5, the structural representation of the calling system for a kind of background service of the embodiment of the present invention five, the system
System includes:Application program 31 and the first background service unit 32, wherein:
Application program 31, contains the second backstage for having binding relationship with application program clothes for sending on startup
The call request message of the version information of the sign-on ID and the second background service unit of business unit, and receive the first background service
The permission message call of the version information for containing the first background service unit of cell broadcast, in calling the permission message call
Comprising the first background service unit process.
First background service unit 32, there is binding to close for receiving containing for application program broadcast with the application program
The call request message of the version information of the sign-on ID and the second background service unit of the second background service unit of system, true
The sign-on ID of the second background service unit included in the call request message for receiving surely and self-contained registration
Mark it is identical, and the version information of itself higher than the second background service unit version information when, return contain first
The permission message call of the version information of background service unit.
Specifically, the first background service unit 32, specifically for it is determined that the call request message for receiving
In the sign-on ID of the second background service unit that includes it is identical with self-contained sign-on ID, and the version information of itself is high
After when the version information of the second background service unit, return before allowing message call, judge the first of setting
Whether permission message call that other threeth background service units return is received in duration;
When judged result is to receive after containing the 3rd of other the 3rd background service units returns in setting duration
During the permission message call of the version information of platform service unit, by the version information of the 3rd background service unit for receiving and certainly
The version information of body is compared, and it is determined that the version information of the 3rd background service unit for receiving is higher than the version of itself
During information, refusal respond message is returned;It is determined that the version information of the 3rd background service unit for receiving is not higher than itself
During version information, perform and return the operation for allowing message call;
When judged result be not received by that other the 3rd background service units return in setting duration contain the
During the permission message call of the version information of three background service units, perform and return the operation for allowing message call.
The application program 31, specifically for, after broadcast call request message, wrapping in calling the permission message call
Before the process of the first background service unit for containing, judge whether to receive the first backstage clothes in the second duration of setting
The permission message call that business unit is returned;
When judged result is to receive allowing to call and disappearing for the first background service unit return in the second duration of setting
Breath, then the first background service list included in performing the permission message call for calling the first background service unit for receiving to return
The process of unit;
When judged result is that the permission that can not receive the return of the first background service unit in the second duration of setting is adjusted
With message, then the process of the second background service unit is called.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention
God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising these changes and modification.
Claims (15)
1. a kind of call method of background service, it is characterised in that include:
First background service unit receives the call request message that application program sends, and wherein, wraps in the call request message
The sign-on ID and the second background service unit of the second background service unit that there is binding relationship with the application program are contained
Version information;
First background service unit is it is determined that the second background service unit for including in the call request message that receives
Sign-on ID is identical with self-contained sign-on ID, and the version information of itself is higher than the version of the second background service unit
During this information, returning allows message call, wherein, contains the version of the first background service unit in the permission message call
Information.
2. the method for claim 1, it is characterised in that the first background service unit is it is determined that the version letter of itself
Severe dyspnea is returned before allowing message call after the version information of the second background service unit for receiving, and methods described is also
Including:
First background service unit in the first duration of setting judges whether to receive other the 3rd background service units
The permission message call of return;
When judged result is that the 3rd backstage that contains for receiving other the 3rd background service units returns in setting duration takes
During the permission message call of the version information of business unit, the first background service unit is by the 3rd background service unit for receiving
Version information is compared with the version information of itself, and it is determined that the version information of the 3rd background service unit for receiving is high
When the version information of itself, refusal respond message is returned;It is determined that the version information of the 3rd background service unit for receiving
When being not higher than the version information of itself, perform and return the operation for allowing message call;
When judged result is to be not received by after containing the 3rd of other the 3rd background service units returns in setting duration
During the permission message call of the version information of platform service unit, perform and return the operation for allowing message call.
3. the method for claim 1, it is characterised in that the first background service unit receive other after the 3rd
The permission message call that platform service unit is returned is that other the 3rd background service units are sent by way of broadcast.
4. a kind of call method of background service, it is characterised in that include:
Application program on startup, sends call request message, wherein, contains and apply journey with this in the call request message
Sequence has the version information of the sign-on ID and the second background service unit of the second background service unit of binding relationship;
Application program receives in addition to the second background service unit and identical with the second background service unit (ONU) registration mark
The permission message call that returns of other the 3rd background service units, and the 3rd backstage included in calling the permission message call
The process of service unit, wherein, contains the version information of the 3rd background service unit in the permission message call.
5. method as claimed in claim 4, it is characterised in that the application program is adjusted after call request message is sent
Before process with the 3rd background service unit included in the permission message call, methods described also includes:
Application program in the second duration of setting judge whether to receive in addition to the second background service unit and with it is described
The permission message call that the sign-on ID identical of the second background service unit other the 3rd background service units are returned;
When judged result is received in addition to the second background service unit in the second duration of setting and with described second
The permission message call that the sign-on ID identical of background service unit other the 3rd background service units are returned, then perform and call
The process of the 3rd background service unit included in the permission message call for receiving;
When judged result be not received by addition to the second background service unit in the second duration of setting and with it is described
The permission message call that the sign-on ID identical of the second background service unit other the 3rd background service units are returned, then call
The process of the second background service unit.
6. method as claimed in claim 4, it is characterised in that the application program receive except the second background service unit it
The allowing of outer and sign-on ID identical other the 3rd background service cell broadcasts with the second background service unit is called
Message, specifically includes:
Application program receives multiple in addition to the second background service unit and with described second in the 3rd duration of setting
The permission message call that the sign-on ID identical of background service unit other the 3rd background service units are returned, wherein, each
The version information of the 3rd background service unit is contained in allowing message call;
Application program is receiving multiple notes in addition to the second background service unit and with the second background service unit
After volume identifies the permission message call of other the 3rd background service units returns of identical, include in calling permission message call
The 3rd background service unit process before, methods described also includes:
The version information of the 3rd background service unit included in the multiple permission message calls for receiving is carried out by application program
Relatively;
Application program selects wherein the 3rd background service unit of version information highest;
It is described call the permission message call in the background service unit process that includes, specifically include:
The process of the 3rd background service unit that application call is selected.
7. a kind of background service unit, it is characterised in that include:
Receiver module, for receiving the call request message of application program transmission, wherein, contains in the call request message
With the sign-on ID and the version of the second background service unit of the second background service unit that the application program has binding relationship
Information;
Broadcast calling module, for it is determined that the second background service unit for including in the call request message that receives
Sign-on ID is identical with self-contained sign-on ID, and the version information of itself is higher than the version of the second background service unit
During this information, returning allows message call, wherein, contains the version information of itself in the permission message call.
8. background service unit as claimed in claim 7, it is characterised in that the background service unit also includes:
Judge module, for it is determined that the version information of itself higher than the version information of the second background service unit for receiving it
Afterwards, return before allowing message call, judge whether to receive other the 3rd background service units in the first duration of setting
The permission message call of return;
When judged result is that the 3rd backstage that contains for receiving other the 3rd background service units returns in setting duration takes
Business unit version information permission message call when, by the version information of the 3rd background service unit for receiving with itself
Version information is compared, and it is determined that the version information of the 3rd background service unit for receiving is higher than the version information of itself
When, return refusal respond message;It is determined that the version information of the 3rd background service unit for receiving is not higher than the version of itself
During information, triggering broadcast calling module;
When judged result is to be not received by after containing the 3rd of other the 3rd background service units returns in setting duration
During the permission message call of the version information of platform service unit, triggering broadcast calling module.
9. background service unit as claimed in claim 8, it is characterised in that described other the 3rd background service lists for receiving
The permission message call that unit returns is that other rear 3rd service units are sent by way of broadcast.
10. a kind of calling device of background service, it is characterised in that include:
Broadcast module, for sending call request message on startup, wherein, contains in the call request message and the dress
Put the version number information of the sign-on ID and the second background service unit of the second background service unit with binding relationship;
Calling module, for receiving the registration mark in addition to the second background service unit and with the second background service unit
Know the permission message call that identical other the 3rd background service units are returned, and the included in calling the permission message call
The process of three background service units, wherein, contains the version information of the 3rd background service unit in the permission message call.
11. devices as claimed in claim 10, it is characterised in that described device also includes:
Judge module, for the 3rd backstage clothes for after call request message is sent, including in calling the permission message call
Before the process of business unit, judge whether to receive in addition to the second background service unit in the second duration of setting
And allow to call and disappear with the sign-on ID identical of the second background service unit other the 3rd background service units are returned
Breath;
When judged result be can receive in addition to the second background service unit in the second duration of setting and with it is described
The permission message call that the sign-on ID identical of the second background service unit other the 3rd background service units are returned, then trigger
Calling module;
When judged result be not received by addition to the second background service unit in the second duration of setting and with it is described
The permission message call that the sign-on ID identical of the second background service unit other the 3rd background service units are returned, then call
The process of the second background service unit.
12. devices as claimed in claim 11, it is characterised in that described device also includes:Selecting module, wherein:
Selecting module, for receive it is multiple in addition to the second background service unit and with the second background service unit
The permission message call that returns of sign-on ID identical other the 3rd background service units after, in calling permission message call
Comprising background service unit process before, the 3rd background service list that will be included in the multiple permission message calls for receiving
The version information of unit is compared, and selects wherein the 3rd background service unit of version information highest;
The calling module, it is multiple in addition to the second background service unit specifically for receiving in the 3rd duration of setting
And allow to call and disappear with the sign-on ID identical of the second background service unit other the 3rd background service units are returned
Breath, and the process of the 3rd background service unit selected is called, wherein, each contains the 3rd backstage in allowing message call
The version information of service unit.
13. a kind of calling systems of background service, it is characterised in that include:
Application program, contains the second background service unit for having binding relationship with the application program for sending on startup
Sign-on ID and the second background service unit version information call request message, and it is wide to receive the first background service unit
That what is broadcast contains the permission message call of the version information of the first background service unit, includes in calling the permission message call
The process of the first background service unit;
First background service unit, contains have binding relationship with the application program for receive application program broadcast
The call request message of the version information of the sign-on ID of two background service units and the second background service unit, it is determined that receive
To the call request message in the sign-on ID of the second background service unit that includes and self-contained sign-on ID phase
Together, and the version information of itself higher than the second background service unit version information when, return contain the first backstage clothes
The permission message call of the version information of business unit.
14. systems as claimed in claim 13, it is characterised in that
The first background service unit, specifically for it is determined that include in the call request message that receives second after
The sign-on ID of platform service unit is identical with self-contained sign-on ID, and the version information of itself is higher than second backstage
After during the version information of service unit, return before allowing message call, judge whether receive in the first duration of setting
To the permission message call that other the 3rd background service units are returned;
When judged result is that the 3rd backstage that contains for receiving other the 3rd background service units returns in setting duration takes
Business unit version information permission message call when, by the version information of the 3rd background service unit for receiving with itself
Version information is compared, and it is determined that the version information of the 3rd background service unit for receiving is higher than the version information of itself
When, return refusal respond message;It is determined that the version information of the 3rd background service unit for receiving is not higher than the version of itself
During information, perform and return the operation for allowing message call;
When judged result is to be not received by after containing the 3rd of other the 3rd background service units returns in setting duration
During the permission message call of the version information of platform service unit, perform and return the operation for allowing message call.
15. systems as claimed in claim 13, it is characterised in that
The application program, specifically for after broadcast call request message, the included in calling the permission message call
Before the process of one background service unit, judge whether to receive the first background service unit in the second duration of setting
The permission message call of return;
When judged result is to receive the permission message call that the first background service unit is returned in the second duration of setting, then
The first background service unit that execution is included in calling the permission message call that the first background service unit for receiving is returned
Process;
When judged result is to receive allowing to call and disappearing for the first background service unit return in the second duration of setting
Breath, then call the process of the second background service unit.
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 CN103914335A (en) | 2014-07-09 |
CN103914335B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3430789B1 (en) * | 2016-03-14 | 2020-08-26 | 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 |
CN109144600B (en) * | 2018-06-21 | 2021-10-29 | 连尚(新昌)网络科技有限公司 | Application program running method and device and computer readable medium |
CN109857537B (en) * | 2019-03-06 | 2021-07-09 | 网易传媒科技(北京)有限公司 | Background service starting method, device, medium and electronic equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102204210A (en) * | 2011-05-18 | 2011-09-28 | 华为技术有限公司 | Method, server, and system for starting application |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5517401B2 (en) * | 2007-10-29 | 2014-06-11 | キヤノン株式会社 | Image processing apparatus, workflow registration method, and program |
-
2013
- 2013-01-05 CN CN201310003631.4A patent/CN103914335B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102204210A (en) * | 2011-05-18 | 2011-09-28 | 华为技术有限公司 | Method, server, and system for starting application |
Also Published As
Publication number | Publication date |
---|---|
CN103914335A (en) | 2014-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103914335B (en) | Invoking method, equipment and system for background service | |
CN111580846B (en) | Micro-service gray scale publishing method based on mixed framework | |
CN110336885B (en) | Edge node distribution method, device, scheduling server and storage medium | |
CN110601922B (en) | Method and device for realizing comparison experiment, electronic equipment and storage medium | |
CN103002516B (en) | A kind of data transmission method and device, data terminal | |
CN110611891B (en) | Short message sending method and device | |
CN104809589A (en) | Order processing method and device | |
CN105139641A (en) | WiFi relay station-based vehicle scheduling method and system | |
CN109729519B (en) | Data downloading method and related device | |
CN111163130A (en) | Network service system and data transmission method thereof | |
CN106453143B (en) | Bandwidth setting method, device and system | |
CN101194484A (en) | Communication path distributing entity and method | |
CN110290009A (en) | A kind of data dispatching method, device and computer readable storage medium | |
CN112395024B (en) | Interface calling method and related device | |
CN104580098B (en) | A kind of service sharing method and device | |
CN100473224C (en) | Entity resource allocation method | |
CN107645468A (en) | Extension set resource allocation methods and device | |
CN107294724B (en) | Short message uplink verification method and device | |
CN107426314A (en) | Data download method and device | |
CN109150720A (en) | Business chain message forwarding method, device, equipment and computer readable storage medium | |
CN103648182B (en) | Business data transmission method and device, processor and mobile terminal | |
CN102932406B (en) | Realize the method, apparatus and system surfed the Internet by WAP modes when flow unloading | |
CN102117472A (en) | Business process method of vehicle information system | |
CN107659578B (en) | Authentication method and device | |
CN108347403B (en) | Method and device for distributing intermediate communication identification |
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 |