CN108280113B - Service Worker control method and device and electronic terminal - Google Patents

Service Worker control method and device and electronic terminal Download PDF

Info

Publication number
CN108280113B
CN108280113B CN201710571296.6A CN201710571296A CN108280113B CN 108280113 B CN108280113 B CN 108280113B CN 201710571296 A CN201710571296 A CN 201710571296A CN 108280113 B CN108280113 B CN 108280113B
Authority
CN
China
Prior art keywords
service worker
electronic terminal
service
parameter
information
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
Application number
CN201710571296.6A
Other languages
Chinese (zh)
Other versions
CN108280113A (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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201710571296.6A priority Critical patent/CN108280113B/en
Publication of CN108280113A publication Critical patent/CN108280113A/en
Application granted granted Critical
Publication of CN108280113B publication Critical patent/CN108280113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The embodiment of the invention provides a Service Worker control method, a device and an electronic terminal, wherein in one embodiment, the method comprises the following steps: when a Service Worker is started in the application program of the electronic terminal and operates, judging whether the configuration information of the Service Worker is preset information; and when the configuration information is preset information, controlling the Service Worker to continuously run until the application program exits.

Description

Service Worker control method and device and electronic terminal
Technical Field
The invention relates to the technical field of networks, in particular to a Service Worker control method, a Service Worker control device and an electronic terminal.
Background
The Service Worker endows the page end with very strong capability, and can intercept resource requests, manage resource cache, push messages and the like. However, the Service Worker also has some costs, for example, the starting speed is slow, and the starting cost of the Service Worker is high.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a Service Worker control method, device and electronic terminal.
The embodiment of the invention provides a Service Worker control method, which is applied to an electronic terminal and comprises the following steps:
when a Service Worker is started in the application program of the electronic terminal and operates, judging whether the configuration information of the Service Worker is preset information;
and when the configuration information is preset information, controlling the Service Worker to continuously run until the application program exits.
The embodiment of the invention also provides a Service Worker control device, which is applied to an electronic terminal, and the device comprises:
the information judgment module is used for judging whether the configuration information of the Service Worker is preset information or not when the Service Worker runs after the application program of the electronic terminal is started;
and the process control module is used for controlling the Service Worker to continuously run until the application program exits when the configuration information is preset information.
An embodiment of the present invention further provides an electronic terminal, including:
a memory;
a processor;
the Service Worker control device is installed/stored in the memory and executed by the processor.
Compared with the prior art, the Service Worker control method, the device and the electronic terminal provided by the invention have the advantages that when the configuration information set by the Service Worker is the preset information, the Service Worker is kept resident in the memory to reduce the starting times of the Service Worker, the time consumed by starting the Service Worker is saved, and the execution efficiency of the function related to the Service Worker control in the application program is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of an electronic terminal according to a preferred embodiment of the present invention.
Fig. 2 is a functional block diagram of a Service Worker control device according to a preferred embodiment of the present invention.
FIG. 3 is a flowchart of a Service Worker control method according to a preferred embodiment of the present invention
FIG. 4 is a flowchart of a Service Worker control method according to another preferred embodiment of the present invention
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 shows a block diagram of an electronic terminal 100 according to an embodiment of the present invention. The electronic terminal 100 includes a Service Worker control device 110, a memory 111, a storage controller 112, a processor 113, a peripheral interface 114, an input/output unit 115, and a display unit 116. The structure shown in fig. 1 is merely an illustration, and does not limit the structure of the electronic terminal 100. For example, the electronic terminal 100 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 111, the memory controller 112, the processor 113, the peripheral interface 114, the input/output unit 115 and the display unit 116 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The Service Worker control device 110 includes at least one software function module which can be stored in the memory 111 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the electronic terminal 100. The processor 113 is configured to execute an executable module stored in the memory 111, such as a software functional module or a computer program included in the Service Worker control device 110.
The Memory 111 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 111 is configured to store a program, and the processor 113 executes the program after receiving an execution instruction, and the method executed by the electronic terminal 100 defined by the process disclosed in any embodiment of the present invention may be applied to the processor 113, or implemented by the processor 113.
The processor 113 may be an integrated circuit chip having signal processing capabilities. The Processor 113 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The peripheral interface 114 couples various input/output devices to the processor 113 and memory 111. In some embodiments, the peripheral interface 114, the processor 113, and the memory controller 112 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The input/output unit 115 is used to provide input data to a user. The input/output unit 115 may be, but is not limited to, a mouse, a keyboard, and the like.
The display unit 116 provides an interactive interface (e.g., a user operation interface) between the electronic terminal 100 and a user or is used to display image data to a user reference. In this embodiment, the display unit may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. The support of single-point and multi-point touch operations means that the touch display can sense touch operations simultaneously generated from one or more positions on the touch display, and the sensed touch operations are sent to the processor for calculation and processing.
In this embodiment, the electronic terminal 100 is installed with an application program, such as WeChat, Taobao, Paibao, and the like, wherein the application program includes a built-in browser. Some information and the like received by the application program can be opened through the built-in browser. The browser can be started with a plurality of Service Workers to provide various services for the browser.
The Service Worker endows the browser with very strong capability, and can be used for intercepting resource requests, managing resource caches, pushing messages and the like. But at the same time, the cost is also low, for example, the starting speed is slow, and the starting cost of the Service Worker is too high, so that the running efficiency of some pages of the browser is low. Generally, the resource request in the browser and the Service Worker starting can be adopted in parallel, so that the influence of the Service Worker starting is reduced to a certain extent. The number of the Service workers used in the general browser is relatively large, and in order to reduce the consumption (for example, electric quantity and memory) of the Service workers to the resources of the electronic terminal 100, the Service workers are set to be capable of being stopped and restarted at any time. However, some application programs with built-in browsers also use relatively few Service workers, and at this time, the consumption of the Service workers on the resources of the electronic terminal 100 can still be received, and conversely, the uncertainty of the variable state of the Service Worker caused by the frequent starting and exiting of the Service Worker affects the operating efficiency of the application program, and further affects the use experience of the user on the application program. The method and the device can effectively solve the problem that the uncertainty of the variable state of the Service Worker influences the operating efficiency of the application program due to the frequent starting and exiting of the Service Worker.
The Service Worker may be a process in a multi-process mode or a thread in a single-process mode. For example, a process running in the Chrome browser or a thread running in the UC browser.
As shown in fig. 2, fig. 2 is a functional block diagram of a Service Worker control device 110 according to a preferred embodiment of the invention, where the Service Worker control device 110 includes: an information determination module 1101, a process control module 1102, and a registration module 1103. The registration module 1103 includes a parameter adding unit 11031.
The following embodiment of the Service Worker control method will describe in detail each functional module included in the Service Worker control device 110 in conjunction with the description of the flowcharts of fig. 3 to 4.
Please refer to fig. 3, which is a flowchart illustrating a Service Worker control method applied to the electronic terminal 100 shown in fig. 1 according to a preferred embodiment of the present invention. The specific flow shown in fig. 3 will be described in detail below.
Step S201, when a Service Worker is started in the application program of the electronic terminal and operates, determining whether the configuration information of the Service Worker is preset information. The process described in step S201 can be executed and implemented by the information determination module 1101.
In an embodiment, the configuration information is a specific parameter set for the Service Worker, the preset information is a preset value, and the following describes that the configuration information is the specific parameter set for the Service Worker.
In this embodiment, the Service Worker may operate after a built-in browser page of the application program is started. For example, the corresponding Service Worker may be started after the first resource request in the browser. In this embodiment, one application program of the electronic terminal may be started with a plurality of Service workers, and each Service Worker is used for processing different page tasks.
In this embodiment, the default value of the specified parameter corresponding to the Service Worker applied to the browser page built in the application program may be the preset value.
And when the value of the specified parameter is not the preset value, the electronic terminal controls the Service Worker to operate or exit by using a preset scheduling strategy. The preset scheduling policy may be that the Service Worker is started when the browser page receives a resource request, and the Service Worker is exited after the resource request is completed.
In one example, the specified parameters are represented by persistence. And when the electronic terminal judges that the persistence is true, judging that the specified parameter is the preset value. And when the persistence is equal to the flash or the persistence is equal to the null, judging that the specified parameter is not the preset value, and then controlling the Service Worker to run or exit by using a preset scheduling strategy. Of course, the "persistence" may also be assigned as "1" or "0", and the preset value may be represented by "1".
In another embodiment, the configuration information is received configuration information sent by a server, and the preset information is setting information that specifies that a specific Service Worker does not quit. In one example, when the application program starts a Service Worker, the server sends a configuration item corresponding to the Service Worker to the electronic terminal, where the configuration item includes the configuration information. The configuration information may be setting information that specifies that a specific Service Worker does not exit, or may be setting information that specifies that all Service workers do not exit. The configuration information may also be setting information that specifies that all Service workers automatically exit. In another example, when the application program is started, the server sends a configuration item corresponding to a Service Worker that the application program may start to the electronic terminal, where the configuration item includes the configuration information.
In another embodiment, the configuration information is preset in the application program by a user, and the preset information is setting information that specifies that a specific Service Worker does not quit. In one example, the application program may be a browser, and the configuration information is information in a configuration item of the browser. The configuration information may be setting information that specifies that a specific Service Worker does not exit, or may be setting information that specifies that all Service workers do not exit. The configuration information may also be setting information that specifies that all Service workers automatically exit.
Step S202, when the configuration information is preset information, controlling the Service Worker to continuously run until the application program exits. The process described in step S202 can be executed and implemented by the process control module 1102.
According to the method in the embodiment, when the configuration information set by the Service Worker is the preset information, the Service Worker is kept resident in the memory to reduce the starting times of the Service Worker, so that the starting time of the Service Worker is saved, and the execution efficiency of the function related to the Service Worker control in the application program is improved. In addition, the embodiment of the invention can be applied to the browser page in the application program, the number of the Service workers needed to be used by the browser page of the application program is less, and the consumption of the electronic terminal resources cannot be greatly influenced even if the Service workers keep the running state. On the contrary, if the number of the running Service workers is small, the traditional process scheduling strategy is adopted to control the starting and the quitting of the Service workers, and the cost of the starting time of the Service workers is often unbearable to the user. Therefore, under the specific application scene, the scheme is adopted, so that the Service Worker exits after the application program exits, and the user experience can be improved. In addition, because the specified parameters are set, the starting and exiting strategies of the Service Worker can be flexibly set, the method can adapt to process scheduling of various different scenes, and is more flexible compared with the existing scheduling strategies.
As shown in fig. 4, fig. 4 is a flowchart of a Service Worker control method according to another preferred embodiment of the present invention, which is similar to the previous embodiment, and the difference is that the method in the present embodiment further includes registration of the Service Worker, and specifically, the method in the present embodiment may include the following steps:
step S301, registering the Service Worker in the electronic terminal. The process described in the step S301 can be executed and implemented by the registration module 1103.
In this embodiment, the specified parameter may be set for the Service Worker when the Service Worker is registered.
In this embodiment, in the step S301, the registration module 113 may register the Service Worker in the electronic terminal through a JavaScript API interface or a webview interface.
In one embodiment, a Service Worker is registered through the JavaScript API before being used for the first time. For example, the Service Worker is registered by a Service Worker container (scripts), wherein the Service Worker container () represents a registration function; the script URL represents a uniform resource locator of a Service Worker script; the options represent selection objects provided by registration. In one example, the options include a parameter scope, where the scope represents the action threshold of the Service Worker.
In this embodiment, the specified parameter is added to one of the parameters in the registration function of the Service Worker. The process described in this step can be executed and implemented by the parameter adding unit 11031.
In one embodiment, the specified parameter may be inserted into the options parameter, where the options includes two parameters "scope" and the specified parameter "persistence". In another embodiment, the specified parameter may be inserted into the script url parameter, for example, a parameter "# persistence ═ true" is added to the script url, such as "service-worker.
In another embodiment, the specified parameter may also be inserted in a registration function in a static interface that provides webview. In this embodiment, the specified parameter may be a basis for determining whether one or more Service workers need to exit, or may be a basis for specifying whether all Service workers need to exit. In one example, this may be accomplished by the following registration function: public static setService Worker persistence status (script URL, status); the parameter script URL can specify a uniform resource locator of one or more Service Worker, can also be null, and can represent that all the Service Worker in the application program is controlled when the parameter script URL is null; the parameter status may represent the specified parameter; public static setserviceworkeperssiststatus () represents a registration function. In an embodiment, the specified parameter may also be inserted into the scriptURL parameter, for example, a parameter "# persistence ═ true" is added to the scriptURL.
Step S302, when a Service Worker runs after the application program of the electronic terminal is started, judging whether the value of the designated parameter set by the Service Worker is a preset value. The process described in step S302 can be executed and implemented by the information determination module 1101.
In this embodiment, the Service Worker operates after the electronic program is started on the page of the built-in browser of the application program.
Step S303, when the value of the designated parameter is a preset value, controlling the Service Worker to continuously run until the application program exits. The process described in step S303 can be performed and implemented by the process control module 1102.
In one example, when the Service Worker is registered through the JavaScript API interface before being used for the first time, and the parameter "persistence" is true, the Service Worker is controlled to continuously run until the application program exits. And when the parameter 'persistence' is other, controlling the Service Worker to keep working according to the original operation logic. The original operation logic of the Service Worker can be started when the Service Worker needs to be used and quit after the use is finished.
In one example, the specified parameter may be inserted into a registry function in a static interface providing webview, and when the parameter status is 1, the one or more Service workers specified by the parameter script url are kept running continuously until the application program exits. And when the parameter status is 2, clearing the state information which is set by one or more Service Worker and is specified by the parameter script URL. When the parameter status is another value, keeping one or more Service workers specified by the parameter script url to work according to the current operation logic, for example, the current operation logic of one or more Service workers specified by the parameter script url may be started when the Service is needed to be used, and quitting after the use is finished; the current operation logic of one or more Service workers specified by the parameter script url can also be continuously operated until the application program exits. In addition, when the parameter script url is empty, it indicates that the parameter script url specifies that all Service workers operate according to the policy corresponding to the parameter status.
For other details of the present embodiment, further reference may be made to the description of the previous embodiment, which is not described herein again.
According to the method in the embodiment, the purpose of inserting the specified parameter can be realized by adding the specified parameter in the existing parameter when the Service Worker is registered, functions do not need to be additionally added, the Service Worker can be kept resident in the memory under a specific scene by the least flow, the starting times of the Service Worker are reduced, the starting time of the Service Worker is saved, and the execution efficiency of the function related to the Service Worker control in the application program is improved.
In other embodiments, when the Service Worker calls a logout function to perform a reverse registration, or when the Service Worker performs a version update, the Service Worker exits. In an embodiment, when it is determined that the Service Worker calls a logout function to perform a reverse registration for version updating, the Service Worker can exit even if the specified parameter is the preset value. In another embodiment, when it is determined that the Service Worker calls a logout function to perform a reverse registration or a version update, the value of the specified parameter may also be updated to control the Service Worker to exit.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (19)

1. A Service Worker control method is applied to an electronic terminal, and is characterized by comprising the following steps:
when a Service Worker is started in the application program of the electronic terminal and operates, judging whether the configuration information of the Service Worker is preset information;
when the configuration information is preset information, controlling the Service Worker to continuously run until the application program exits;
the configuration information is a designated parameter set for the Service Worker, and the preset information is a preset value;
and adding the specified parameters into the existing parameters when the Service Worker is registered.
2. The Service Worker control method of claim 1, wherein the method further comprises:
registering the Service Worker in the electronic terminal;
and setting the specified parameters for the Service Worker.
3. The Service Worker control method according to claim 2, wherein the step of registering the Service Worker in the electronic terminal includes:
and registering the Service Worker in the electronic terminal through a JavaScript API interface or a webview interface.
4. The Service Worker control method of claim 2 wherein the specified parameter is added to one of the parameters of the registration function of the Service Worker.
5. The Service Worker control method of claim 4, wherein the specified parameter is added to an option parameter of a registration function of the Service Worker.
6. The Service Worker control method of claim 4 wherein the specified parameter is added to a Script URL parameter of a registration function of the Service Worker.
7. The Service Worker control method of claim 1, wherein the configuration information is received configuration information sent by a server, and the preset information is setting information that specifies that a specific Service Worker does not exit.
8. The Service Worker control method of claim 1, wherein the configuration information is preset in the application by a user, and the preset information is setting information that specifies that a particular Service Worker does not exit.
9. The Service Worker control method of any one of claims 1 to 8, wherein the Service Worker runs after a built-in browser page of the application is started.
10. A Service Worker control device is applied to an electronic terminal, and is characterized by comprising:
the information judgment module is used for judging whether the configuration information of the Service Worker is preset information or not when the Service Worker runs after the application program of the electronic terminal is started;
the process control module is used for controlling the Service Worker to continuously run until the application program exits when the configuration information is preset information;
the configuration information is a designated parameter set for the Service Worker, and the preset information is a preset value;
and adding the specified parameters into the existing parameters when the Service Worker is registered.
11. The Service Worker controller of claim 10 wherein the device further comprises:
and the registration module is used for registering the Service Worker in the electronic terminal and setting the specified parameters for the Service Worker.
12. The Service Worker control device of claim 11, wherein the registration module registers the Service Worker in the electronic terminal through a JavaScript API interface or a webview interface.
13. The Service Worker controller of claim 11 wherein the registration module further comprises:
and the parameter adding unit is used for adding the specified parameter into one parameter in the registration function of the Service Worker.
14. The Service Worker control device of claim 13 wherein the specified parameter is added to an option parameter of a registration function of the Service Worker.
15. The Service Worker controller of claim 13 wherein the specified parameter is added to a Script URL parameter of the registration function of the Service Worker.
16. The Service Worker controller of claim 10 wherein the configuration information is received configuration information sent by a server and the predetermined information is setting information that specifies that a particular Service Worker does not exit.
17. The Service Worker controller of claim 10 wherein the configuration information is preset by a user in the application, the preset information being setting information that specifies that a particular Service Worker does not exit.
18. A Service Worker control device according to any one of claims 10 to 17 wherein the Service Worker runs after a built-in browser page of the application is started.
19. An electronic terminal, characterized in that the electronic terminal comprises:
a memory;
a processor;
the Service Worker control device of any one of claims 10 to 18 installed or stored in the memory and executed by the processor.
CN201710571296.6A 2017-07-13 2017-07-13 Service Worker control method and device and electronic terminal Active CN108280113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710571296.6A CN108280113B (en) 2017-07-13 2017-07-13 Service Worker control method and device and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710571296.6A CN108280113B (en) 2017-07-13 2017-07-13 Service Worker control method and device and electronic terminal

Publications (2)

Publication Number Publication Date
CN108280113A CN108280113A (en) 2018-07-13
CN108280113B true CN108280113B (en) 2021-04-30

Family

ID=62801187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710571296.6A Active CN108280113B (en) 2017-07-13 2017-07-13 Service Worker control method and device and electronic terminal

Country Status (1)

Country Link
CN (1) CN108280113B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446455B (en) * 2018-09-14 2021-07-13 阿里巴巴(中国)有限公司 Page processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103457841A (en) * 2013-09-17 2013-12-18 北京京东尚科信息技术有限公司 Message handling method and message handling device based on long connection
CN106598745A (en) * 2016-11-24 2017-04-26 合肥中科云巢科技有限公司 Thread management method and system
CN106648861A (en) * 2016-12-05 2017-05-10 广州优视网络科技有限公司 Method and device for keeping background service process activated

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516558B (en) * 2012-06-30 2016-12-21 北京新媒传信科技有限公司 Monitor supervision platform and on server application monitoring method
US10277539B2 (en) * 2015-07-31 2019-04-30 International Business Machines Corporation Intelligent messaging reply system and method
CN106775952B (en) * 2016-12-29 2020-09-22 北京奇虎科技有限公司 Android application process management method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103457841A (en) * 2013-09-17 2013-12-18 北京京东尚科信息技术有限公司 Message handling method and message handling device based on long connection
CN106598745A (en) * 2016-11-24 2017-04-26 合肥中科云巢科技有限公司 Thread management method and system
CN106648861A (en) * 2016-12-05 2017-05-10 广州优视网络科技有限公司 Method and device for keeping background service process activated

Also Published As

Publication number Publication date
CN108280113A (en) 2018-07-13

Similar Documents

Publication Publication Date Title
US11231959B2 (en) Foreground and background switching entry generation and display following quit operations
JP7241729B2 (en) Resource scheduling method, device, facility, storage medium, and program
EP2677422B1 (en) Automatic Application Updates
US10712915B2 (en) Information presentation using a client on a terminal
EP3401787A1 (en) Analyzing resource utilization of a cloud computing resource in a cloud computing environment
KR20180097674A (en) Memory reclaim method and apparatus
US9875141B2 (en) Managing pools of dynamic resources
US11698813B2 (en) Electronic device and method for managing computing resources of at least one cloud server for providing cloud service
CN103412793A (en) Method, device and system for optimizing system resources
CN107291481B (en) Component updating method, device and system
CN109684573B (en) Target picture display method and device, storage medium and electronic equipment
CN109117153B (en) Application processing method, device, terminal and storage medium
CN108259526B (en) Data transmission method and device
CN113448728B (en) Cloud resource scheduling method, device, equipment and storage medium
CN104932933A (en) Spin lock acquisition method and apparatus
CN110647704B (en) Page updating method, device and equipment
CN112631679A (en) Preloading method and device for micro-application
CN111079048A (en) Page loading method and device
CN108280113B (en) Service Worker control method and device and electronic terminal
CN110286954B (en) Application program starting method and device and storage medium
CN112559050A (en) Method and device for processing concurrency number of client asynchronous request information
CN107526675B (en) Method and device for recording application information, storage medium and electronic equipment
CN113721936A (en) Application management method, intelligent terminal, device and storage medium
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
JP7209033B2 (en) Scheduling system and method for online program updates

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200622

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510000 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio square 14 storey tower

Applicant before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant