WO2021088671A1 - Method for calling terminal capability, device, and computer storage medium - Google Patents
Method for calling terminal capability, device, and computer storage medium Download PDFInfo
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44573—Execute-in-place [XIP]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program 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
Description
Claims (14)
- 一种端能力的调用方法,由终端设备的第一宿主应用执行,其特征在于,该方法包括: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.
- 根据权利权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 一种端能力的调用方法,由第一宿主应用的服务器端执行,其特征在于,该方法包括: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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 一种设备,其特征在于,所述设备包括: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.
- 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求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.
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)
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)
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)
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)
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 |
-
2019
- 2019-11-06 CN CN201911078193.1A patent/CN112835632B/en active Active
-
2020
- 2020-10-26 WO PCT/CN2020/123662 patent/WO2021088671A1/en active Application Filing
Patent Citations (3)
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)
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 |