[go: up one dir, main page]

WO2021088671A1 - Method for calling terminal capability, device, and computer storage medium - Google Patents

Method for calling terminal capability, device, and computer storage medium Download PDF

Info

Publication number
WO2021088671A1
WO2021088671A1 PCT/CN2020/123662 CN2020123662W WO2021088671A1 WO 2021088671 A1 WO2021088671 A1 WO 2021088671A1 CN 2020123662 W CN2020123662 W CN 2020123662W WO 2021088671 A1 WO2021088671 A1 WO 2021088671A1
Authority
WO
WIPO (PCT)
Prior art keywords
host application
host
terminal device
terminal
capability information
Prior art date
Application number
PCT/CN2020/123662
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 WO2021088671A1 publication Critical patent/WO2021088671A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/44573Execute-in-place [XIP]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the present invention relates to the technical field of computer applications, in particular to a method, equipment and computer storage medium for invoking terminal capabilities.
  • 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 but does not need to be installed or uninstalled. Mini programs often need to call the host application's end capabilities in the process of providing services, which requires the integration of a large number of business function codes in the host application, which will inevitably lead to a very large package body of the host application, resulting in a waste of resources; otherwise the mini program will not be able to Provide corresponding services.
  • the present invention provides a method, device and computer storage medium for invoking terminal capabilities to save resources while ensuring that the applet provides services.
  • this application provides a method for invoking a terminal capability, which is executed by a first host application of a terminal device, and the method includes:
  • the terminal capability of the second host application in the terminal device is invoked.
  • the method further includes: after the first host application is started, obtaining terminal capability information possessed by the host application installed on the terminal device from the server, and storing it in the first host application.
  • the database of the host application is not limited to:
  • the obtaining from the server the terminal capability information possessed by the host application installed on the terminal device includes:
  • the first host application requests from the server side and obtains a list of host applications that belong to the same host alliance as the first host application;
  • the obtaining from the server the terminal capability information possessed by the host application installed on the terminal device includes:
  • the first host application uploads a list of host applications installed on the terminal device to the server;
  • the server determines from the host application list that it belongs to the same host alliance as the first host application The end capability information of the host application.
  • the method further includes: each host application belonging to the same host alliance stores their respective terminal capability information into the shared database of the corresponding host alliance in the terminal device;
  • the first host application queries the shared database corresponding to the host alliance to execute the step of invoking the terminal capability possessed by the second host application in the terminal device.
  • the terminal capability information includes: the terminal capability name and the calling interface information of the terminal capability.
  • invoking the terminal capability possessed by the second host application in the terminal device includes:
  • the first host application calls the interface of the end capability possessed by the second host application according to the call interface information of the end capability, and obtains the call result returned by the callback function.
  • this application provides a method for invoking a terminal capability, which is executed by the server of the first host application, and the method includes:
  • the terminal capability information of the host application installed on the terminal device where the first host application is located is sent to the first host application.
  • the method further includes:
  • the server end of the first host application provides an access interface so that the server ends of other host applications in the same host alliance can obtain the end capability information of the first host application through the access interface.
  • sending the terminal capability information of the host application installed on the terminal device where the first host application is located to the first host application includes:
  • sending the terminal capability information of the host application installed on the terminal device where the first host application is located to the first host application includes:
  • the determined terminal capability information of the host application is returned to the first host application.
  • the terminal capability information includes: the terminal capability name and the calling interface information of the terminal capability.
  • the present application provides a device, the device includes:
  • One or more processors are One or more processors;
  • Storage device used to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.
  • the present application provides a storage medium containing computer-executable instructions, which are used to perform the above-mentioned method when executed by a computer processor.
  • the applet in the present invention calls the end capability of the host application, it can share the end capability of each host application in the same terminal device without having to integrate all the function codes in each host application, thereby While ensuring that the applet provides services, it saves resources.
  • FIG. 1 is a schematic diagram of a system architecture involved in an embodiment of the present invention
  • 3 and 4 are flowcharts of two methods for obtaining end capability information from the server according to the first embodiment of the present invention
  • FIG. 5 is a flowchart of a method provided in Embodiment 2 of the present invention.
  • Figure 6 shows a block diagram of an exemplary computer system suitable for implementing embodiments of the present invention.
  • the system architecture mainly includes a host application and a server side corresponding to the host application.
  • 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, such as: smart mobile terminals, smart home devices, network devices, wearable devices, smart medical devices, PCs (personal computers), etc.
  • smart mobile devices can include mobile phones, tablet computers, notebook computers, PDAs (personal digital assistants), Internet cars, and so on.
  • 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, for example, 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.
  • the same terminal device may contain multiple host applications.
  • the host application 1 and the 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.
  • the host application 1 runs the applet a and the applet b
  • the host application 2 runs the applet b and the applet c.
  • Each host application has a corresponding server side. As shown in FIG. 1, the host application 1 corresponds to the server side 1, and the host application 2 corresponds to the server side 2. Each host application can interact with its corresponding server end. In the embodiment of the present invention, data exchange can also be performed between different server ends.
  • 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 merely illustrative. According to implementation needs, there can be any number of terminal devices, host applications, applets, and servers.
  • the core idea of the present invention is that each host application in the same terminal device shares terminal capabilities, thereby solving the problem of integrating a large number of business function codes in a host application and saving resources.
  • the method provided by the present invention will be described in detail below in conjunction with embodiments.
  • FIG. 2 is a flowchart of the method provided by Embodiment 1 of the present invention.
  • the method is executed by the host application 1 of the terminal device.
  • the execution device may be a plug-in or a software development kit (SDK) located in the host application of the terminal device. unit.
  • SDK software development kit
  • the host application 1 obtains an event for the applet to call the host application's capabilities.
  • the so-called end capability refers to the functions possessed by the host application, which are the functions provided by the host application as a host environment for the services of the applet, such as networking functions, payment functions, geographic location functions, album reading functions, and so on.
  • the local database of the host application 1 is queried to determine other host applications in the terminal device that have the ability to call the applet, suppose it is the host application 2.
  • the terminal capability information of the host application installed on the terminal device may be obtained from the server side, and stored in the local database of the host application 1. Then in this step, the host application 1 can learn about the host application capable of calling the applet on the terminal device by querying the local database.
  • FIG. 3 and FIG. 4 are only the two preferred implementation modes provided by the embodiments of the present application, but are not limited to the two modes. Other ways to achieve the same effect based on the same idea are all within the protection scope of this application.
  • the host application 1 sends a first request to the server of the host application 1.
  • the server sends a list of host applications that belong to the same host alliance as host application 1 to host application 1.
  • 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 the host application that adopts the same applet standard can be called a host alliance.
  • Each host application for the same host alliance can adopt the mode of the functional end capability provided by the embodiment of the present invention. 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.
  • the host application 1 can send a first request to the corresponding server to synchronize the host alliance information when or after the host application 1 is started, and the corresponding server returns to the host application 1 a host application list of the host alliance, for example, contains the package name of each host application.
  • the host application 1 determines the host application information that has been installed on the terminal device in the host application list.
  • the host application 1 When or after the host application 1 is started, it can scan the locally installed applications of the terminal device, and then further use the host application list of the same host alliance obtained from the server to determine that the terminal device in the host application list has been
  • the installed host application information can be stored in the database of the host application in the form of a list.
  • the host application 1 sends a second request to the server, and the second request includes information about the host application that has been installed on the terminal device in the host application list.
  • the server sends the terminal capability information of the host application installed on the terminal device to the host application 1.
  • the end capability information that can be shared by the host application can be pre-configured on the server side of each host application, where the end capability information may include the end capability name and the interface information of the end capability.
  • the interface information of the terminal capability may include the calling method, the protocol (scheme), parameters, and so on.
  • the server side of each host application can provide an access interface to the server side of the same host application, and the server side of the same host alliance can synchronize the end capability information of each host application through the access interface of the server side of other host applications.
  • the synchronization method can be periodic synchronization or synchronization triggered by a specific event.
  • the host application 1 sends a list of host applications installed on the terminal device to the server of the host application 1.
  • the host application 1 When or after the host application 1 is started, it can scan the applications installed locally on the terminal device, and upload the scanned host application list to the server.
  • the server determines the terminal capability information of the host application belonging to the same host alliance as the host application 1 from the host application list.
  • the server is pre-configured with the information of the host applications belonging to the same host alliance, and the end capability information of other host applications can be synchronized with other servers belonging to the same host alliance. Therefore, the server can first determine the host applications belonging to the same host alliance as the host application 1 from the host application list in this step, and then further determine the end capability information of these host applications.
  • the server returns the determined terminal capability information of the host application to the host application 1.
  • the host application 1 obtains the terminal capability information of the host application installed on the terminal device from the server, and stores it in the local database of the host application 1. Then in step 204, by querying the local database of the host application 1, it is possible to determine other host applications in the terminal device that have the end capability of the applet call and their corresponding end capability information.
  • the terminal capabilities of the host application 2 are invoked to realize the service of the applet.
  • the host application 1 determines the call interface information of the end capability based on the end capability information stored in the local database, such as the interface call method, scheme, parameters, etc., so as to call the host application 2’s interface of the end capability. , And get the result of the call through the callback function (callback).
  • the service interface of the applet can be maintained during the above-mentioned whole calling process. It is also possible to jump to the interface of the host application 1 during the call, or further jump to the interface of the host application 2, and return to the service interface of the applet after the end of the call.
  • the host application 1 determines that no host application in the terminal device has the ability to call the applet, it can return a call failure message to the applet, or prompt the user that the call failed.
  • the host application 1 if it fails in the process of invoking the terminal capabilities of the host application 2, it can return a call failure message to the applet, or prompt the user that the call failed. Or, you can continue to try to call the end capabilities of other host applications that have the end capabilities.
  • FIG. 5 is a flowchart of the method provided by Embodiment 2 of the present invention.
  • the method is executed by the host application 1 of the terminal device.
  • the execution device may be a plug-in located in the host application of the terminal device or a software development kit (SDK) and other functions unit.
  • SDK software development kit
  • Steps 501 to 503 are the same as steps 201 to 203 of the first embodiment, and will not be repeated.
  • the host application 1 queries the shared database in the terminal device to determine other host applications that have the ability to call the applet, assuming that it is the host application 2.
  • each host application can store its own terminal capability information in the shared database of the terminal device.
  • each host application can store its own terminal capability information in a shared database after installation.
  • each host application for the same host alliance can adopt the mode of the functional end capability provided by the embodiment of the present invention. Therefore, a preferred implementation manner is that each host application stores its own end capability information in the shared database of its own host alliance, and then the function database stores end capability information of each host application belonging to the same host alliance. In this step, the host application 1 queries the shared database corresponding to the host alliance.
  • the form of the aforementioned shared storage space is not limited by the present invention.
  • an SDCard may be used, or other forms of shared storage space may also be used.
  • the terminal capabilities of the host application 2 are invoked to realize the service of the applet.
  • This step is the same as step 205, and will not be described in detail.
  • the service interface of the applet can be maintained during the entire invocation process. It is also possible to jump to the interface of the host application 1 during the call, or further jump to the interface of the host application 2, and return to the service interface of the applet after the end of the call.
  • the host application 1 determines that no host application in the terminal device has the ability to call the applet, it can return a call failure message to the applet, or prompt the user that the call failed.
  • the host application 1 if it fails in the process of invoking the terminal capabilities of the host application 2, it can return a call failure message to the applet, or prompt the user that the call failed. Or, you can continue to try to call the end capabilities of other host applications that have the end capabilities.
  • the implementation manner provided in the first embodiment is preferred.
  • host applications 1, 2, 3, and 4 are installed in the terminal device.
  • the host application 1 requests and obtains the list of host applications that belong to the same host alliance as the host application 1 from the server side of the host application 1, assuming that the host applications 1, 2, and 3 belong to the same host alliance.
  • the host application 1 requests and obtains the end capability information of the host applications 1, 2 and 3 from the server, and stores it in the local database of the host application 1.
  • the content stored in the local database is assumed to be:
  • the user triggers an event to call the wifi connection function.
  • the local database is queried to determine that the host application 2 has the wifi connection function. According to the calling interface information of the connection wifi function recorded in the local database, the corresponding interface of the host application 2 is called and related parameters are passed. The call result is returned to the host application 1 through callback.
  • Figure 6 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. 6 is only an example, and should not bring any limitation to the function and application scope of the embodiments of the present invention.
  • 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).
  • 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.
  • 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.
  • ISA industry standard architecture
  • MAC microchannel architecture
  • VESA Video Electronics Standards Association
  • PCI peripheral component interconnection
  • 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 nonvolatile media, removable and non-removable media.
  • the system memory 028 may include a computer system readable medium 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.
  • the storage system 034 can be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 6, and generally referred to as a "hard drive").
  • a disk drive for reading and writing to a removable non-volatile disk such as a "floppy disk”
  • a removable non-volatile optical disk such as CD-ROM, DVD-ROM
  • other optical media read and write optical disc drives.
  • 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, the program product having a set (for example, at least one) of program modules, and these program modules are configured to perform the functions of the embodiments of the present invention.
  • 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.
  • the computer system 012 can also communicate with one or more external devices 014 (such as a keyboard, a pointing device, a display 024, etc.).
  • the computer system 012 communicates with an external radar device, 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.
  • the computer system 012 may 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.
  • networks such as a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet
  • 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. 6, 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, tapes Drives and data backup storage systems, etc.
  • 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.
  • the program When the program is executed by one or more computers, one or more computers can execute the operations shown in 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.
  • 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 electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above.
  • 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.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or flash memory Erasable programmable read-only memory
  • CD-ROM compact disk read-only memory
  • 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 .
  • 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.
  • 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.
  • 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).
  • LAN local area network
  • WAN wide area network

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a method for calling a terminal capability, a device, and a computer storage medium. A method performed by a first host application of a terminal device comprises: obtaining an event for a Mini Program to call a terminal capability of a host application; if the first host application does not have the terminal capability called by the Mini Program, calling a terminal capability comprised in a second host application in the terminal device. According to the present invention, terminal capabilities of the host applications can be shared in the same terminal device without integrating all functional codes in the host applications, thereby conserving resources while ensuring that the Mini Program provides service.

Description

一种端能力的调用方法、设备和计算机存储介质Method, device and computer storage medium for calling terminal capability 【技术领域】【Technical Field】
本发明涉及计算机应用技术领域,特别涉及一种端能力的调用方法、设备和计算机存储介质。The present invention relates to the technical field of computer applications, in particular to a method, equipment and computer storage medium for invoking terminal capabilities.
【背景技术】【Background technique】
本部分旨在为权利要求书中陈述的本发明的实施方式提供背景或上下文。此处的描述不因为包括在本部分中就被认为是现有技术。This section is intended to provide background or context for the embodiments of the invention stated in the claims. The description here is not considered prior art just because it is included in this section.
小程序(Mini Program)是一种不需要安装即可使用的应用,其运行于宿主应用提供的环境下。其因随时可用但又无需安装卸载而得到了越来越广泛的应用。小程序在提供服务的过程中往往需要调用宿主应用的端能力,这就需要在宿主应用集成大量的业务功能代码,必然会导致宿主应用的包体非常大,造成资源浪费;否则小程序就无法提供相应的服务。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 but does not need to be installed or uninstalled. Mini programs often need to call the host application's end capabilities in the process of providing services, which requires the integration of a large number of business function codes in the host application, which will inevitably lead to a very large package body of the host application, resulting in a waste of resources; otherwise the mini program will not be able to Provide corresponding services.
【发明内容】[Summary of the invention]
有鉴于此,本发明提供了一种端能力的调用方法、设备和计算机存储介质,以在保证小程序提供服务的同时,节约资源。In view of this, the present invention provides a method, device and computer storage medium for invoking terminal capabilities to save resources while ensuring that the applet provides services.
具体技术方案如下:The specific technical solutions are as follows:
第一方面,本申请提供一种端能力的调用方法,由终端设备的第一宿主应用执行,该方法包括:In the first aspect, this application provides a method for invoking a terminal capability, which is executed by a first host application of a terminal device, and the method includes:
获取到小程序调用宿主应用端能力的事件;Obtain the event that the applet calls the capability of the host application;
若所述第一宿主应用不具备所述小程序调用的端能力,则调用所述终端设备中第二宿主应用具备的所述端能力。If the first host application does not have the terminal capability of the applet call, then the terminal capability of the second host application in the terminal device is invoked.
根据本申请一优选实施方式,该方法还包括:所述第一宿主应用启动后,从服务器端获取所述终端设备上已安装的宿主应用所具备的端能力信息,并存入所述第一宿主应用的数据库;According to a preferred embodiment of the present application, the method further includes: after the first host application is started, obtaining terminal capability information possessed by the host application installed on the terminal device from the server, and storing it in the first host application. The database of the host application;
查询所述数据库以执行所述调用所述终端设备中第二宿主应用具备的所述端能力的步骤。Query the database to execute the step of invoking the terminal capability possessed by the second host application in the terminal device.
根据本申请一优选实施方式,所述从服务器端获取所述终端设备上已安装的宿主应用所具备的端能力信息包括:According to a preferred embodiment of the present application, the obtaining from the server the terminal capability information possessed by the host application installed on the terminal device includes:
所述第一宿主应用向服务器端请求并获取与所述第一宿主应用属于同一宿主联盟的宿主应用列表;The first host application requests from the server side and obtains a list of host applications that belong to the same host alliance as the first host application;
确定所述宿主应用列表中所述终端设备已安装的宿主应用信息;Determining host application information that has been installed on the terminal device in the host application list;
向服务器端请求并获取所述终端设备已安装的宿主应用的端能力信息。Request and obtain the terminal capability information of the host application installed on the terminal device from the server.
根据本申请一优选实施方式,所述从服务器端获取所述终端设备上已安装的宿主应用所具备的端能力信息包括:According to a preferred embodiment of the present application, the obtaining from the server the terminal capability information possessed by the host application installed on the terminal device includes:
所述第一宿主应用将所述终端设备已安装的宿主应用列表上传至服务器端;The first host application uploads a list of host applications installed on the terminal device to the server;
获取所述服务器端返回的宿主应用的端能力信息,所述返回的宿主应用的端能力信息为:所述服务器端从所述宿主应用列表中确定的与所述第一宿主应用属于同一宿主联盟的宿主应用的端能力信息。Acquire the end capability information of the host application returned by the server, and the returned end capability information of the host application is: the server determines from the host application list that it belongs to the same host alliance as the first host application The end capability information of the host application.
根据本申请一优选实施方式,该方法还包括:属于同一宿主联盟的各宿主应用将各自具备的端能力信息存入所述终端设备中对应宿主联盟的共享数据库;According to a preferred embodiment of the present application, the method further includes: each host application belonging to the same host alliance stores their respective terminal capability information into the shared database of the corresponding host alliance in the terminal device;
所述第一宿主应用查询所属宿主联盟对应的共享数据库以执行所述调用所述终端设备中第二宿主应用具备的所述端能力的步骤。The first host application queries the shared database corresponding to the host alliance to execute the step of invoking the terminal capability possessed by the second host application in the terminal device.
根据本申请一优选实施方式,所述端能力信息包括:端能力名称以及端能力的调用接口信息。According to a preferred embodiment of the present application, the terminal capability information includes: the terminal capability name and the calling interface information of the terminal capability.
根据本申请一优选实施方式,调用所述终端设备中第二宿主应用具备的所述端能力包括:According to a preferred embodiment of the present application, invoking the terminal capability possessed by the second host application in the terminal device includes:
所述第一宿主应用依据所述端能力的调用接口信息,调用所述第二宿主应用具备的所述端能力的接口,获取通过回调函数返回的调用结果。The first host application calls the interface of the end capability possessed by the second host application according to the call interface information of the end capability, and obtains the call result returned by the callback function.
第二方面,本申请提供了一种端能力的调用方法,由第一宿主应用的服务器端执行,该方法包括:In the second aspect, this application provides a method for invoking a terminal capability, which is executed by the server of the first host application, and the method includes:
从属于同一宿主联盟的其他宿主应用的服务器端获取其他宿主应用具备的端能力信息;Obtain the end capability information possessed by other host applications from the server side of other host applications belonging to the same host alliance;
将所述第一宿主应用所在终端设备上已安装的宿主应用所具备的端能力 信息发送给所述第一宿主应用。The terminal capability information of the host application installed on the terminal device where the first host application is located is sent to the first host application.
根据本申请一优选实施方式,该方法还包括:According to a preferred embodiment of the present application, the method further includes:
所述第一宿主应用的服务器端提供访问接口,以便于同一宿主联盟的其他宿主应用的服务器端通过所述访问接口获取所述第一宿主应用的端能力信息。The server end of the first host application provides an access interface so that the server ends of other host applications in the same host alliance can obtain the end capability information of the first host application through the access interface.
根据本申请一优选实施方式,将所述第一宿主应用所在终端设备上已安装的宿主应用所具备的端能力信息发送给所述第一宿主应用,包括:According to a preferred embodiment of the present application, sending the terminal capability information of the host application installed on the terminal device where the first host application is located to the first host application includes:
接收到所述第一宿主应用的第一请求后,将与所述第一宿主应用属于同一宿主联盟的宿主应用列表发送至所述第一宿主应用;After receiving the first request of the first host application, send a list of host applications that belong to the same host alliance as the first host application to the first host application;
接收到所述第一宿主应用的第二请求后,将所述终端设备已安装的宿主应用的端能力信息发送至所述第一宿主应用,其中所述第二请求包含所述宿主应用列表中所述终端设备已安装的宿主应用信息。After receiving the second request of the first host application, send the terminal capability information of the host application installed on the terminal device to the first host application, where the second request includes the list of host applications The host application information that the terminal device has installed.
根据本申请一优选实施方式,将所述第一宿主应用所在终端设备上已安装的宿主应用所具备的端能力信息发送给所述第一宿主应用,包括:According to a preferred embodiment of the present application, sending the terminal capability information of the host application installed on the terminal device where the first host application is located to the first host application includes:
接收所述第一宿主应用所在终端设备已安装的宿主应用列表;Receiving a list of host applications that have been installed on the terminal device where the first host application is located;
从所述宿主应用列表中确定与所述第一宿主应用属于同一宿主联盟的宿主应用的端能力信息;Determining, from the host application list, terminal capability information of a host application that belongs to the same host alliance as the first host application;
将确定出的宿主应用的端能力信息返回给所述第一宿主应用。The determined terminal capability information of the host application is returned to the first host application.
根据本申请一优选实施方式,所述端能力信息包括:端能力名称以及端能力的调用接口信息。According to a preferred embodiment of the present application, the terminal capability information includes: the terminal capability name and the calling interface information of the terminal capability.
第三方面,本申请提供了一种设备,所述设备包括:In the third aspect, the present application provides a device, the device includes:
一个或多个处理器;One or more processors;
存储装置,用于存储一个或多个程序,Storage device, used to store 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 as described above.
第四方面,本申请提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如上所述的方法。In a fourth aspect, the present application provides a storage medium containing computer-executable instructions, which are used to perform the above-mentioned method when executed by a computer processor.
由以上技术方案可以看出,在本发明中小程序在调用宿主应用的端能力时,能够在同一终端设备中共享各宿主应用的端能力,而不必在各宿主应用中集成所有的功能代码,从而在保证小程序提供服务的同时,节约资源。It can be seen from the above technical solutions that, when the applet in the present invention calls the end capability of the host application, it can share the end capability of each host application in the same terminal device without having to integrate all the function codes in each host application, thereby While ensuring that the applet provides services, it saves resources.
【附图说明】【Explanation of the drawings】
图1为本发明实施例涉及的系统架构示意图;FIG. 1 is a schematic diagram of a system architecture involved in an embodiment of the present invention;
图2为本发明实施例一提供的方法流程图;2 is a flowchart of a method provided in Embodiment 1 of the present invention;
图3和图4为本发明实施例一提供的两种从服务器端获取端能力信息的方法流程图;3 and 4 are flowcharts of two methods for obtaining end capability information from the server according to the first embodiment of the present invention;
图5为本发明实施例二提供的方法流程图;FIG. 5 is a flowchart of a method provided in Embodiment 2 of the present invention;
图6示出了适于用来实现本发明实施方式的示例性计算机系统的框图。Figure 6 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, firstly, the system architecture and main concepts involved in the present invention will be 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, such as: 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), Internet cars, and so on. 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, for example, 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, the host application 1 and the 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.
每个宿主应用都存在对应的服务器端,如图1中所示,宿主应用1对应服务器端1,宿主应用2对应服务器端2。每个宿主应用均可以与其对应的服务器端进行交互,在本发明实施例中,不同的服务器端之间也可以进行数据交互。Each host application has a corresponding server side. As shown in FIG. 1, the host application 1 corresponds to the server side 1, and the host application 2 corresponds to the server side 2. Each host application can interact with its corresponding server end. In the embodiment of the present invention, data exchange can also be performed between different server ends.
各服务器端可以是单一服务器,也可以是多个服务器构成的服务器群组。 应该理解,图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 merely illustrative. According to implementation needs, there can be any number of terminal devices, host applications, applets, and servers.
本发明的核心思想在于,同一终端设备中各宿主应用共享端能力,从而实现解决需要在一个宿主应用中集成大量的业务功能代码的问题,节约资源。下面结合实施例对本发明所提供的方法进行详细描述。The core idea of the present invention is that each host application in the same terminal device shares terminal capabilities, thereby solving the problem of integrating a large number of business function codes in a host application and saving resources. The method provided by the present invention will be described in detail below in conjunction with embodiments.
实施例一、Example one,
图2为本发明实施例一提供的方法流程图,该方法由终端设备的宿主应用1执行,执行装置可以是位于终端设备宿主应用的插件或软件开发工具包(Software Development Kit,SDK)等功能单元。如图2所示,该方法主要包括以下步骤:Figure 2 is a flowchart of the method provided by Embodiment 1 of the present invention. The method is executed by the host application 1 of the terminal device. The execution device may be a plug-in or a software development kit (SDK) located in the host application of the terminal device. unit. As shown in Figure 2, the method mainly includes the following steps:
在201中,宿主应用1获取小程序调用宿主应用端能力的事件。In 201, the host application 1 obtains an event for the applet to call the host application's capabilities.
小程序在服务过程中,可能需要调用宿主应用端能力才能够实现对应的服务。所谓端能力指的是宿主应用所具备的功能,是宿主应用作为宿主环境为小程序的服务所提供的功能,例如联网功能、支付功能、地理位置功能、读取相册功能、等等。During the service process of the applet, it may be necessary to call the capabilities of the host application to realize the corresponding service. The so-called end capability refers to the functions possessed by the host application, which are the functions provided by the host application as a host environment for the services of the applet, such as networking functions, payment functions, geographic location functions, album reading functions, and so on.
在202中,判断宿主应用1是否具备该小程序调用的端能力,如果是,则执行203,由宿主应用1调用自身的端能力以实现小程序的服务,结束当前流程。否则,执行204。In 202, it is judged whether the host application 1 has the end-to-end capability for calling the applet, and if so, execute 203, and the host application 1 calls its own end-to-end capability to realize the service of the applet, and ends the current process. Otherwise, go to 204.
在204中,查询宿主应用1的本地数据库,确定终端设备中具备小程序调用的端能力的其他宿主应用,假设是宿主应用2。In 204, the local database of the host application 1 is queried to determine other host applications in the terminal device that have the ability to call the applet, suppose it is the host application 2.
在本实施例中,宿主应用1可以在启动后,从服务器端获取终端设备上已安装的宿主应用所具备的端能力信息,并存入宿主应用1的本地数据库。然后在本步骤中,宿主应用1通过查询本地数据库就能够获知本终端设备上具备小程序调用的端能力的宿主应用。In this embodiment, after the host application 1 is started, the terminal capability information of the host application installed on the terminal device may be obtained from the server side, and stored in the local database of the host application 1. Then in this step, the host application 1 can learn about the host application capable of calling the applet on the terminal device by querying the local database.
其中,对于宿主应用1从服务器端获取终端设备上已安装的宿主应用所具备的端能力信息的过程分别结合图3和图4进行详细描述。但需要说明的是,图3和图4所示出的两种方式仅是本申请实施例所提供的两种优选实施方式,但并不限于该两种方式。对于基于同样思路达到同样效果的其他方式均在本申 请保护范围内。Among them, the process for the host application 1 to obtain the terminal capability information of the host application installed on the terminal device from the server is described in detail with reference to FIG. 3 and FIG. 4 respectively. However, it should be noted that the two modes shown in FIG. 3 and FIG. 4 are only the two preferred implementation modes provided by the embodiments of the present application, but are not limited to the two modes. Other ways to achieve the same effect based on the same idea are all within the protection scope of this application.
第一种方式如图3中所示,可以包括以下步骤:The first way is shown in Figure 3, which can include the following steps:
在301中,宿主应用1向宿主应用1的服务器端发送第一请求。In 301, the host application 1 sends a first request to the server of the host application 1.
在302中,服务器端将与宿主应用1属于同一宿主联盟的宿主应用列表发送至宿主应用1。In 302, the server sends a list of host applications that belong to the same host alliance as host application 1 to host application 1.
一种理想的情况是,所有宿主应用均采用相同的小程序标准。但往往在实际情况中,一些宿主应用是采用相同的小程序标准的,但另一些宿主应用则采用其他小程序标准。那么可以将采用相同小程序标准的宿主应用称为一个宿主联盟。针对同一宿主联盟的各宿主应用可以采用本发明实施例所提供的功能端能力的方式。关于哪些宿主应用属于同一宿主联盟则可以在服务器端统一配置,然后各宿主应用从服务器端获取。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 the host application that adopts the same applet standard can be called a host alliance. Each host application for the same host alliance can adopt the mode of the functional end capability provided by the embodiment of the present invention. 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.
宿主应用1在启动时或启动后,可以向对应服务器端发送第一请求以同步宿主联盟信息,对应服务器端向该宿主应用1返回宿主联盟的宿主应用列表,例如包含各宿主应用的包名。The host application 1 can send a first request to the corresponding server to synchronize the host alliance information when or after the host application 1 is started, and the corresponding server returns to the host application 1 a host application list of the host alliance, for example, contains the package name of each host application.
在303中,宿主应用1确定宿主应用列表中终端设备已安装的宿主应用信息。In 303, the host application 1 determines the host application information that has been installed on the terminal device in the host application list.
宿主应用1启动时或启动后,可以对终端设备本地已安装的应用程序进行扫描,再进一步利用从服务器端获取到的同一宿主联盟的宿主应用列表,就能够确定出宿主应用列表中终端设备已安装的宿主应用信息,可以将这些宿主应用的信息以列表形式存储于本宿主应用的数据库中。When or after the host application 1 is started, it can scan the locally installed applications of the terminal device, and then further use the host application list of the same host alliance obtained from the server to determine that the terminal device in the host application list has been The installed host application information can be stored in the database of the host application in the form of a list.
在304中,宿主应用1向服务器端发送第二请求,第二请求包含宿主应用列表中终端设备已安装的宿主应用信息。In 304, the host application 1 sends a second request to the server, and the second request includes information about the host application that has been installed on the terminal device in the host application list.
在305中,服务器端将终端设备已安装的宿主应用的端能力信息发送至宿主应用1。In 305, the server sends the terminal capability information of the host application installed on the terminal device to the host application 1.
在各宿主应用的服务器端可以预先配置本宿主应用可共享的端能力信息,其中,端能力信息可以包括端能力名称和端能力的接口信息。端能力的接口信息可以包括调用方式、协议(scheme)、参数等。The end capability information that can be shared by the host application can be pre-configured on the server side of each host application, where the end capability information may include the end capability name and the interface information of the end capability. The interface information of the terminal capability may include the calling method, the protocol (scheme), parameters, and so on.
并且,各宿主应用的服务器端可以向同一宿主应用的服务器端提供访问接口,同一宿主联盟的服务器端可以通过其他宿主应用的服务器端的访问接口同 步各宿主应用的端能力信息。其中同步的方式可以是周期性地同步,也可以是基于特定事件触发的同步。In addition, the server side of each host application can provide an access interface to the server side of the same host application, and the server side of the same host alliance can synchronize the end capability information of each host application through the access interface of the server side of other host applications. The synchronization method can be periodic synchronization or synchronization triggered by a specific event.
第二种方式如图4中所示,可以包括以下步骤:The second way is shown in Figure 4, which can include the following steps:
在401中,宿主应用1将终端设备已安装的宿主应用列表发送给宿主应用1的服务器端。In 401, the host application 1 sends a list of host applications installed on the terminal device to the server of the host application 1.
宿主应用1启动时或启动后,可以对终端设备本地已安装的应用程序进行扫描,将扫描得到的宿主应用列表上传给服务器端。When or after the host application 1 is started, it can scan the applications installed locally on the terminal device, and upload the scanned host application list to the server.
在402中,服务器端从宿主应用列表中确定与宿主应用1属于同一宿主联盟的宿主应用的端能力信息。In 402, the server determines the terminal capability information of the host application belonging to the same host alliance as the host application 1 from the host application list.
与图3中类似的,在服务器端预先配置有属于同一宿主联盟的宿主应用的信息,以及能够从属于同一宿主联盟的其他服务器端同步其他各宿主应用的端能力信息。因此,服务器端在本步骤中可以先从宿主应用列表中确定与宿主应用1属于同一宿主联盟的宿主应用,然后再进一步确定这些宿主应用的端能力信息。Similar to FIG. 3, the server is pre-configured with the information of the host applications belonging to the same host alliance, and the end capability information of other host applications can be synchronized with other servers belonging to the same host alliance. Therefore, the server can first determine the host applications belonging to the same host alliance as the host application 1 from the host application list in this step, and then further determine the end capability information of these host applications.
在403中,服务器端将确定出的宿主应用的端能力信息返回给宿主应用1。In 403, the server returns the determined terminal capability information of the host application to the host application 1.
通过图3或图4所示方式,宿主应用1从服务器端获取终端设备上已安装的宿主应用所具备的端能力信息后,存入宿主应用1的本地数据库。然后在步骤204中,通过查询宿主应用1的本地数据库,就能够确定终端设备中具备小程序调用的端能力的其他宿主应用以及其对应的端能力信息。In the manner shown in FIG. 3 or FIG. 4, the host application 1 obtains the terminal capability information of the host application installed on the terminal device from the server, and stores it in the local database of the host application 1. Then in step 204, by querying the local database of the host application 1, it is possible to determine other host applications in the terminal device that have the end capability of the applet call and their corresponding end capability information.
在205中,调用宿主应用2具备的端能力,以实现小程序的服务。In 205, the terminal capabilities of the host application 2 are invoked to realize the service of the applet.
在本步骤中,宿主应用1依据本地数据库中所存储的端能力信息,确定该端能力的调用接口信息,例如接口调用方式、scheme、参数等,从而调用宿主应用2具备的该端能力的接口,并通过回调函数(callback)获取调用结果。In this step, the host application 1 determines the call interface information of the end capability based on the end capability information stored in the local database, such as the interface call method, scheme, parameters, etc., so as to call the host application 2’s interface of the end capability. , And get the result of the call through the callback function (callback).
上述整个调用过程中可以保持小程序的服务界面。也可以在调用过程中跳转至宿主应用1的界面,或者进一步跳转至宿主应用2的界面,调用结束后返回小程序的服务界面。The service interface of the applet can be maintained during the above-mentioned whole calling process. It is also possible to jump to the interface of the host application 1 during the call, or further jump to the interface of the host application 2, and return to the service interface of the applet after the end of the call.
另外,如果在上述过程中,宿主应用1确定终端设备中没有宿主应用具备小程序调用的端能力,则可以向小程序返回调用失败的消息,或者向用户提示调用失败。In addition, if in the above process, the host application 1 determines that no host application in the terminal device has the ability to call the applet, it can return a call failure message to the applet, or prompt the user that the call failed.
另外,如果宿主应用1在调用上述宿主应用2的端能力过程中调用失败,则可以向小程序返回调用失败的消息,或者向用户提示调用失败。或者,也可以继续尝试调用具备该端能力的其他宿主应用的端能力。In addition, if the host application 1 fails in the process of invoking the terminal capabilities of the host application 2, it can return a call failure message to the applet, or prompt the user that the call failed. Or, you can continue to try to call the end capabilities of other host applications that have the end capabilities.
图5为本发明实施例二提供的方法流程图,该方法由终端设备的宿主应用1执行,执行装置可以是位于终端设备宿主应用的插件或软件开发工具包(Software Development Kit,SDK)等功能单元。如图5所示,该方法主要包括以下步骤:FIG. 5 is a flowchart of the method provided by Embodiment 2 of the present invention. The method is executed by the host application 1 of the terminal device. The execution device may be a plug-in located in the host application of the terminal device or a software development kit (SDK) and other functions unit. As shown in Figure 5, the method mainly includes the following steps:
在501~503同实施例一种步骤201~203,不做赘述。 Steps 501 to 503 are the same as steps 201 to 203 of the first embodiment, and will not be repeated.
在504中,宿主应用1查询终端设备中的共享数据库,确定具备小程序调用的端能力的其他宿主应用,假设为宿主应用2。In 504, the host application 1 queries the shared database in the terminal device to determine other host applications that have the ability to call the applet, assuming that it is the host application 2.
在本实施例中,各宿主应用可以将各自具备的端能力信息存储终端设备的共享数据库。例如,各宿主应用可以在安装后将各自具备的端能力信息存储于共享数据库。In this embodiment, each host application can store its own terminal capability information in the shared database of the terminal device. For example, each host application can store its own terminal capability information in a shared database after installation.
一种理想的情况是,所有宿主应用均采用相同的小程序标准。但往往在实际情况中,一些宿主应用是采用相同的小程序标准的,但另一些宿主应用则采用其他小程序标准。那么可以将采用相同小程序标准的宿主应用称为一个宿主联盟。针对同一宿主联盟的各宿主应用可以采用本发明实施例所提供的功能端能力的方式。因此,一种优选的实施方式是,各宿主应用将自己所具有的端能力信息存入所属宿主联盟的共享数据库,那么该功能数据库存储的就是属于同一宿主联盟的各宿主应用的端能力信息。本步骤中,宿主应用1从所述宿主联盟对应的共享数据库中进行查询。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 the host application that adopts the same applet standard can be called a host alliance. Each host application for the same host alliance can adopt the mode of the functional end capability provided by the embodiment of the present invention. Therefore, a preferred implementation manner is that each host application stores its own end capability information in the shared database of its own host alliance, and then the function database stores end capability information of each host application belonging to the same host alliance. In this step, the host application 1 queries the shared database corresponding to the host alliance.
上述共享存储空间的形式本发明并不加以限制,例如可以采用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 also be used.
在505中,调用宿主应用2具备的端能力,以实现小程序的服务。In 505, the terminal capabilities of the host application 2 are invoked to realize the service of the applet.
本步骤同步骤205,不做赘述。This step is the same as step 205, and will not be described in detail.
同样,上述整个调用过程中可以保持小程序的服务界面。也可以在调用过程中跳转至宿主应用1的界面,或者进一步跳转至宿主应用2的界面,调用结束后返回小程序的服务界面。Similarly, the service interface of the applet can be maintained during the entire invocation process. It is also possible to jump to the interface of the host application 1 during the call, or further jump to the interface of the host application 2, and return to the service interface of the applet after the end of the call.
另外,如果在上述过程中,宿主应用1确定终端设备中没有宿主应用具备 小程序调用的端能力,则可以向小程序返回调用失败的消息,或者向用户提示调用失败。In addition, if in the foregoing process, the host application 1 determines that no host application in the terminal device has the ability to call the applet, it can return a call failure message to the applet, or prompt the user that the call failed.
另外,如果宿主应用1在调用上述宿主应用2的端能力过程中调用失败,则可以向小程序返回调用失败的消息,或者向用户提示调用失败。或者,也可以继续尝试调用具备该端能力的其他宿主应用的端能力。In addition, if the host application 1 fails in the process of invoking the terminal capabilities of the host application 2, it can return a call failure message to the applet, or prompt the user that the call failed. Or, you can continue to try to call the end capabilities of other host applications that have the end capabilities.
基于安全性和同步可靠性等因素的考虑,优选上述实施例一所提供的实现方式。Based on the consideration of factors such as security and synchronization reliability, the implementation manner provided in the first embodiment is preferred.
在此举一个应用的实例:Here is an example of an application:
假设终端设备中安装有宿主应用1、2、3和4。宿主应用1在启动后,向宿主应用1的服务器端请求并获取与宿主应用1属于同一宿主联盟的宿主应用列表,假设宿主应用1、2和3属于同一宿主联盟。宿主应用1向服务器端请求并获取宿主应用1、2和3的端能力信息,并存储于宿主应用1的本地数据库。Assume that host applications 1, 2, 3, and 4 are installed in the terminal device. After the host application 1 is started, it requests and obtains the list of host applications that belong to the same host alliance as the host application 1 from the server side of the host application 1, assuming that the host applications 1, 2, and 3 belong to the same host alliance. The host application 1 requests and obtains the end capability information of the host applications 1, 2 and 3 from the server, and stores it in the local database of the host application 1.
本地数据库中存储的内容假设为:The content stored in the local database is assumed to be:
宿主应用1-支付能力-支付能力的调用接口信息;Host application 1-ability to pay-calling interface information of ability to pay;
宿主应用2-连接wifi功能-连接wifi功能的调用接口信息;Host application 2-connect to wifi function-to connect to the calling interface information of wifi function;
宿主应用3-读取本地相册功能-读取本地相册功能的调用接口信息。Host application 3-read local album function-read the calling interface information of the local album function.
用户在宿主应用1上使用小程序a的过程中触发了调用连接wifi功能的事件。In the process of using applet a on the host application 1, the user triggers an event to call the wifi connection function.
宿主应用1获取到上述事件后,假设宿主应用1不具备连接wifi功能,那么查询本地数据库,确定宿主应用2具备连接wifi功能。依据本地数据库中记录的连接wifi功能的调用接口信息,调用宿主应用2的相应接口,并传递相关参数。调用结果通过callback返回给宿主应用1。After the host application 1 obtains the above event, assuming that the host application 1 does not have the wifi connection function, then the local database is queried to determine that the host application 2 has the wifi connection function. According to the calling interface information of the connection wifi function recorded in the local database, the corresponding interface of the host application 2 is called and related parameters are passed. The call result is returned to the host application 1 through callback.
可见,在整个过程中虽然宿主应用1不具备连接wifi的功能,但通过在终端设备中共享端能力的方式,通过调用具备连接wifi功能的宿主应用2,保证了小程序的服务。并且,无需在宿主应用1中重复集成连接wifi的功能代码,节约了资源。It can be seen that in the whole process, although the host application 1 does not have the function of connecting to wifi, the service of the applet is guaranteed by calling the host application 2 with the function of connecting to wifi by sharing the terminal capability in the terminal device. In addition, there is no need to repeatedly integrate the function code for connecting to wifi in the host application 1, which saves resources.
图6示出了适于用来实现本发明实施方式的示例性计算机系统012的框图。图6显示的计算机系统012仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Figure 6 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. 6 is only an example, and should not bring any limitation to the function and application scope of the embodiments of the present invention.
如图6所示,计算机系统012以通用计算设备的形式表现。计算机系统012的组件可以包括但不限于:一个或者多个处理器或者处理单元016,系统存储器028,连接不同系统组件(包括系统存储器028和处理单元016)的总线018。As shown in FIG. 6, 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 nonvolatile media, removable and non-removable media.
系统存储器028可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)030和/或高速缓存存储器032。计算机系统012可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统034可以用于读写不可移动的、非易失性磁介质(图6未显示,通常称为“硬盘驱动器”)。尽管图6中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线018相连。存储器028可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。The system memory 028 may include a computer system readable medium 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 can be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 6, and generally referred to as a "hard drive"). Although not shown in FIG. 6, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk") and a removable non-volatile optical 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, the program product having a set (for example, at least one) of program modules, and these program modules 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的其它模块通信。应当明白,尽管图6中未示出,可以结合计算机系统012使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The computer system 012 can also communicate with one or more external devices 014 (such as a keyboard, a pointing device, a display 024, etc.). In the present invention, the computer system 012 communicates with an external radar device, 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 may 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. 6, 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, tapes 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 operations shown in 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 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 electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any 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 the 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 (14)

  1. 一种端能力的调用方法,由终端设备的第一宿主应用执行,其特征在于,该方法包括:A method for invoking terminal capabilities, which is executed by a first host application of a terminal device, characterized in that the method includes:
    获取到小程序调用宿主应用端能力的事件;Obtain the event that the applet calls the capability of the host application;
    若所述第一宿主应用不具备所述小程序调用的端能力,则调用所述终端设备中第二宿主应用具备的所述端能力。If the first host application does not have the terminal capability of the applet call, then the terminal capability of the second host application in the terminal device is invoked.
  2. 根据权利权利要求1所述的方法,其特征在于,该方法还包括:所述第一宿主应用启动后,从服务器端获取所述终端设备上已安装的宿主应用所具备的端能力信息,并存入所述第一宿主应用的数据库;The method according to claim 1, wherein the method further comprises: after the first host application is started, obtaining terminal capability information possessed by the host application installed on the terminal device from the server side, and Stored in the database of the first host application;
    查询所述数据库以执行所述调用所述终端设备中第二宿主应用具备的所述端能力的步骤。Query the database to execute the step of invoking the terminal capability possessed by the second host application in the terminal device.
  3. 根据权利要求2所述的方法,其特征在于,所述从服务器端获取所述终端设备上已安装的宿主应用所具备的端能力信息包括:The method according to claim 2, wherein said acquiring from the server the terminal capability information possessed by the host application installed on the terminal device comprises:
    所述第一宿主应用向服务器端请求并获取与所述第一宿主应用属于同一宿主联盟的宿主应用列表;The first host application requests from the server side and obtains a list of host applications that belong to the same host alliance as the first host application;
    确定所述宿主应用列表中所述终端设备已安装的宿主应用信息;Determining host application information that has been installed on the terminal device in the host application list;
    向服务器端请求并获取所述终端设备已安装的宿主应用的端能力信息。Request and obtain the terminal capability information of the host application installed on the terminal device from the server.
  4. 根据权利要求2所述的方法,其特征在于,所述从服务器端获取所述终端设备上已安装的宿主应用所具备的端能力信息包括:The method according to claim 2, wherein said acquiring from the server the terminal capability information possessed by the host application installed on the terminal device comprises:
    所述第一宿主应用将所述终端设备已安装的宿主应用列表上传至服务器端;The first host application uploads a list of host applications installed on the terminal device to the server;
    获取所述服务器端返回的宿主应用的端能力信息,所述返回的宿主应用的端能力信息为:所述服务器端从所述宿主应用列表中确定的与所述第一宿主应用属于同一宿主联盟的宿主应用的端能力信息。Acquire the end capability information of the host application returned by the server, and the returned end capability information of the host application is: the server determines from the host application list that it belongs to the same host alliance as the first host application The end capability information of the host application.
  5. 根据权利要求1所述的方法,其特征在于,该方法还包括:属于同一宿主联盟的各宿主应用将各自具备的端能力信息存入所述终端设备中对应宿主联盟的共享数据库;The method according to claim 1, characterized in that the method further comprises: each host application belonging to the same host alliance storing their respective terminal capability information in the shared database of the corresponding host alliance in the terminal device;
    所述第一宿主应用查询所属宿主联盟对应的共享数据库以执行所述调用所述终端设备中第二宿主应用具备的所述端能力的步骤。The first host application queries the shared database corresponding to the host alliance to execute the step of invoking the terminal capability possessed by the second host application in the terminal device.
  6. 根据权利要求2或5所述的方法,其特征在于,所述端能力信息包括:端能力名称以及端能力的调用接口信息。The method according to claim 2 or 5, wherein the end capability information includes: the name of the end capability and the calling interface information of the end capability.
  7. 根据权利要求6所述的方法,其特征在于,调用所述终端设备中第二宿主应用具备的所述端能力包括:The method according to claim 6, wherein invoking the terminal capability possessed by the second host application in the terminal device comprises:
    所述第一宿主应用依据所述端能力的调用接口信息,调用所述第二宿主应用具备的所述端能力的接口,获取通过回调函数返回的调用结果。The first host application calls the interface of the end capability possessed by the second host application according to the call interface information of the end capability, and obtains the call result returned by the callback function.
  8. 一种端能力的调用方法,由第一宿主应用的服务器端执行,其特征在于,该方法包括:A method for invoking end capabilities, which is executed by the server end of a first host application, characterized in that the method includes:
    从属于同一宿主联盟的其他宿主应用的服务器端获取其他宿主应用具备的端能力信息;Obtain the end capability information possessed by other host applications from the server side of other host applications belonging to the same host alliance;
    将所述第一宿主应用所在终端设备上已安装的宿主应用所具备的端能力信息发送给所述第一宿主应用。The terminal capability information of the host application installed on the terminal device where the first host application is located is sent to the first host application.
  9. 根据权利要求8所述的方法,其特征在于,该方法还包括:The method according to claim 8, wherein the method further comprises:
    所述第一宿主应用的服务器端提供访问接口,以便于同一宿主联盟的其他宿主应用的服务器端通过所述访问接口获取所述第一宿主应用的端能力信息。The server end of the first host application provides an access interface so that the server ends of other host applications in the same host alliance can obtain the end capability information of the first host application through the access interface.
  10. 根据权利要求8所述的方法,其特征在于,将所述第一宿主应用所在终端设备上已安装的宿主应用所具备的端能力信息发送给所述第一宿主应用,包括:The method according to claim 8, wherein sending the terminal capability information possessed by the host application installed on the terminal device where the first host application is located to the first host application comprises:
    接收到所述第一宿主应用的第一请求后,将与所述第一宿主应用属于同一宿主联盟的宿主应用列表发送至所述第一宿主应用;After receiving the first request of the first host application, send a list of host applications that belong to the same host alliance as the first host application to the first host application;
    接收到所述第一宿主应用的第二请求后,将所述终端设备已安装的宿主应用的端能力信息发送至所述第一宿主应用,其中所述第二请求包含所述宿主应用列表中所述终端设备已安装的宿主应用信息。After receiving the second request of the first host application, send the terminal capability information of the host application installed on the terminal device to the first host application, where the second request includes the list of host applications The host application information that the terminal device has installed.
  11. 根据权利要求8所述的方法,其特征在于,将所述第一宿主应用所在终端设备上已安装的宿主应用所具备的端能力信息发送给所述第一宿主应用,包括:The method according to claim 8, wherein sending the terminal capability information possessed by the host application installed on the terminal device where the first host application is located to the first host application comprises:
    接收所述第一宿主应用所在终端设备已安装的宿主应用列表;Receiving a list of host applications that have been installed on the terminal device where the first host application is located;
    从所述宿主应用列表中确定与所述第一宿主应用属于同一宿主联盟的宿主应用的端能力信息;Determining, from the host application list, terminal capability information of a host application that belongs to the same host alliance as the first host application;
    将确定出的宿主应用的端能力信息返回给所述第一宿主应用。The determined terminal capability information of the host application is returned to the first host application.
  12. 根据权利要求8至11中任一项所述的方法,其特征在于,所述端能力信 息包括:端能力名称以及端能力的调用接口信息。The method according to any one of claims 8 to 11, wherein the end capability information includes: end capability name and call interface information of the end capability.
  13. 一种设备,其特征在于,所述设备包括:A device, characterized in that the device includes:
    一个或多个处理器;One or more processors;
    存储装置,用于存储一个或多个程序,Storage device, used to store one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-12中任一所述的方法。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-12.
  14. 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-12中任一所述的方法。A storage medium containing computer-executable instructions, which are used to execute the method according to any one of claims 1-12 when executed by a computer processor.
PCT/CN2020/123662 2019-11-06 2020-10-26 Method for calling terminal capability, device, and computer storage medium WO2021088671A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911078193.1A CN112835632B (en) 2019-11-06 2019-11-06 A terminal capability calling method, device and computer storage medium
CN201911078193.1 2019-11-06

Publications (1)

Publication Number Publication Date
WO2021088671A1 true WO2021088671A1 (en) 2021-05-14

Family

ID=75849386

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/123662 WO2021088671A1 (en) 2019-11-06 2020-10-26 Method for calling terminal capability, device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN112835632B (en)
WO (1) WO2021088671A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023178924A1 (en) * 2022-03-24 2023-09-28 中国银联股份有限公司 Payment method, user terminal, apparatus, device, system, and medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312055B (en) * 2021-05-28 2023-02-24 支付宝(中国)网络技术有限公司 Applet launching method, device and equipment
CN114531432A (en) * 2022-02-14 2022-05-24 浙江吉利控股集团有限公司 Cross-platform based service communication method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030033443A1 (en) * 2001-03-01 2003-02-13 Nikolay Igotti Virtual machine integration application program interface
CN104102537A (en) * 2013-04-07 2014-10-15 华为技术有限公司 Application calling method and user terminal
CN110515678A (en) * 2019-08-23 2019-11-29 上海连尚网络科技有限公司 An information processing method, device and computer storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109308240B (en) * 2017-07-26 2022-03-11 腾讯科技(深圳)有限公司 Operation processing method and device and storage medium
CN110221840B (en) * 2019-06-05 2023-04-25 百度在线网络技术(北京)有限公司 Function implementation method and device of application program, equipment and storage medium
CN110377369B (en) * 2019-07-25 2021-02-19 上海连尚网络科技有限公司 Method, device and computer storage medium for running small program
CN110389936B (en) * 2019-07-25 2021-05-14 上海连尚网络科技有限公司 A method, device and computer storage medium for starting applet

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030033443A1 (en) * 2001-03-01 2003-02-13 Nikolay Igotti Virtual machine integration application program interface
CN104102537A (en) * 2013-04-07 2014-10-15 华为技术有限公司 Application calling method and user terminal
CN110515678A (en) * 2019-08-23 2019-11-29 上海连尚网络科技有限公司 An information processing method, device and computer storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023178924A1 (en) * 2022-03-24 2023-09-28 中国银联股份有限公司 Payment method, user terminal, apparatus, device, system, and medium

Also Published As

Publication number Publication date
CN112835632A (en) 2021-05-25
CN112835632B (en) 2022-05-27

Similar Documents

Publication Publication Date Title
WO2021013243A1 (en) Method for starting mini program, device, and computer 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
WO2021013242A1 (en) Method for starting mini program, device and computer storage medium
US20220214932A1 (en) Methods, devices and computer storage media for inter-mini program platform communication
US7877091B2 (en) Method and system for executing a container managed application on a processing device
WO2021088671A1 (en) Method for calling terminal capability, device, and computer storage medium
US20020143962A1 (en) Dynamic loading of protocol stacks under signaling control
WO2021036877A1 (en) Information processing method, device, and computer storage medium
CN111737022A (en) Interface calling method, system, equipment and medium based on micro-service
WO2021169863A1 (en) Multimedia conference data processing method and apparatus, and electronic device
CN114356870B (en) Cross-device data sharing method and related device
CN109104491A (en) A kind of micro services call method, device, server and storage medium
CN114296646B (en) Caching method, device, server and storage medium based on IO service
WO2020177697A1 (en) Method for discovery between mini program platforms, device, and computer storage medium
CN111259022B (en) Information synchronization method, synchronization system, computer equipment and medium
CN110633046A (en) A storage method, device, storage device and storage medium for a distributed system
WO2022062634A1 (en) Method, apparatus, device, and storage medium for integrating map service in service
WO2025035886A1 (en) Data migration method and apparatus based on data storage, and server and storage medium
CN117041980B (en) A network element management method, device, storage medium and electronic equipment
WO2020177731A1 (en) Real-time communication method between hosted applications
CN114490104B (en) Information forwarding method, device, equipment and medium in Android system module
CN107885809A (en) File transmission method and device, intelligent tablet and storage medium
CN115103053A (en) Call establishment method, device, terminal, system and readable storage medium
CN111970338A (en) Request processing method and device based on cloud function and computer readable medium

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: 20884005

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: 20884005

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20884005

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 28.10.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20884005

Country of ref document: EP

Kind code of ref document: A1