CN110389936B - Method, equipment and computer storage medium for starting small program - Google Patents

Method, equipment and computer storage medium for starting small program Download PDF

Info

Publication number
CN110389936B
CN110389936B CN201910676590.2A CN201910676590A CN110389936B CN 110389936 B CN110389936 B CN 110389936B CN 201910676590 A CN201910676590 A CN 201910676590A CN 110389936 B CN110389936 B CN 110389936B
Authority
CN
China
Prior art keywords
applet
host application
host
running environment
files
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
CN201910676590.2A
Other languages
Chinese (zh)
Other versions
CN110389936A (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.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology 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 Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201910676590.2A priority Critical patent/CN110389936B/en
Publication of CN110389936A publication Critical patent/CN110389936A/en
Priority to PCT/CN2020/104099 priority patent/WO2021013243A1/en
Application granted granted Critical
Publication of CN110389936B publication Critical patent/CN110389936B/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/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Abstract

The invention provides a method, equipment and a computer storage medium for starting an applet, wherein the method comprises the following steps: a host application of the terminal equipment acquires an event for triggering the start of the small program; determining whether a file which is depended by the applet running environment and stored in a host application exists in the terminal equipment; if so, initializing an operating environment by using a file on which the applet operating environment depends to start the applet; otherwise, downloading and storing the file dependent on the applet running environment from the server side, and setting the storage position of the file dependent on the applet running environment to be readable by other host applications. The invention solves the problem of repeated downloading of files depending on the running environment of the small program, improves the starting efficiency of the small program and saves resources.

Description

Method, equipment and computer storage medium for starting small program
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of computer application technologies, and in particular, to a method and an apparatus for starting an applet, and a computer storage medium.
[ background of the invention ]
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
A Mini Program (Mini Program) is an application that can be used without installation, and runs in an environment provided by a host application. It is becoming more and more widely used because it is readily available without the need for installation and removal. Currently, when each host application starts an applet, the host application needs to locally download and initialize a set of applet running environment. However, on one hand, the waiting time for starting the applet is very long due to the fact that the browser kernel and the JS engine which are depended by the applet running environment are very large in size, and on the other hand, the resource waste is inevitably caused.
[ summary of the invention ]
In view of this, the present invention provides a method, an apparatus, and a computer storage medium for starting an applet, so as to improve the efficiency of starting the applet and save resources.
The specific technical scheme is as follows:
in a first aspect, the present invention provides a method for starting an applet, which is executed by a host application of a terminal device, and includes:
acquiring an event for triggering the start of the small program;
determining whether a file which is depended by the applet running environment and stored in a host application exists in the terminal equipment;
if so, initializing an operating environment by using a file on which the applet operating environment depends to start the applet;
otherwise, downloading and storing the file dependent on the applet running environment from the server side so as to initialize the running environment and start the applet, wherein the storage position of the file dependent on the applet running environment is set to be readable by other host applications.
According to a preferred embodiment of the present invention, the determining whether a file on which the applet running environment is stored by the host application exists in the terminal device includes: confirming each host application belonging to the same host alliance with the host application in the terminal equipment, and judging whether each determined host application stores a file which is depended by the small program running environment;
setting the storage position of the file which is depended by the small program running environment to be readable by other host applications, wherein the storage position comprises the following steps: setting storage positions of files on which the applet running environment depends to be readable for each host application of the host alliance;
wherein, each host application in the same host alliance adopts the same applet standard.
According to a preferred embodiment of the invention, the method further comprises:
and the slave server side synchronizes the information of each host application belonging to the same host alliance with the host application, and determines the host application information of the host alliance which is installed by the terminal equipment.
According to a preferred embodiment of the present invention, the determining whether a file on which the applet running environment is stored by the host application exists in the terminal device includes:
and judging whether a host application stores a file which is depended by the applet running environment and accords with the version requirement of the host application.
According to a preferred embodiment of the present invention, the storage location of the file on which the applet runs is under a private directory of the host application.
According to a preferred embodiment of the present invention, the determining whether a file on which the applet running environment is stored by the host application exists in the terminal device includes:
firstly, determining whether a file which is depended by the small program running environment exists in a private directory of a host application;
if the files do not exist, whether the files which are depended by the applet running environment exist in the private directories of other host applications or not is judged, and if the files are depended by the applet running environment exist in the terminal equipment, the files which are depended by the applet running environment are loaded from the private directories of the other host applications.
According to a preferred embodiment of the present invention, the determining whether a file on which the applet running environment is stored by the host application exists in the terminal device includes: judging whether the shared storage space of the terminal equipment stores the file which is depended by the small program running environment;
the downloading and storing of the files dependent on the applet running environment from the server side comprises: and downloading the files dependent on the applet running environment from the server and storing the files in the shared storage space of the terminal equipment.
According to a preferred embodiment of the present invention, the file on which the applet running environment depends includes:
a kernel dynamic link library SO, a JS engine SO, and an applet framework SO.
In a second aspect, the present invention provides an apparatus comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method as in any above.
In a third aspect, a storage medium contains computer-executable instructions for performing a method as any one of the above when executed by a computer processor.
According to the technical scheme, the host applications in the same terminal device can share the downloaded applet running environment dependent files to initialize the running environment. Therefore, the problem that the file is repeatedly downloaded depending on the running environment of the small program is solved, the starting efficiency of the small program is improved, and resources are saved.
[ description of the drawings ]
FIG. 1 is a system architecture diagram according to an embodiment of the present invention;
FIG. 2 is a flow chart of a main method provided by the embodiment of the present invention;
fig. 3 is a flowchart of a method executed by the host application 1 according to an embodiment of the present invention;
fig. 4 is a flowchart of a method executed by the host application 1 according to the second embodiment of the present invention;
FIG. 5 illustrates a block diagram of an exemplary computer system suitable for use to implement embodiments of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
In order to facilitate an understanding of the present invention, a system architecture and a main concept to which the present invention relates will be described first. As shown in fig. 1, the system architecture mainly includes a host application and a server corresponding to the host application.
The small program runs on the terminal equipment depending on the host application, and the environment where the small program runs is provided by the host application. Wherein the terminal devices may include, but are not limited to, devices such as: intelligent mobile terminals, intelligent home devices, network devices, wearable devices, intelligent medical devices, PCs (personal computers), and the like. Wherein the smart mobile device may include devices such as a cell phone, a tablet computer, a notebook computer, a PDA (personal digital assistant), an internet automobile, etc. The smart home device may include a smart home device, such as a smart television, a smart sound box, and the like. The network devices may include devices such as switches, wireless APs, servers, and the like. Wearable devices may include devices such as smart watches, smart glasses, smart bracelets, virtual reality devices, augmented reality devices, mixed reality devices (i.e., devices that can support virtual reality and augmented reality), and so forth.
Multiple host applications may be contained in the same terminal device, and fig. 1 illustrates an example of the host application 1 and the host application 2. Multiple applets may also be run in one host application, and different host applications may run different applets, or the same applet. As shown in fig. 1, an applet a and an applet b are run in the host application 1, and an applet b and an applet c are run in the host application 2.
When the applet runs in the host application, a certain running environment needs to be relied on, and the running environment needs to be initialized by using a file of the running environment before the applet is started.
Each host application has a corresponding server side, as shown in fig. 1, a host application 1 corresponds to a server side 1, and a host application 2 corresponds to a server side 2. Each host application can interact with the corresponding server side.
Each server may be a single server or a server group consisting of a plurality of servers. It should be understood that the number of terminal devices, hosting applications, applets, server sides in fig. 1 is merely illustrative. Any number of terminal devices, host applications, applets, server sides may be present, as desired for implementation.
The core idea of the invention is that each host application in the same terminal device shares the file depending on the downloaded applet running environment to start the applet, thereby solving the problem of repeated downloading of the file depending on the applet running environment, improving the starting efficiency of the applet and saving resources. Fig. 2 is a flowchart of a main method provided in an embodiment of the present invention, where the method is executed by a host application of a terminal device, and an execution device may be a functional unit located in the host application of the terminal device, such as a plug-in or a Software Development Kit (SDK). As shown in fig. 2, the method mainly includes the following steps:
in 201, an event is acquired that triggers the start of an applet.
The invention is not limited to the type of event that triggers the launching of the applet in the host application, and for example, the user may click the applet icon in the host application to trigger the launching of the applet, or the user may click a link in the host application to trigger the launching of the corresponding applet, and so on.
In 202, confirming whether a file which is depended by the applet running environment and stored by the host application exists in the terminal equipment, and if so, executing 203; otherwise, 204 is performed.
Since the applet needs to depend on a certain running environment during running, the host application needs to initialize the running environment with the file that the applet running environment depends on before starting the applet. In this embodiment, the terminal device may first determine whether the host application stores a file that the applet runs on in the environment, and if so, the host application is directly utilized; and if not, continuously judging whether other host applications store files which are depended by the applet running environment.
The files on which the applet running environment depends can include a kernel SO (dynamic link library), a JS engine SO, an applet framework SO, and the like. Where the kernel refers to the browser kernel, the JS engine may be, for example, the V8 engine.
In 203, the operating environment is initialized by the file that the applet operating environment depends on to start the applet, and the process is ended.
If the host application stores the file which is dependent on the small program running environment in the terminal equipment, the running environment is initialized by directly utilizing the stored file which is dependent on the running environment without repeated downloading.
In 204, the files depended by the applet running environment are downloaded and stored from the server side to initialize the running environment and start the applet, and the storage position of the files depended by the applet running environment is set to be readable by other host applications.
If the host application does not store the file depending on the applet running environment in the terminal device, the file needs to be downloaded from the server side and stored. In order for the downloaded applet running environment dependent file to be usable by other hosting applications as well, the storage location is readable by other hosting applications in addition to the storage location where the applet running environment dependent file is readable by the hosting application.
And then the host application initializes the running environment by using the file which is depended by the running environment of the downloaded small program, and starts the small program.
In the embodiment of the present invention, a method for sharing a stored file dependent on an applet running environment by a host application in the same terminal device is adopted, wherein the sharing method may adopt, but is not limited to, the following several methods:
the first mode is as follows: and the host application stores the downloaded files depending on the applet running environment in a private directory of the host application, and the private directory is set to be readable to other host applications.
The second mode is as follows: and the host application stores the downloaded files dependent on the small program running environment in a shared storage space of the terminal equipment, and each host application in the terminal equipment reads the files dependent on the small program running environment from the shared storage space to initialize the running environment.
The above two modes will be described in detail with reference to specific embodiments. In addition, it should be noted that it is desirable that all host applications use the same applet standard. Often times, however, in practice, some host applications use the same applet standard, while other host applications use other applet standards. Then a hosting application that employs the same applet standards may be referred to as a hosting federation. The method for sharing files dependent on the applet running environment provided by the embodiment of the invention is adopted for each host application belonging to the same host alliance. And the host applications belong to the same host alliance, the host applications can be uniformly configured at the server side, and then the host applications are obtained from the server side. In the following embodiments, the manner in which the hosted applications of the same hosting federation share files that are dependent on the applet running environment is described as an example.
The first embodiment,
Fig. 3 is a flowchart of a method according to an embodiment of the present invention, and the first implementation manner is described in this embodiment. Assuming that the user wants to start the applet c in the host application 1, as shown in fig. 3, the method performed by the host application 1 may include the following processes:
in 301, when the host application 1 is started, the information of the host federation is synchronized from the server and stored in the database local to the host application 1.
When the host application 1 is started, a synchronization request of the host federation may be sent to the corresponding server side, and the corresponding server side returns information of each host application of the host federation, such as a packet name, to the host application 1. The host application 1 can then determine the host application information of the host alliance that the terminal device has installed.
When the host application 1 is started, the locally installed application program of the terminal device can be scanned, and then the host application information of the host alliance installed in the terminal device can be determined by further using the information of the host alliance synchronized from the server, and the information of the host application can be stored in a database of the host application in a list form.
For example, it is assumed that the information of the hosting federation sent by the server includes: host application 1, host application 2, host application 3, host application 4 … …. After scanning the terminal device, the host application 1 finds that the terminal device is provided with the host application 1 and the host application 2, and then the host application 1 can store the information of the host application 1 and the host application 2 in a local database of the host application 1.
In 302, after an event that the applet c is started in the host application 1 is acquired, whether a file that the applet c depends on the operating environment is stored in a private directory of the host application 1 is judged, and if so, 303 is executed; otherwise, 304 is performed.
In 303, the running environment is initialized by using the file that the running environment of the applet c stored in the private directory of the host application 1 depends on, so as to start the applet c, and the starting process is ended.
In 304, inquiring whether files on which the applet c runs and depends are stored in private directories of other host applications of the same host alliance, and if so, executing 305; otherwise, 306 is performed.
In this step, on one hand, it is determined whether other hosting applications of the same hosting federation store files on which the applet c runs environment depends, and on the other hand, it is determined whether the stored files on which the running environment depends meet the version requirements of the hosting application 1, and if both the two aspects are met, the execution is performed 305, and otherwise, the execution is performed 306. Typically the host application 1 considers the version requirements to be met if the required version is lower than or equal to the version stored by the other host application.
In 305, the host application 1 reads the files that the applet c runs on by the running environment from the private directories of other host applications, and initializes the running environment and starts the applet c in the host application 1, and the starting process is ended.
For example, if the host application 2 stores a file dependent on the operating environment of the applet c, the host application 1 reads the file dependent on the operating environment from the private directory of the host application 2, initializes the operating environment in the host application 1, and starts the applet c.
In 306, the host application 1 downloads files that the applet c depends on in the running environment from the corresponding server, stores the files in the private directory of the host application 1, and sets the authority of the private directory to be readable by each host application of the host federation.
As a preferred embodiment, in order to ensure the security of the content in the private directory, the authority of the private directory may be set to be readable and unwritable by each host application of the host federation.
Normally, files that the applet running environment depends on are available to each applet of the same hosting federation, with only version differences. Thus, multiple versions of the applet running environment dependent files can be stored on the server side. The host application 1 may send its version information to the server side, so that the server side sends the file that the applet running environment of the corresponding version depends on to the host application 1.
In 307, the host application 1 initializes the runtime environment with the downloaded file and starts the applet c.
Example II,
Fig. 4 is a flowchart of a method provided in a second embodiment of the present invention, and the second implementation manner is described in this embodiment. Assuming that the user wants to start the applet c in the host application 1, as shown in fig. 4, the method performed by the host application 1 may include the following processes:
in 401, the host application 1 gets the event that applet c starts.
In 402, the host application 1 determines whether the shared storage space of the terminal device stores a file that the applet c runs on in the environment, if yes, the execution 403 is executed; otherwise 404 is performed.
In this embodiment, a shared storage space is set in the terminal device, and the shared storage space opens read-write permission for each host application in the host federation. The host applications in the host alliance store the files which are depended by the downloaded small program running environment in the shared storage space so as to share the files in the range of the host alliance.
In this step, it is also determined whether the shared storage space stores the files on which the applet c runs and depends on the operating environment, and whether the stored files on which the applet c runs and depends on the operating environment meet the version requirement of the host application 1, if both the two are met, 403 is executed, otherwise 404 is executed. Typically the host application 1 considers the version requirements to be met if the required version is lower than or equal to the already stored version.
In 403, the host application 1 reads the file that the applet c depends on the running environment from the shared storage space, initializes the running environment and starts the applet c, and ends the start flow.
At 404, the host application 1 downloads the files dependent on the running environment of the applet c from the corresponding server side, and stores the files in the shared storage space of the terminal device.
For the host application 1, the higher version of the package of the applet c needs to be downloaded due to the version, and the existing lower version of the package of the applet c in the shared storage space may be retained or deleted.
The form of the shared memory space is not limited in the present invention, and for example, SDCard may be used, and other forms of shared memory space may also be used.
In 405, the host application 1 initializes the runtime environment with the downloaded file and starts the applet c.
Fig. 5 illustrates a block diagram of an exemplary computer system 012 suitable for use to implement an embodiment of the invention. The computer system 012 shown in fig. 5 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in fig. 5, the computer system 012 is represented in the form of a general purpose computing device. The components of computer system 012 may include, but are not limited to: one or more processors or processing units 016, a system memory 028, and a bus 018 that couples various system components including the system memory 028 and the processing unit 016.
Bus 018 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The computer system 012 typically includes a variety of computer system readable media. These media may be any available media that may be accessed by computer system 012 and includes both volatile and nonvolatile media, removable and non-removable media.
System memory 028 can include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)030 and/or cache memory 032. The computer system 012 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 034 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be connected to bus 018 via one or more data media interfaces. System memory 028 can include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the present invention.
Program/utility 040 having a set (at least one) of program modules 042 may be stored, for example, in system memory 028, such program modules 042 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 042 generally perform the functions and/or methodologies of embodiments of the present invention as described herein.
The computer system 012 may also communicate with one or more external devices 014 (e.g., keyboard, pointing device, display 024, etc.), hi the present invention, the computer system 012 communicates with an external radar device, and may also communicate with one or more devices that enable a user to interact with the computer system 012, and/or with any devices (e.g., network card, modem, etc.) that enable the computer system 012 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 022. Also, the computer system 012 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 020. As shown, the network adapter 020 communicates with the other modules of the computer system 012 via bus 018. It should be appreciated that although not shown in fig. 5, other hardware and/or software modules may be used in conjunction with the computer system 012, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 016 executes programs stored in the system memory 028, thereby executing various functional applications and data processing, such as implementing the method flow provided by the embodiment of the present invention.
The computer program described above may be provided in a computer storage medium encoded with a computer program that, when executed by one or more computers, causes the one or more computers to perform the method flows and/or apparatus operations shown in the above-described embodiments of the invention. For example, the method flows provided by the embodiments of the invention are executed by one or more processors described above.
With the development of time and technology, the meaning of media is more and more extensive, and the propagation path of computer programs is not limited to tangible media any more, and can also be downloaded from a network directly and the like. Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for initiating an applet, performed by a host application of a terminal device, the method comprising:
acquiring an event for triggering the start of the small program;
confirming whether the host application and other host applications in the terminal equipment store files which are depended by the small program running environment;
if so, initializing an operating environment by using a file on which the applet operating environment depends to start the applet;
otherwise, downloading and storing the file dependent on the applet running environment from the server side so as to initialize the running environment and start the applet, wherein the storage position of the file dependent on the applet running environment is set to be readable by other host applications.
2. The method according to claim 1, wherein confirming whether the native host application and other host applications in the terminal device store the files on which the applet runs depends comprises: confirming each host application belonging to the same host alliance with the host application in the terminal equipment, and judging whether each determined host application stores a file which is depended by the small program running environment;
setting the storage position of the file which is depended by the small program running environment to be readable by other host applications, wherein the storage position comprises the following steps: setting storage positions of files on which the applet running environment depends to be readable for each host application of the host alliance;
wherein, each host application in the same host alliance adopts the same applet standard.
3. The method of claim 2, further comprising:
and the slave server side synchronizes the information of each host application belonging to the same host alliance with the host application, and determines the host application information of the host alliance which is installed by the terminal equipment.
4. The method according to claim 1, wherein confirming whether the native host application and other host applications in the terminal device store the files on which the applet runs depends comprises:
and judging whether a host application stores a file which is depended by the applet running environment and accords with the version requirement of the host application.
5. The method of claim 1, wherein the storage location of the applet running environment dependent file is under a private directory of the native host application.
6. The method according to claim 5, wherein confirming whether the native host application and other host applications in the terminal device store the files on which the applet runs depends comprises:
firstly, determining whether a file which is depended by the small program running environment exists in a private directory of a host application;
if the files do not exist, whether the files which are depended by the applet running environment exist in the private directories of other host applications or not is judged, and if the files are depended by the applet running environment exist in the terminal equipment, the files which are depended by the applet running environment are loaded from the private directories of the other host applications.
7. The method according to claim 1, wherein confirming whether the native host application and other host applications in the terminal device store the files on which the applet runs depends comprises: judging whether the shared storage space of the terminal equipment stores the file which is depended by the small program running environment;
the downloading and storing of the files dependent on the applet running environment from the server side comprises: and downloading the files dependent on the applet running environment from the server and storing the files in the shared storage space of the terminal equipment.
8. The method of claim 1, wherein the applet runs the environment dependent file comprising:
a kernel dynamic link library SO, a JS engine SO, and an applet framework SO.
9. An apparatus for initiating an applet, the apparatus comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
10. A storage medium containing computer-executable instructions for performing the method of any one of claims 1-8 when executed by a computer processor.
CN201910676590.2A 2019-07-25 2019-07-25 Method, equipment and computer storage medium for starting small program Active CN110389936B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910676590.2A CN110389936B (en) 2019-07-25 2019-07-25 Method, equipment and computer storage medium for starting small program
PCT/CN2020/104099 WO2021013243A1 (en) 2019-07-25 2020-07-24 Method for starting mini program, device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910676590.2A CN110389936B (en) 2019-07-25 2019-07-25 Method, equipment and computer storage medium for starting small program

Publications (2)

Publication Number Publication Date
CN110389936A CN110389936A (en) 2019-10-29
CN110389936B true CN110389936B (en) 2021-05-14

Family

ID=68287446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910676590.2A Active CN110389936B (en) 2019-07-25 2019-07-25 Method, equipment and computer storage medium for starting small program

Country Status (2)

Country Link
CN (1) CN110389936B (en)
WO (1) WO2021013243A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110389936B (en) * 2019-07-25 2021-05-14 上海连尚网络科技有限公司 Method, equipment and computer storage medium for starting small program
CN112835632B (en) * 2019-11-06 2022-05-27 上海连尚网络科技有限公司 Method and equipment for calling end capability and computer storage medium
CN110879728A (en) * 2019-11-18 2020-03-13 口碑(上海)信息技术有限公司 Method and device for starting small program
CN110909319B (en) * 2019-11-29 2022-03-29 Oppo(重庆)智能科技有限公司 Application processing method and related product
CN110908738B (en) 2019-11-29 2021-03-23 百度在线网络技术(北京)有限公司 Method and device for running small program
CN111722886A (en) * 2020-06-23 2020-09-29 平安医疗健康管理股份有限公司 Tool starting method and device, computer equipment and computer readable storage medium
CN111787088B (en) 2020-06-28 2023-04-28 百度在线网络技术(北京)有限公司 Method and device for processing small program data
CN112149169A (en) * 2020-10-12 2020-12-29 Oppo广东移动通信有限公司 Application access method and device and computer readable storage medium
CN112416374B (en) * 2020-11-18 2022-10-25 北京字跳网络技术有限公司 Data processing method, device, terminal and storage medium
CN113360212A (en) * 2021-06-30 2021-09-07 远光软件股份有限公司 Application program starting method, computer device and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7484095B2 (en) * 2003-01-16 2009-01-27 Sun Microsystems, Inc. System for communicating program data between a first device and a second device
US10496381B2 (en) * 2017-11-27 2019-12-03 Microsoft Technology Licensing, Llc Progressive web app auto-ingestion
CN109710333A (en) * 2018-12-28 2019-05-03 上海掌门科技有限公司 Processing method, equipment and the computer readable storage medium of boarding application
CN109933442B (en) * 2019-03-04 2022-12-30 上海连尚网络科技有限公司 Method, apparatus and computer storage medium for communication between small program platforms
CN109995877B (en) * 2019-04-12 2021-10-12 上海连尚网络科技有限公司 Information pushing method and device
CN110389936B (en) * 2019-07-25 2021-05-14 上海连尚网络科技有限公司 Method, equipment and computer storage medium for starting small program

Also Published As

Publication number Publication date
CN110389936A (en) 2019-10-29
WO2021013243A1 (en) 2021-01-28

Similar Documents

Publication Publication Date Title
CN110389936B (en) Method, equipment and computer storage medium for starting small program
CN110389935B (en) Method, equipment and computer storage medium for starting small program
CN110413386B (en) Multi-process processing method, device, terminal equipment and computer readable storage medium
CN110377369B (en) Method, device and computer storage medium for running small program
CN107992308B (en) Plug-in management method for android terminal application program
CN109933442B (en) Method, apparatus and computer storage medium for communication between small program platforms
CN108710515B (en) Application preloading method and device, storage medium and terminal
CN110083399B (en) Applet running method, computer device and storage medium
US20140208326A1 (en) File presenting method and apparatus for a smart terminal
CN114625481B (en) Data processing method and device, readable medium and electronic equipment
CN109150956B (en) Method, device and equipment for realizing SDK pushing and computer storage medium
CN111079125A (en) Method and device for calling third-party library dynamic lifting authority by application program
CN112835632B (en) Method and equipment for calling end capability and computer storage medium
CN114025238A (en) Native android application cloud virtualization method based on Linux server
US8560299B2 (en) Opening a message catalog file for a language that is not installed
CN114691300A (en) Hot migration method of virtual machine instance
CN113986402A (en) Function calling method and device, electronic equipment and storage medium
CN111240766A (en) Application starting method and device, electronic equipment and computer readable storage medium
CN113407165B (en) SDK generation and self-upgrade method, device, readable medium and equipment
US10503430B2 (en) Method and device for clearing data and electronic device
CN111580883B (en) Application program starting method, device, computer system and medium
CN111596997B (en) UI information request method, device, terminal and storage medium
CN113986385A (en) Item font library loading method and device, electronic equipment and storage medium
CN113791777A (en) Picture display method and device, computer readable storage medium and electronic equipment
CN112612531A (en) Application program starting method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant