WO2021013243A1 - Method for starting mini program, device, and computer storage medium - Google Patents

Method for starting mini program, device, and computer storage medium Download PDF

Info

Publication number
WO2021013243A1
WO2021013243A1 PCT/CN2020/104099 CN2020104099W WO2021013243A1 WO 2021013243 A1 WO2021013243 A1 WO 2021013243A1 CN 2020104099 W CN2020104099 W CN 2020104099W WO 2021013243 A1 WO2021013243 A1 WO 2021013243A1
Authority
WO
WIPO (PCT)
Prior art keywords
applet
host application
running environment
host
files
Prior art date
Application number
PCT/CN2020/104099
Other languages
French (fr)
Chinese (zh)
Inventor
苗景磊
Original Assignee
上海连尚网络科技有限公司
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 上海连尚网络科技有限公司 filed Critical 上海连尚网络科技有限公司
Publication of WO2021013243A1 publication Critical patent/WO2021013243A1/en

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for starting a mini program, a device, and a computer storage medium. The method comprises: a host application of a terminal device obtaining an event for triggering a mini program to start; determining whether or not the terminal device is provided with a host application having a stored file on which an operating environment of the mini program is dependent; if so, initializing the operating environment using the file, and starting the mini program; and if not, downloading the file from a server and storing same, and configuring the storage location of the file such that the file can also be read by other host applications. The invention solves the problem of repeated downloading of the file on which the operating environment of a mini program is dependent, thereby improving the starting efficiency of the mini program and saving resources.

Description

一种启动小程序的方法、设备和计算机存储介质Method, equipment and computer storage medium for starting small program 【技术领域】【Technical Field】
本发明涉及计算机应用技术领域,特别涉及一种启动小程序的方法、设备和计算机存储介质。The present invention relates to the technical field of computer applications, in particular to a method, equipment and computer storage medium for starting a small program.
【背景技术】【Background technique】
本部分旨在为权利要求书中陈述的本发明的实施方式提供背景或上下文。此处的描述不因为包括在本部分中就被认为是现有技术。This section is intended to provide background or context for the embodiments of the present invention stated in the claims. The description here is not considered prior art because it is included in this section.
小程序(Mini Program)是一种不需要安装即可使用的应用,其运行于宿主应用提供的环境下。其因随时可用但又无需安装卸载而得到了越来越广泛的应用。目前各宿主应用在启动小程序时,均需要分别在宿主应用本地下载并初始化一套小程序的运行环境。但一方面由于小程序运行环境依赖的浏览器内核、JS引擎等体积非常大,会导致启动小程序需要等待的时间很长,另一方面,必然会造成资源的浪费。Mini Program is an application that can be used without installation, and it runs in the environment provided by the host application. It is more and more widely used because it is available at any time without installation and uninstallation. At present, each host application needs to download and initialize a set of running environment of the applet locally when starting the applet. But on the one hand, due to the large size of the browser kernel and JS engine that the applet running environment relies on, it will lead to a long wait time to start the applet. On the other hand, it will inevitably cause a waste of resources.
【发明内容】[Content of the invention]
有鉴于此,本发明提供了一种启动小程序的方法、设备和计算机存储介质,以提高小程序的启动效率,节约资源。In view of this, the present invention provides a method, device and computer storage medium for starting a small program, so as to improve the efficiency of starting the small program and save resources.
具体技术方案如下:The specific technical solutions are as follows:
第一方面,本发明提供了一种启动小程序的方法,由终端设备的宿主应用执行,该方法包括:In the first aspect, the present invention provides a method for starting an applet, which is executed by a host application of a terminal device, and the method includes:
获取到触发小程序启动的事件;Obtain the event that triggers the start of the applet;
确认所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件;Confirming whether there is a host application stored in the terminal device that stores a file dependent on the running environment of the applet;
如果是,则利用所述小程序运行环境依赖的文件初始化运行环境,以启动所述小程序;If yes, initialize the running environment with the file dependent on the running environment of the small program to start the small program;
否则,从服务器端下载并存储所述小程序运行环境依赖的文件,以初始化运行环境并启动所述小程序,设置所述小程序运行环境依赖的文件的存储位置 其他宿主应用也可读。Otherwise, download and store the files dependent on the running environment of the applet from the server to initialize the running environment and start the applet, and set the storage location of the files dependent on the running environment of the applet to be readable by other host applications.
根据本发明一优选实施方式,确认所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件,包括:确认所述终端设备中与本宿主应用属于同一宿主联盟的各宿主应用,判断确定出的所述各宿主应用是否存储有所述小程序运行环境依赖的文件;According to a preferred embodiment of the present invention, confirming whether there is a host application in the terminal device storing files dependent on the running environment of the applet includes: confirming that each host application in the terminal device belongs to the same host alliance as the host application , Judging whether the determined host applications store files dependent on the running environment of the applet;
设置所述小程序运行环境依赖的文件的存储位置其他宿主应用也可读,包括:设置所述小程序运行环境依赖的文件的存储位置对于所述宿主联盟的各宿主应用可读;Setting the storage location of the file that the applet running environment relies on is also readable by other host applications, including: setting the storage location of the file that the applet running environment relies on is readable by each host application of the host alliance;
其中,同一宿主联盟中各宿主应用采用相同的小程序标准。Among them, each host application in the same host alliance adopts the same applet standard.
根据本发明一优选实施方式,该方法还包括:According to a preferred embodiment of the present invention, the method further includes:
从服务器端同步与本宿主应用属于同一宿主联盟的各宿主应用的信息,并确定所述终端设备已经安装的所述宿主联盟的宿主应用信息。The information of each host application belonging to the same host alliance as the host application is synchronized from the server side, and the host application information of the host alliance that has been installed by the terminal device is determined.
根据本发明一优选实施方式,确认所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件,包括:According to a preferred embodiment of the present invention, confirming whether there is a file that the host application stores in the terminal device that depends on the running environment of the applet includes:
判断所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件且该文件符合本宿主应用的版本要求。It is determined whether there is a file that the host application depends on the running environment of the applet stored in the terminal device and the file meets the version requirement of the host application.
根据本发明一优选实施方式,所述小程序运行环境依赖的文件的存储位置为本宿主应用的私有目录下。According to a preferred embodiment of the present invention, the storage location of the file dependent on the running environment of the applet is in the private directory of the host application.
根据本发明一优选实施方式,确认所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件,包括:According to a preferred embodiment of the present invention, confirming whether there is a file that the host application stores in the terminal device that depends on the running environment of the applet includes:
先确认本宿主应用的私有目录下是否存在所述小程序运行环境依赖的文件;First, confirm whether there are files dependent on the running environment of the applet in the private directory of the host application;
如果不存在,再判断所述终端设备是否存在其他宿主应用的私有目录下存储有所述小程序运行环境依赖的文件,如果是,则从所述其他宿主应用的私有目录下加载所述小程序运行环境依赖的文件。If it does not exist, then determine whether the terminal device has files stored in the private directory of other host applications that depend on the running environment of the applet, and if so, load the applet from the private directory of the other host application Files that the operating environment depends on.
根据本发明一优选实施方式,确认所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件,包括:判断所述终端设备的共享存储空间是否存储有所述小程序运行环境依赖的文件;According to a preferred embodiment of the present invention, confirming whether there is a host application in the terminal device storing files that the applet running environment depends on includes: determining whether the shared storage space of the terminal device stores the applet running environment Dependent files;
所述从服务器端下载并存储所述小程序运行环境依赖的文件,包括:从服 务器端下载所述小程序运行环境依赖的文件并存储于所述终端设备的共享存储空间。The downloading and storing the files dependent on the running environment of the small program from the server side includes: downloading the files dependent on the running environment of the small program from the server side and storing them in the shared storage space of the terminal device.
根据本发明一优选实施方式,所述小程序运行环境依赖的文件包括:According to a preferred embodiment of the present invention, the files dependent on the running environment of the applet include:
内核动态链接库SO、JS引擎SO以及小程序框架SO。Kernel dynamic link library SO, JS engine SO and applet framework SO.
第二方面,本发明提供了一种设备,所述设备包括:In a second aspect, the present invention provides a device, which includes:
一个或多个处理器;One or more processors;
存储装置,用于存储一个或多个程序,Storage device for storing one or more programs,
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method described above.
第三方面,一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如上任一所述的方法。In a third aspect, a storage medium containing computer-executable instructions, when the computer-executable instructions are executed by a computer processor, are used to perform any of the methods described above.
由以上技术方案可以看出,在本发明中同一终端设备中各宿主应用共享下载的小程序运行环境依赖的文件来初始化运行环境。从而解决小程序运行环境依赖的文件重复下载的问题,提高了小程序的启动效率,且节约资源。It can be seen from the above technical solutions that, in the present invention, each host application in the same terminal device shares the downloaded applet running environment dependent files to initialize the running environment. This solves the problem of repeated downloading of files dependent on the running environment of the applet, improves the startup efficiency of the applet, and saves resources.
【附图说明】【Explanation of drawings】
图1为本发明实施例涉及的系统架构示意图;FIG. 1 is a schematic diagram of a system architecture involved in an embodiment of the present invention;
图2为本发明实施例提供的主要方法流程图;Figure 2 is a flowchart of a main method provided by an embodiment of the present invention;
图3为本发明实施例一提供的宿主应用1执行的方法流程图;FIG. 3 is a flowchart of a method executed by a host application 1 according to Embodiment 1 of the present invention;
图4为本发明实施例二提供的宿主应用1执行的方法流程图;FIG. 4 is a flowchart of a method executed by the host application 1 according to the second embodiment of the present invention;
图5示出了适于用来实现本发明实施方式的示例性计算机系统的框图。Figure 5 shows a block diagram of an exemplary computer system suitable for implementing embodiments of the present invention.
【具体实施方式】【Detailed ways】
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
为了方便对本发明的理解,首先对本发明所涉及的系统架构以及主要概念进行描述。如图1中所示,该系统架构主要包括宿主应用和宿主应用对应的服务器端。In order to facilitate the understanding of the present invention, the system architecture and main concepts involved in the present invention are first described. As shown in Figure 1, the system architecture mainly includes a host application and a server side corresponding to the host application.
小程序依托宿主应用在终端设备上运行,小程序运行所在的环境是宿主应用提供的。其中终端设备可以包括但不限于诸如:智能移动终端、智能家居设备、网络设备、可穿戴式设备、智能医疗设备、PC(个人计算机)等。其中智 能移动设备可以包括诸如手机、平板电脑、笔记本电脑、PDA(个人数字助理)、互联网汽车等。智能家居设备可以包括智能家电设备,诸如智能电视、智能音箱等。网络设备可以包括诸如交换机、无线AP、服务器等。可穿戴式设备可以包括诸如智能手表、智能眼镜、智能手环、虚拟现实设备、增强现实设备、混合现实设备(即可以支持虚拟现实和增强现实的设备)等等。The applet relies on the host application to run on the terminal device, and the environment in which the applet runs is provided by the host application. The terminal devices may include, but are not limited to, smart mobile terminals, smart home devices, network devices, wearable devices, smart medical devices, PCs (personal computers), etc. Among them, smart mobile devices can include mobile phones, tablet computers, notebook computers, PDAs (personal digital assistants), and Internet cars. Smart home devices may include smart home appliances, such as smart TVs, smart speakers, and so on. Network equipment may include, for example, switches, wireless APs, servers, and so on. Wearable devices may include smart watches, smart glasses, smart bracelets, virtual reality devices, augmented reality devices, mixed reality devices (that is, devices that can support virtual reality and augmented reality), and so on.
同一终端设备上可能包含多个宿主应用,图1中以包含宿主应用1和宿主应用2为例。一个宿主应用中也可能运行多个小程序,且不同宿主应用可能运行不同的小程序,也可能运行相同的小程序。如图1中所示,宿主应用1中运行小程序a和小程序b,宿主应用2中运行小程序b和小程序c。The same terminal device may contain multiple host applications. In FIG. 1, host application 1 and host application 2 are taken as an example. A host application may also run multiple applets, and different host applications may run different applets or the same applet. As shown in Figure 1, the host application 1 runs the applet a and the applet b, and the host application 2 runs the applet b and the applet c.
小程序在宿主应用运行时,需要依托一定的运行环境,该运行环境需要在启动小程序之前利用运行环境的文件进行初始化。When the applet runs on the host application, it needs to rely on a certain operating environment, and the operating environment needs to be initialized with the files of the operating environment before starting the applet.
每个宿主应用都存在对应的服务器端,如图1中所示,宿主应用1对应服务器端1,宿主应用2对应服务器端2。每个宿主应用均可以与其对应的服务器端进行交互。Each host application has a corresponding server side. As shown in Figure 1, host application 1 corresponds to server side 1, and host application 2 corresponds to server side 2. Each host application can interact with its corresponding server.
各服务器端可以是单一服务器,也可以是多个服务器构成的服务器群组。应该理解,图1中的终端设备、宿主应用、小程序、服务器端的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、宿主应用、小程序、服务器端。Each server can be a single server or a server group composed of multiple servers. It should be understood that the numbers of terminal devices, host applications, applets, and servers in FIG. 1 are only illustrative. According to implementation needs, there can be any number of terminal devices, host applications, applets, and servers.
本发明的核心思想在于,同一终端设备中各宿主应用共享下载的小程序运行环境依赖的文件来进行小程序的启动,从而解决小程序运行环境依赖的文件重复下载的问题,提高了小程序的启动效率,且节约资源。图2为本发明实施例提供的主要方法流程图,该方法由终端设备的宿主应用执行,执行装置可以是位于终端设备宿主应用的插件或软件开发工具包(Software Development Kit,SDK)等功能单元。如图2所示,该方法主要包括以下步骤:The core idea of the present invention is that each host application in the same terminal device shares the files that the downloaded applet operating environment relies on to start the applet, thereby solving the problem of repeated downloading of files dependent on the applet operating environment and improving the performance of the applet. Start efficiency and save resources. Figure 2 is a flowchart of the main method provided by an embodiment of the present invention. The method is executed by the host application of the terminal device. The execution device may be a plug-in located in the host application of the terminal device or a functional unit such as a software development kit (SDK). . As shown in Figure 2, the method mainly includes the following steps:
在201中,获取触发小程序启动的事件。In 201, the event that triggers the start of the applet is obtained.
本发明并不限于在宿主应用中触发小程序启动的事件类型,例如可以是用户在宿主应用中点击小程序图标以触发小程序启动,也可以是用户在宿主应用中点击某链接触发对应小程序启动,等等。The present invention is not limited to the types of events that trigger the start of the applet in the host application. For example, the user can click the icon of the applet in the host application to trigger the start of the applet, or the user can click a link in the host application to trigger the corresponding applet Start, etc.
在202中,确认终端设备中是否存在宿主应用存储有该小程序运行环境依 赖的文件,如果是,执行203;否则,执行204。In 202, it is confirmed whether there is a file that the host application depends on the running environment of the applet stored in the terminal device, if yes, go to 203; otherwise, go to 204.
由于小程序在运行时需要依赖一定的运行环境,因此宿主应用在启动小程序之前需要利用小程序运行环境依赖的文件来初始化运行环境。在本实施例中,终端设备可以首先判断本宿主应用是否存储有小程序运行环境依赖的文件,如果有则直接利用;否则继续判断其他宿主应用是否存储有小程序运行环境依赖的文件。Since the applet needs to rely on a certain operating environment when it runs, the host application needs to initialize the operating environment with files that the applet operating environment depends on before starting the applet. In this embodiment, the terminal device may first determine whether the host application stores files dependent on the applet operating environment, and if so, use it directly; otherwise, continue to determine whether other host applications store files dependent on the applet operating environment.
其中,小程序运行环境依赖的文件可以包括内核SO(动态链接库)、JS引擎SO、小程序框架SO等。其中内核指的是浏览器内核,JS引擎可以是诸如V8引擎。Among them, the files that the applet running environment depends on may include the kernel SO (dynamic link library), the JS engine SO, the applet framework SO, and so on. The kernel refers to the browser kernel, and the JS engine can be, for example, a V8 engine.
在203中,利用该小程序运行环境依赖的文件初始化运行环境,以启动该小程序,结束流程。In 203, the operating environment is initialized with the file dependent on the operating environment of the small program to start the small program and end the process.
如果在终端设备中已经有宿主应用存储有该小程序运行环境依赖的文件,则无需重复下载,直接利用已经存储的运行环境依赖的文件初始化运行环境即可。If a host application already stores a file dependent on the running environment of the applet in the terminal device, there is no need to download repeatedly, and the running environment can be initialized directly with the stored file dependent on the running environment.
在204中,从服务器端下载并存储该小程序运行环境依赖的文件,以初始化运行环境并启动该小程序,设置该小程序运行环境依赖的文件的存储位置其他宿主应用也可读。In 204, the file dependent on the running environment of the applet is downloaded and stored from the server to initialize the running environment and start the applet, and set the storage location of the file dependent on the running environment of the applet to be readable by other host applications.
若终端设备中并没有宿主应用存储有该小程序运行环境依赖的文件,则需要从服务器端下载,并存储该小程序运行环境依赖的文件。为了下载的小程序运行环境依赖的文件也能够为其他宿主应用所使用,除了本宿主应用可读该小程序运行环境依赖的文件的存储位置之外,该存储位置对其他宿主应用也可读。If there is no host application in the terminal device that stores the files that the applet running environment relies on, it needs to be downloaded from the server and store the files that the applet running environment relies on. In order to download the files dependent on the running environment of the applet, it can also be used by other host applications. In addition to the storage location of the file that the running environment of the applet depends on, the storage location is also readable by other host applications.
然后宿主应用利用本次下载的小程序运行环境依赖的文件初始化运行环境,并启动小程序。Then the host application initializes the running environment with the files that the running environment of the applet downloaded this time depends on, and starts the applet.
在本发明实施例中采用同一终端设备中宿主应用共享存储的小程序运行环境依赖的文件的方式,其中共享方式可以采用但不限于以下几种:In the embodiment of the present invention, a host application in the same terminal device is used to share files that the stored applet running environment relies on, and the sharing methods can be, but not limited to, the following:
第一种方式:宿主应用将下载的小程序运行环境依赖的文件存储于本宿主应用的私有目录下,设置该私有目录对其他宿主应用也可读。The first method: the host application stores the files that the downloaded applet running environment depends on in the private directory of the host application, and the private directory is set to be readable by other host applications.
第二种方式:宿主应用将下载的小程序运行环境依赖的文件均存储于终端设备的共享存储空间,终端设备中各宿主应用均从该共享存储空间读取小程序 运行环境依赖的文件来进行运行环境的初始化。The second method: The host application stores all the files that the downloaded applet running environment depends on in the shared storage space of the terminal device, and each host application in the terminal device reads the files that the applet running environment depends on from the shared storage space. Initialization of the operating environment.
下面将结合具体实施例对上述两种方式分别进行详细描述。另外,需要说明的是,一种理想的情况是,所有宿主应用均采用相同的小程序标准。但往往在实际情况中,一些宿主应用是采用相同的小程序标准的,但另一些宿主应用则采用其他小程序标准。那么可以将采用相同小程序标准的宿主应用称为一个宿主联盟。针对属于同一宿主联盟的各宿主应用采用本发明实施例所提供的共享小程序运行环境依赖的文件的方式。关于哪些宿主应用属于同一宿主联盟则可以在服务器端统一配置,然后各宿主应用从服务器端获取。在下面的实施例中均以同一宿主联盟的各宿主应用共享小程序运行环境依赖的文件的方式为例进行描述。The above two methods will be described in detail below in conjunction with specific embodiments. In addition, it should be noted that an ideal situation is that all host applications use the same applet standard. But often in actual situations, some host applications adopt the same applet standard, but other host applications adopt other applet standards. Then, a host application that adopts the same applet standard can be called a host alliance. For each host application belonging to the same host alliance, the method of sharing files dependent on the running environment of the applet provided by the embodiment of the present invention is adopted. Which host applications belong to the same host alliance can be configured on the server side uniformly, and then each host application obtains it from the server side. In the following embodiments, the manner in which each host application of the same host alliance shares files dependent on the running environment of the applet is described as an example.
实施例一、Example one
图3为本发明实施例一提供的方法流程图,本实施例中对上述第一种实现方式进行描述。假设用户欲在宿主应用1中启动小程序c,如图3所示,由宿主应用1执行的方法可以包括以下过程:FIG. 3 is a flowchart of a method provided in Embodiment 1 of the present invention. In this embodiment, the first implementation manner described above is described. Assuming that the user wants to start the applet c in the host application 1, as shown in FIG. 3, the method executed by the host application 1 may include the following processes:
在301中,宿主应用1启动时,从服务器端同步宿主联盟的信息并存储于宿主应用1本地的数据库。In 301, when the host application 1 is started, the information of the host alliance is synchronized from the server and stored in the local database of the host application 1.
宿主应用1在启动时,可以向对应服务器端发送宿主联盟的同步请求,对应服务器端向该宿主应用1返回宿主联盟的各宿主应用的信息,例如包名。然后宿主应用1可以确定本终端设备已经安装的宿主联盟的宿主应用信息。When the host application 1 is started, it can send a synchronization request of the host alliance to the corresponding server, and the corresponding server returns to the host application 1 the information of each host application of the host alliance, such as the package name. Then the host application 1 can determine the host application information of the host alliance that the terminal device has installed.
当宿主应用1启动时,可以对所在终端设备本地已安装的应用程序进行扫描,再进一步利用从服务器端同步到的宿主联盟的信息,就能够确定出本终端设备已经安装的宿主联盟的宿主应用信息,可以将这些宿主应用的信息以列表形式存储于本宿主应用的数据库中。When the host application 1 starts, it can scan the locally installed applications of the terminal device where it is located, and then further use the information of the host alliance synchronized from the server to determine the host application of the host alliance that the terminal device has installed Information, the host application information can be stored in the database of the host application in the form of a list.
举个例子,假设服务器端下发的宿主联盟的信息包括:宿主应用1、宿主应用2、宿主应用3、宿主应用4……。宿主应用1扫描本终端设备后发现本终端设备安装有宿主应用1和宿主应用2,那么宿主应用1就可以将宿主应用1和宿主应用2的信息存储于宿主应用1本地的数据库中。For example, suppose the information of the host alliance issued by the server includes: host application 1, host application 2, host application 3, host application 4... After the host application 1 scans the terminal device and finds that the terminal device is installed with the host application 1 and the host application 2, then the host application 1 can store the information of the host application 1 and the host application 2 in the local database of the host application 1.
在302中,获取到宿主应用1中小程序c启动的事件后,判断宿主应用1的私有目录下是否存储有小程序c运行环境依赖的文件,如果是,执行303; 否则执行304。In 302, after obtaining the start event of the applet c in the host application 1, it is determined whether there are files dependent on the running environment of the applet c stored in the private directory of the host application 1, if yes, execute 303; otherwise, execute 304.
在303中,利用宿主应用1私有目录下存储的小程序c运行环境依赖的文件初始化运行环境,以启动小程序c,结束本启动流程。In 303, the running environment is initialized with the files dependent on the running environment of the small program c stored in the private directory of the host application 1, so as to start the small program c, and the startup process is ended.
在304中,查询同一宿主联盟的其他宿主应用的私有目录下是否存储有小程序c运行环境依赖的文件,如果是,执行305;否则,执行306。In 304, it is queried whether there are files that depend on the running environment of the applet c stored in the private directories of other host applications in the same host alliance. If so, execute 305; otherwise, execute 306.
在本步骤中,一方面确定同一宿主联盟的其他宿主应用是否存储有小程序c运行环境依赖的文件,另一方面确定存储的运行环境依赖的文件是否满足宿主应用1的版本要求,两方面均满足的情况下,执行305,否则执行306。通常宿主应用1如果需求的版本低于或等于其他宿主应用存储的版本,则认为满足版本要求。In this step, on the one hand, it is determined whether other host applications in the same host alliance store files dependent on the operating environment of the applet c; on the other hand, it is determined whether the stored files dependent on the operating environment meet the version requirements of host application 1. Both If it is satisfied, go to 305, otherwise go to 306. Generally, if the required version of the host application 1 is lower than or equal to the version stored by other host applications, it is considered that the version requirement is met.
在305中,宿主应用1从其他宿主应用的私有目录下读取小程序c运行环境依赖的文件,并用以在宿主应用1中初始化运行环境并启动小程序c,结束本启动流程。In 305, the host application 1 reads files dependent on the running environment of the applet c from the private directory of other host applications, and is used to initialize the running environment in the host application 1 and start the applet c, ending the startup process.
例如经查询若宿主应用2中已经存储有小程序c运行环境依赖的文件,则宿主应用1从宿主应用2的私有目录下读取运行环境依赖的文件,在宿主应用1进行运行环境的初始化,并启动小程序c。For example, after querying, if the host application 2 already stores the files dependent on the operating environment of the applet c, the host application 1 reads the files dependent on the operating environment from the private directory of the host application 2, and initializes the operating environment in the host application 1. And start the applet c.
在306中,宿主应用1从对应的服务器端下载小程序c运行环境依赖的文件,存储于宿主应用1的私有目录下,并设置该私有目录的权限为宿主联盟的各宿主应用可读。In 306, the host application 1 downloads the files dependent on the running environment of the applet c from the corresponding server, stores them in the private directory of the host application 1, and sets the permissions of the private directory to be readable by the host applications of the host alliance.
作为一种优选的实施方式,为了保证私有目录下内容的安全性,可以仅设置私有目录的权限为宿主联盟的各宿主应用可读不可写。As a preferred implementation manner, in order to ensure the security of the content in the private directory, only the permissions of the private directory may be set to be readable and not writable by each host application of the host alliance.
通常情况下,小程序运行环境依赖的文件对于同一宿主联盟的各小程序而言均是可用的,仅仅存在版本的差别。因此,在服务器端可以存储多个版本的小程序运行环境依赖的文件。宿主应用1可以将自身的版本信息发送给服务器端,以便服务器端将对应版本的小程序运行环境依赖的文件发送给宿主应用1。Generally, the files that the applet running environment relies on are available to all applets of the same host alliance, and there is only a difference in version. Therefore, on the server side, multiple versions of files dependent on the running environment of the applet can be stored. The host application 1 may send its own version information to the server side, so that the server side can send to the host application 1 the files that the running environment of the corresponding version of the applet depends on.
在307中,宿主应用1利用下载的文件初始化运行环境,并启动小程序c。In 307, the host application 1 initializes the running environment with the downloaded file and starts the applet c.
实施例二、Embodiment two
图4为本发明实施例二提供的方法流程图,本实施例中对上述第二种实现方式进行描述。假设用户欲在宿主应用1中启动小程序c,如图4所示,由宿 主应用1执行的方法可以包括以下过程:FIG. 4 is a flow chart of the method provided in Embodiment 2 of the present invention. In this embodiment, the above-mentioned second implementation manner is described. Assuming that the user wants to start the applet c in the host application 1, as shown in Figure 4, the method executed by the host application 1 may include the following processes:
在401中,宿主应用1获取小程序c启动的事件。In 401, the host application 1 obtains the event initiated by the applet c.
在402中,宿主应用1判断终端设备的共享存储空间是否存储有小程序c运行环境依赖的文件,如果是,执行403;否则执行404。In 402, the host application 1 judges whether the shared storage space of the terminal device stores files dependent on the operating environment of the applet c, if yes, execute 403; otherwise, execute 404.
在本实施例中,在终端设备中设置共享存储空间,该共享存储空间对宿主联盟中各宿主应用开放读写权限。宿主联盟中的宿主应用均将下载的小程序运行环境依赖的文件存储于该共享存储空间以在宿主联盟范围内进行共享。In this embodiment, a shared storage space is set in the terminal device, and the shared storage space is open to read and write permissions for each host application in the host alliance. The host applications in the host alliance store the files that the downloaded applet running environment relies on in the shared storage space for sharing within the host alliance.
在本步骤中,同样一方面确定共享存储空间是否存储有小程序c运行环境依赖的文件,另一方面确定存储的小程序c运行环境依赖的文件是否满足宿主应用1的版本要求,两方面均满足的情况下,执行403,否则执行404。通常宿主应用1如果需求的版本低于或等于已经存储的版本,则认为满足版本要求。In this step, it is also determined on the one hand whether the shared storage space stores files dependent on the operating environment of the applet c, and on the other hand, determining whether the files dependent on the operating environment of the applet c meet the version requirements of the host application 1. If it is satisfied, execute 403, otherwise execute 404. Generally, if the required version of the host application 1 is lower than or equal to the stored version, it is considered to meet the version requirement.
在403中,宿主应用1从共享存储空间读取小程序c运行环境依赖的文件,初始化运行环境并启动小程序c,结束本启动流程。In 403, the host application 1 reads the files dependent on the running environment of the applet c from the shared storage space, initializes the running environment and starts the applet c, and ends the startup process.
在404中,宿主应用1从对应的服务器端下载小程序c运行环境依赖的文件,存储于终端设备的共享存储空间。In 404, the host application 1 downloads the files dependent on the running environment of the applet c from the corresponding server, and stores them in the shared storage space of the terminal device.
对于宿主应用1因版本需要下载小程序c的更高版本的文件包,则对于共享存储空间中已经存在的较低版本的文件包可以保留,也可以删除。For the host application 1 because the version needs to download the file package of the higher version of the applet c, the file package of the lower version that already exists in the shared storage space can be retained or deleted.
上述共享存储空间的形式本发明并不加以限制,例如可以采用SDCard,还可以采用其他形式的共享存储空间。The form of the aforementioned shared storage space is not limited by the present invention. For example, an SDCard may be used, or other forms of shared storage space may be used.
在405中,宿主应用1利用下载的文件初始化运行环境,并启动小程序c。In 405, the host application 1 initializes the running environment with the downloaded file and starts the applet c.
图5示出了适于用来实现本发明实施方式的示例性计算机系统012的框图。图5显示的计算机系统012仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Figure 5 shows a block diagram of an exemplary computer system 012 suitable for implementing embodiments of the present invention. The computer system 012 shown in FIG. 5 is only an example, and should not bring any limitation to the function and application scope of the embodiments of the present invention.
如图5所示,计算机系统012以通用计算设备的形式表现。计算机系统012的组件可以包括但不限于:一个或者多个处理器或者处理单元016,系统存储器028,连接不同系统组件(包括系统存储器028和处理单元016)的总线018。As shown in FIG. 5, the computer system 012 is represented in the form of a general-purpose computing device. The components of the 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 connecting different system components (including the system memory 028 and the processing unit 016).
总线018表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构 (ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。The bus 018 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure among multiple bus structures. For example, these architectures include but are not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and peripheral component interconnection ( PCI) bus.
计算机系统012典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机系统012访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。 Computer system 012 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer system 012, including volatile and non-volatile media, removable and non-removable media.
系统存储器028可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)030和/或高速缓存存储器032。计算机系统012可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统034可以用于读写不可移动的、非易失性磁介质(图5未显示,通常称为“硬盘驱动器”)。尽管图5中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线018相连。存储器028可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。The system memory 028 may 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. For example only, the storage system 034 may be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 5, and generally referred to as a "hard drive"). Although not shown in FIG. 5, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk") and a removable non-volatile disk (such as CD-ROM, DVD-ROM) can be provided. Or other optical media) read and write optical disc drives. In these cases, each drive can be connected to the bus 018 through one or more data media interfaces. The memory 028 may include at least one program product, and the program product has a set (for example, at least one) program modules, which are configured to perform the functions of the embodiments of the present invention.
具有一组(至少一个)程序模块042的程序/实用工具040,可以存储在例如存储器028中,这样的程序模块042包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块042通常执行本发明所描述的实施例中的功能和/或方法。A program/utility tool 040 with a set of (at least one) program module 042 can be stored in, for example, the memory 028. Such program module 042 includes, but is not limited to, an operating system, one or more application programs, and other programs Modules and program data, each of these examples or some combination may include the realization of a network environment. The program module 042 generally executes the functions and/or methods in the described embodiments of the present invention.
计算机系统012也可以与一个或多个外部设备014(例如键盘、指向设备、显示器024等)通信,在本发明中,计算机系统012与外部雷达设备进行通信,还可与一个或者多个使得用户能与该计算机系统012交互的设备通信,和/或与使得该计算机系统012能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口022进行。并且,计算机系统012还可以通过网络适配器020与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器020通过总线018与计算机系统012的其它模块通信。应当明白,尽管图5中未示出,可以结合计算机系统012使用其它硬件和/或软 件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The computer system 012 can also communicate with one or more external devices 014 (such as keyboards, pointing devices, displays 024, etc.). In the present invention, the computer system 012 communicates with external radar devices, and can also communicate with one or more users Communication with a device that can interact with the computer system 012, and/or with any device (such as a network card, modem, etc.) that enables the computer system 012 to communicate with one or more other computing devices. This communication can be performed through an input/output (I/O) interface 022. In addition, the computer system 012 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 020. As shown in the figure, the network adapter 020 communicates with other modules of the computer system 012 through the bus 018. It should be understood that although not shown in FIG. 5, other hardware and/or software modules can 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, etc.
处理单元016通过运行存储在系统存储器028中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的方法流程。The processing unit 016 executes various functional applications and data processing by running programs stored in the system memory 028, for example, to implement the method flow provided by the embodiment of the present invention.
上述的计算机程序可以设置于计算机存储介质中,即该计算机存储介质被编码有计算机程序,该程序在被一个或多个计算机执行时,使得一个或多个计算机执行本发明上述实施例中所示的方法流程和/或装置操作。例如,被上述一个或多个处理器执行本发明实施例所提供的方法流程。The above-mentioned computer program may be set in a computer storage medium, that is, the computer storage medium is encoded with a computer program. When the program is executed by one or more computers, one or more computers can execute the above-mentioned embodiments of the present invention. The method flow and/or device operation. For example, the process of the method provided in the embodiment of the present invention is executed by the above-mentioned one or more processors.
随着时间、技术的发展,介质含义越来越广泛,计算机程序的传播途径不再受限于有形介质,还可以直接从网络下载等。可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。With the development of time and technology, the meaning of media has become more and more extensive, and the dissemination of computer programs is no longer limited to tangible media, and it can also be downloaded directly from the Internet. Any combination of one or more computer-readable media may be used. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。The computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and computer-readable program code is carried therein. This propagated data signal can take many forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium. The computer-readable medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、RF等等,或者上述的任意合适的组合。The program code contained on the computer-readable medium can be transmitted by any suitable medium, including, but not limited to, wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言-诸如Java、 Smalltalk、C++,还包括常规的过程式程序设计语言-诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。The computer program code used to perform the operations of the present invention can be written in one or more programming languages or a combination thereof. The programming languages include object-oriented programming languages-such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language. The program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network-including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect to the user's computer) connection).
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the present invention Within the scope of protection.

Claims (10)

  1. 一种启动小程序的方法,由终端设备的宿主应用执行,其特征在于,该方法包括:A method for starting an applet, which is executed by a host application of a terminal device, is characterized in that the method includes:
    获取到触发小程序启动的事件;Obtain the event that triggers the start of the applet;
    确认所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件;Confirming whether there is a host application stored in the terminal device that stores a file dependent on the running environment of the applet;
    如果是,则利用所述小程序运行环境依赖的文件初始化运行环境,以启动所述小程序;If yes, initialize the running environment with the file dependent on the running environment of the small program to start the small program;
    否则,从服务器端下载并存储所述小程序运行环境依赖的文件,以初始化运行环境并启动所述小程序,设置所述小程序运行环境依赖的文件的存储位置其他宿主应用也可读。Otherwise, download and store the files dependent on the running environment of the applet from the server to initialize the running environment and start the applet, and set the storage location of the files dependent on the running environment of the applet to be readable by other host applications.
  2. 根据权利要求1所述的方法,其特征在于,确认所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件,包括:确认所述终端设备中与本宿主应用属于同一宿主联盟的各宿主应用,判断确定出的所述各宿主应用是否存储有所述小程序运行环境依赖的文件;The method according to claim 1, wherein confirming whether there is a host application in the terminal device that stores files that the applet running environment depends on includes: confirming that the terminal device belongs to the same host as the host application Each host application of the alliance judges whether the determined host application stores the files dependent on the running environment of the applet;
    设置所述小程序运行环境依赖的文件的存储位置其他宿主应用也可读,包括:设置所述小程序运行环境依赖的文件的存储位置对于所述宿主联盟的各宿主应用可读;Setting the storage location of the file that the applet running environment relies on can also be readable by other host applications, including: setting the storage location of the file that the applet running environment depends on is readable by each host application of the host alliance;
    其中,同一宿主联盟中各宿主应用采用相同的小程序标准。Among them, each host application in the same host alliance adopts the same applet standard.
  3. 根据权利要求2所述的方法,其特征在于,该方法还包括:The method according to claim 2, wherein the method further comprises:
    从服务器端同步与本宿主应用属于同一宿主联盟的各宿主应用的信息,并确定所述终端设备已经安装的所述宿主联盟的宿主应用信息。The information of each host application belonging to the same host alliance as the host application is synchronized from the server side, and the host application information of the host alliance that has been installed by the terminal device is determined.
  4. 根据权利要求1所述的方法,其特征在于,确认所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件,包括:The method according to claim 1, wherein the confirming whether there is a host application stored in the terminal device storing the files dependent on the running environment of the applet comprises:
    判断所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件且该文件符合本宿主应用的版本要求。It is determined whether there is a file that the host application depends on the running environment of the applet stored in the terminal device and the file meets the version requirement of the host application.
  5. 根据权利要求1所述的方法,其特征在于,所述小程序运行环境依赖的文件的存储位置为本宿主应用的私有目录下。The method according to claim 1, wherein the storage location of the file dependent on the running environment of the applet is in a private directory of the host application.
  6. 根据权利要求5所述的方法,其特征在于,确认所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件,包括:The method according to claim 5, wherein confirming whether there is a host application storing a file dependent on the running environment of the applet in the terminal device comprises:
    先确认本宿主应用的私有目录下是否存在所述小程序运行环境依赖的文件;First, confirm whether there are files dependent on the running environment of the applet in the private directory of the host application;
    如果不存在,再判断所述终端设备是否存在其他宿主应用的私有目录下存储有所述小程序运行环境依赖的文件,如果是,则从所述其他宿主应用的私有目录下加载所述小程序运行环境依赖的文件。If it does not exist, then determine whether the terminal device has files stored in the private directory of other host applications that depend on the running environment of the applet, and if so, load the applet from the private directory of the other host application Files that the operating environment depends on.
  7. 根据权利要求1所述的方法,其特征在于,确认所述终端设备中是否存在宿主应用存储有所述小程序运行环境依赖的文件,包括:判断所述终端设备的共享存储空间是否存储有所述小程序运行环境依赖的文件;The method according to claim 1, wherein confirming whether there is a host application in the terminal device that stores the files that the applet running environment relies on, comprising: determining whether the shared storage space of the terminal device stores Describe the files that the applet operating environment depends on;
    所述从服务器端下载并存储所述小程序运行环境依赖的文件,包括:从服务器端下载所述小程序运行环境依赖的文件并存储于所述终端设备的共享存储空间。The downloading and storing the files dependent on the running environment of the small program from the server side includes: downloading the files dependent on the running environment of the small program from the server side and storing them in the shared storage space of the terminal device.
  8. 根据权利要求1所述的方法,其特征在于,所述小程序运行环境依赖的文件包括:The method according to claim 1, wherein the files dependent on the running environment of the applet include:
    内核动态链接库SO、JS引擎SO以及小程序框架SO。Kernel dynamic link library SO, JS engine SO and applet framework SO.
  9. 一种设备,其特征在于,所述设备包括:A device, characterized in that the device includes:
    一个或多个处理器;One or more processors;
    存储装置,用于存储一个或多个程序,Storage device for storing one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-8中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-8.
  10. 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-8中任一所述的方法。A storage medium containing computer-executable instructions, which are used to execute the method according to any one of claims 1-8 when executed by a computer processor.
PCT/CN2020/104099 2019-07-25 2020-07-24 Method for starting mini program, device, and computer storage medium WO2021013243A1 (en)

Applications Claiming Priority (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
CN201910676590.2 2019-07-25

Publications (1)

Publication Number Publication Date
WO2021013243A1 true WO2021013243A1 (en) 2021-01-28

Family

ID=68287446

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360212A (en) * 2021-06-30 2021-09-07 远光软件股份有限公司 Application program starting method, computer device and computer readable storage medium

Families Citing this family (9)

* 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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143641A1 (en) * 2003-01-16 2004-07-22 Sun Microsystems, Inc., A Delaware Corporation System for communicating program data between a first device and a second device
CN109710333A (en) * 2018-12-28 2019-05-03 上海掌门科技有限公司 Processing method, equipment and the computer readable storage medium of boarding application
CN109995877A (en) * 2019-04-12 2019-07-09 上海连尚网络科技有限公司 Information-pushing method and device
CN110389936A (en) * 2019-07-25 2019-10-29 上海连尚网络科技有限公司 A kind of method, equipment and computer storage medium starting small routine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10496381B2 (en) * 2017-11-27 2019-12-03 Microsoft Technology Licensing, Llc Progressive web app auto-ingestion
CN109933442B (en) * 2019-03-04 2022-12-30 上海连尚网络科技有限公司 Method, apparatus and computer storage medium for communication between small program platforms

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143641A1 (en) * 2003-01-16 2004-07-22 Sun Microsystems, Inc., A Delaware Corporation System for communicating program data between a first device and a second device
CN109710333A (en) * 2018-12-28 2019-05-03 上海掌门科技有限公司 Processing method, equipment and the computer readable storage medium of boarding application
CN109995877A (en) * 2019-04-12 2019-07-09 上海连尚网络科技有限公司 Information-pushing method and device
CN110389936A (en) * 2019-07-25 2019-10-29 上海连尚网络科技有限公司 A kind of method, equipment and computer storage medium starting small routine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360212A (en) * 2021-06-30 2021-09-07 远光软件股份有限公司 Application program starting method, computer device and computer readable storage medium

Also Published As

Publication number Publication date
CN110389936A (en) 2019-10-29
CN110389936B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
WO2021013243A1 (en) Method for starting mini program, device, and computer storage medium
WO2021013242A1 (en) Method for starting mini program, device and computer storage medium
CN110413386B (en) Multi-process processing method, device, terminal equipment and computer readable storage medium
US20220053068A1 (en) Methods, apparatuses and computer storage media for applet state synchronization
WO2021013247A1 (en) Method and device for running applet, and computer storage medium
US20220214932A1 (en) Methods, devices and computer storage media for inter-mini program platform communication
WO2020135245A1 (en) Hosting application processing method and device, and computer-readable storage medium
US20160261693A1 (en) Cloud-based data backup and operation method and system
WO2021088671A1 (en) Method for calling terminal capability, device, and computer storage medium
TWI782306B (en) An access docking device and system, and a method and device applied to the access docking device
WO2020177699A1 (en) App execution method, computer device, and storage medium
US20220245005A1 (en) Methods, devices and computer storage media for inter-mini program platform discovery
CN114625481B (en) Data processing method and device, readable medium and electronic equipment
WO2023174013A1 (en) Video memory allocation method and apparatus, and medium and electronic device
CN111079125A (en) Method and device for calling third-party library dynamic lifting authority by application program
CN110781159B (en) Ceph directory file information reading method and device, server and storage medium
WO2022062634A1 (en) Method, apparatus, device, and storage medium for integrating map service in service
CN111338699A (en) Computer mainboard initialization method and device, computer equipment and storage medium
CN112470443B (en) Isolating a reset-directed biometric device to a remote session
CN114201317A (en) Data transmission method, device, storage medium and electronic equipment
US10430371B1 (en) Accelerating redirected USB devices that perform bulk transfers
WO2019127475A1 (en) Method and apparatus for implementing virtual sim card, storage medium, and electronic device
KR101211673B1 (en) Binary compatibility system for executing program of external terminal with different system environment in user terminal and method thereof
CN112929675B (en) Image resource compression method and device and electronic equipment
WO2023273482A1 (en) Control method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20844866

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20844866

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20844866

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.09.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20844866

Country of ref document: EP

Kind code of ref document: A1