WO2020177731A1 - Real-time communication method between hosted applications - Google Patents

Real-time communication method between hosted applications Download PDF

Info

Publication number
WO2020177731A1
WO2020177731A1 PCT/CN2020/077897 CN2020077897W WO2020177731A1 WO 2020177731 A1 WO2020177731 A1 WO 2020177731A1 CN 2020077897 W CN2020077897 W CN 2020077897W WO 2020177731 A1 WO2020177731 A1 WO 2020177731A1
Authority
WO
WIPO (PCT)
Prior art keywords
host application
running
application
stack
call instruction
Prior art date
Application number
PCT/CN2020/077897
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 WO2020177731A1 publication Critical patent/WO2020177731A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Definitions

  • This application relates to the field of Internet applications, and in particular to an instant messaging recommendation method between boarding applications.
  • Mini programs can be easily acquired and disseminated in host applications such as WeChat and Baidu App, and have an excellent user experience.
  • Mini program developers can provide convenient and rich services in the mini program, such as reservations, product purchases, games, etc. Therefore, it has been more and more widely used.
  • Various aspects of the present application provide an instant communication method between boarding applications, which is used to solve the problem that real-time interaction between boarding applications cannot be realized.
  • the host application includes a plurality of runtime stacks for running the host application; including receiving and running on the default runtime stack through an instant messaging API interface
  • the call instruction sent by the first host application on the above, the call instruction includes the identification information of the second host application; according to the call instruction, run the second host application on the auxiliary running stack; forward the call via the instant messaging API interface A communication message between the first host application and the second host application.
  • an instant messaging method between host applications which is applied to a first host application, and the first host application runs on the default runtime stack of the host application; including sending a call instruction through an instant messaging API interface ,
  • the call instruction includes the identification information of the second host application; so that the host application runs the second host application on the auxiliary execution stack according to the call instruction; wherein, the host application includes a plurality of host applications for running the host application The runtime stack; receiving the execution result returned after executing the call instruction sent by the second host application forwarded by the host application through the instant messaging API interface.
  • an instant messaging method between host applications which is applied to a second host application, and the second host application runs on the auxiliary runtime stack of the host application; including receiving and executing via an instant messaging API interface The call instruction sent by the first host application running on the default run stack forwarded by the host application; wherein the host application includes multiple run stacks for running the host application; the execution result is returned through the instant messaging API interface so that The host application returns the execution result to the first host application.
  • a device in another aspect of the present application, includes: one or more processors; a storage device for storing one or more programs.
  • the one or more programs are used by the one or more Execution by two processors, so that the one or more processors implement any of the above-mentioned methods.
  • a computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, any of the above methods is implemented.
  • FIG. 1 is a schematic flowchart of an instant messaging method between host applications applied to a host application according to some embodiments of this application;
  • FIG. 2 is a schematic flowchart of an instant messaging method between boarding applications applied to a first boarding application according to some embodiments of this application;
  • FIG. 3 is a schematic flow chart of a method for instant messaging between boarding applications applied to a second boarding application according to some embodiments of this application;
  • Figure 4 is a block diagram of an exemplary computer system/server suitable for implementing some embodiments of the present invention.
  • Figure 1 is a schematic flow chart of an instant messaging method between hosted applications according to some embodiments of the application.
  • the method is applied to a host application, and the host application includes a plurality of runtime stacks for running the hosted application; including the following steps :
  • Step S11 Receive a call instruction sent by the first host application running on the default running stack through the instant messaging API interface, where the call instruction includes identification information of the second host application;
  • Step S12 according to the call instruction, run the second host application on the auxiliary running stack
  • Step S13 Forward the communication between the first host application and the second host application through the instant messaging API interface.
  • the host application is an application (APP) client installed on the wireless device, such as WeChat, or the operating system of the wireless device; the host application is an application that depends on the operation of the host application, such as an applet in WeChat, etc. .
  • the host application includes a plurality of runtime stacks for running the hosted application, for example, a default runtime stack for running a first hosted application, and an auxiliary runtime stack for running a second hosted application.
  • the wireless device includes, but is not limited to, any kind of smart terminal device that can interact with the user and realize the wireless communication function, such as smart phone, tablet computer, notebook computer, etc., of course, it can also be other similar Functional equipment is not limited in this embodiment.
  • the smart terminal device can adopt any operating system, such as Android operating system, iOS operating system, Windows operating system, and so on.
  • step S11 In a preferred implementation of step S11,
  • the host application receives the call instruction sent by the first host application running on the default running stack through the instant messaging API interface, and the call instruction includes the second host application identification information.
  • the first host application runs on the first run stack of the host application; the first run stack is the default run stack of the host application.
  • the host application starts the first running stack in response to the user's triggering of the first hosting application, and runs the first hosting application on the first running stack.
  • the host application receives a call instruction issued by the first host application running on the execution stack, and the call instruction is used to instruct to call the second host application.
  • the call instruction structure is as follows: instruction header, separator, data; wherein,
  • the command header part is used to mark the second host application so that the host application can run the second host application; preferably, the command header is the AppID of the second host application, and different host applications use their AppID to perform logo
  • the data part is used to instruct the second hosting application to perform a corresponding operation.
  • the first host application sends a call instruction to the second host application through its instant messaging API interface; the host application receives and processes the call instruction through its instant messaging API interface.
  • the first boarding application it is only necessary to issue a call instruction through its instant messaging API interface, and there is no need to understand the specific receiving and forwarding process of the call instruction.
  • step S12 In a preferred implementation of step S12,
  • the host application runs the second host application on the auxiliary running stack according to the call instruction
  • the host application starts the auxiliary run stack according to the call instruction; the auxiliary run stack is used to run the second host application on the auxiliary run stack while the default run stack runs the first host application.
  • the auxiliary run stack is used to run the second host application on the auxiliary run stack while the default run stack runs the first host application.
  • the second host application marked by the call instruction is run on the auxiliary running stack.
  • the host application receives the message sent by the first host application through the instant messaging API interface, and determines the specific type of the message by analyzing the message; if the structure of the message includes a command header, a separator, and data, then Indicates that it is a call instruction; if the message is not a call instruction, it will be processed according to the normal flow.
  • auxiliary runtime stacks that can be started by the host application. After the call to a host application ends, the host application is not stopped, but in its corresponding The boarding application continues to run on the auxiliary running stack; so that the boarding application can be called at any time without re-running.
  • the host application After the host application receives the call instruction, according to the AppID included in the call instruction, checks whether there is a corresponding second host application running on the auxiliary running stack;
  • the call instruction may be forwarded to the second host application, so that the second host application executes the call instruction;
  • the auxiliary run stack is started, the second host application is run in the auxiliary run stack, and the call instruction is forwarded to the second host application so that all The second host application executes the call instruction.
  • the host application stops the hosting application, and the auxiliary running stack is cleared instead of destroying, so that the required hosting application can be quickly run on the auxiliary running stack.
  • the second hosted application is not started, it is determined whether there is an activated and emptied auxiliary running stack; if it exists, the second hosted application is directly run on the auxiliary running stack; if it does not exist, the auxiliary running is started Stack, running the second hosting application on the auxiliary running stack.
  • the host application calls the second host application in the background, that is, the interface of the first host application remains unchanged.
  • step S13 In a preferred implementation of step S13,
  • the host application forwards the call instruction to the second host application through the instant messaging API interface, so that the second host application executes the call instruction.
  • the host application forwards the call instruction to the second host application through its instant messaging API interface; so that the second host application receives the call instruction through a unified default message receiving interface.
  • the unified default message receiving interface may be an instant messaging API interface of the second host application.
  • the second host application executes corresponding operations according to the data part in the call instruction structure, and returns the operation result to the first host application through a unified default result return interface.
  • the data part may be an instruction instructing the second host application to read the data in the data sharing area of the first host application, so as to realize the communication between the first host application and the second host application. Data transfer.
  • the host application receives the execution result returned by the second host application after executing the call instruction through the instant messaging API interface, and returns the execution result to the first host application.
  • the host application receives the operation result returned by the second host application through a unified default message receiving interface; forwards the operation result to the first host application through the result return interface, and the first host application The application receives the operation result through a unified default message receiving interface.
  • the operation result may be the operation result of the corresponding operation performed by the second host application according to the data part in the call instruction structure; or the feedback information returned after the second host application performs the corresponding operation ,
  • the feedback information is used to indicate that the operation of the first hosted application has been executed successfully, or the execution failed.
  • the unified default message receiving interface is an instant messaging API interface
  • the result return interface is an instant messaging API interface
  • the method further includes:
  • the host application stops the second hosting application.
  • the first host application After the first host application receives the operation result, it issues a call end instruction, and the call end instruction is used to instruct to stop the corresponding second host application.
  • the call end instruction includes identification information of the second host application. After receiving the call end instruction, the host application stops the second host application.
  • the second host application identification information is the AppID of the second host application.
  • the auxiliary running stack is cleared.
  • the first host application running on the default runtime stack is not affected.
  • the host application again receives the call instruction sent by the first host application, the auxiliary running stack is called again, and the above operation is repeated.
  • the host application starts the auxiliary runtime stack, runs the second host application on the auxiliary runtime stack, and forwards the communication message between the first host application and the second host application, thus realizing the real-time communication between the host applications communication.
  • FIG. 2 is a schematic flow chart of an instant messaging method between hosted applications according to some embodiments of this application. The method is applied to a first hosted application, and the first hosted application runs on the default running stack of the host application; including The following steps:
  • Step S21 Send a call instruction through the instant messaging API interface, where the call instruction includes the identification information of the second host application; so that the host application runs the second host application on the auxiliary running stack according to the call instruction; wherein, The host application includes multiple running stacks for running the host application;
  • Step S22 Receive the execution result returned after executing the call instruction sent by the second host application forwarded by the host application through the instant messaging API interface.
  • step S21 In a preferred implementation of step S21,
  • the host application starts the first running stack in response to the user's triggering of the first hosting application, and runs the first hosting application on the first running stack.
  • the first running stack is the default running stack of the host application.
  • the first host application sends a call instruction through the instant messaging API interface, and the call instruction is used to instruct to call the second host application.
  • the call instruction structure is as follows: instruction header, separator, data; wherein,
  • the command header part is used to mark the second host application so that the host application can run the second host application; preferably, the command header is the AppID of the second host application, and different host applications use their AppID to perform logo
  • the data part is used to instruct the second hosting application to perform a corresponding operation.
  • the first host application sends a call instruction to the second host application through its instant messaging API interface; the host application receives and processes the call instruction through its instant messaging API interface.
  • the first boarding application it is only necessary to issue a call instruction through its instant messaging API interface, and there is no need to understand the specific receiving and forwarding process of the call instruction.
  • the host application runs a second host application on the auxiliary execution stack according to the call instruction; the host application forwards the call instruction to the second host application so that the second host application executes the call instruction.
  • the host application receives the execution result returned after the second host application executes the call instruction, and returns the execution result to the first host application.
  • step S22 In a preferred implementation of step S22,
  • the first host application receives the execution result returned after the execution of the call instruction sent by the second host application forwarded by the host application through an instant messaging API interface.
  • the first host application receives the operation result through a unified default message receiving interface.
  • the operation result may be the operation result of the corresponding operation performed by the second host application according to the data part in the call instruction structure; or the feedback information returned after the second host application performs the corresponding operation ,
  • the feedback information is used to indicate that the operation of the first hosted application has been executed successfully, or the execution failed.
  • the unified default message receiving interface is an instant messaging API interface
  • the result return interface is an instant messaging API interface
  • the first host application After the first host application receives the operation result, it issues a call end instruction, and the call end instruction is used to instruct to stop the corresponding second host application.
  • the call end instruction includes identification information of the second host application. After receiving the call end instruction, the host application stops the second host application.
  • the first host application sends a call instruction for the second host application
  • the host application starts the auxiliary run stack
  • the communication messages between the boarding applications realize the instant communication between the first boarding application and the second boarding application.
  • FIG. 3 is a schematic flowchart of an instant messaging method between hosted applications according to some embodiments of this application. The method is applied to a second hosted application, and the second hosted application runs on the auxiliary running stack of the host application; The following steps:
  • Step S31 Receive and execute the call instruction sent by the first host application running on the default running stack and forwarded by the host application through the instant messaging API interface; wherein the host application includes multiple running stacks for running the host application;
  • Step S32 Return the execution result through the instant messaging API interface, so that the host application returns the execution result to the first host application.
  • step S31 In a preferred implementation of step S31,
  • the host application runs the second host application on the auxiliary running stack according to the call instruction sent by the first host application;
  • the host application starts the auxiliary run stack according to the call instruction; the auxiliary run stack is used to run the second host application on the auxiliary run stack while the default run stack runs the first host application.
  • the second host application marked by the call instruction is run on the auxiliary running stack.
  • the host application forwards the call instruction to the second host application through its instant messaging API interface; the second host application receives the call instruction through a unified default message receiving interface.
  • the unified default message receiving interface may be an instant messaging API interface of the second host application.
  • the second host application performs corresponding operations according to the data part in the call instruction structure.
  • the data part of the call instruction may be an instruction instructing the second host application to read the data in the data sharing area of the first host application, so as to realize the first host application and the second host application Data transfer between.
  • step S32 In a preferred implementation of step S32,
  • the second host application returns to the first host application according to the data part in the call instruction structure, that is, the operation result of executing the corresponding operation, through the unified default result return interface.
  • the host application receives the operation result returned by the second host application through a unified default message receiving interface; forwards the operation result to the first host application through the result return interface, and the first host application The application receives the operation result through a unified default message receiving interface.
  • the unified default message receiving interface is an instant messaging API interface
  • the result return interface is an instant messaging API interface
  • the operation result may be the operation result of the corresponding operation performed by the second host application according to the data part in the call instruction structure; or the feedback information returned after the second host application performs the corresponding operation ,
  • the feedback information is used to indicate that the operation of the first hosted application has been executed successfully, or the execution failed.
  • the host application stops the second host application after receiving the execution result returned by the second host application.
  • the first host application After the first host application receives the operation result, it issues a call end instruction, and the call end instruction is used to instruct to stop the corresponding second host application.
  • the call end instruction includes identification information of the second host application. After receiving the call end instruction, the host application stops the second host application.
  • the first host application sends a call instruction for the second host application, the host application starts the auxiliary running stack, and the second host application runs on the auxiliary running stack.
  • the second host application receives the call instruction forwarded by the host application to perform corresponding operations, and feeds back the execution result to the first host application through the host application, thereby realizing instant communication between the first host application and the second host application.
  • FIG. 4 shows a block diagram of an exemplary computer system/server 012 suitable for implementing embodiments of the present invention.
  • the computer system/server 012 shown in FIG. 4 is only an example, and should not bring any limitation to the function and application scope of the embodiment of the present invention.
  • the computer system/server 012 is represented in the form of a general-purpose computing device.
  • the components of the computer system/server 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
  • the computer system/server 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/server 012, including volatile and nonvolatile media, removable and non-removable media.
  • the system memory 028 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 030 and/or cache memory 032.
  • the computer system/server 012 may further include other removable/non-removable, volatile/nonvolatile computer system storage media.
  • the storage system 034 may be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 4, usually referred to as "hard drives").
  • a disk drive for reading and writing to removable non-volatile disks such as "floppy disks”
  • 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, and the program product has a set (for example, at least one) program modules, which are configured to perform the functions of the embodiments of the present invention.
  • 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 host applications, 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/server 012 can also communicate with one or more external devices 014 (such as a keyboard, pointing device, display 024, etc.).
  • the computer system/server 012 communicates with an external radar device, and can also communicate with one or Multiple devices that enable users to interact with the computer system/server 012, and/or communicate with any devices that enable the computer system/server 012 to communicate with one or more other computing devices (such as network cards, modems, etc.) Communication. This communication can be performed through an input/output (I/O) interface 022.
  • I/O input/output
  • the computer system/server 012 can also communicate with one or more networks (for example, 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 for example, 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/server 012 through the bus 018.
  • other hardware and/or software modules can be used in conjunction with the computer system/server 012, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems , Tape drives and data backup storage systems.
  • the processing unit 016 executes the functions and/or methods in the described embodiments of the present invention by running a program stored in the system memory 028.
  • 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 is executed by one or more computers, one or more computers can execute the above-mentioned embodiments of the present invention.
  • the method flow and/or device operation.
  • the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium.
  • the computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above.
  • 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 pass the Internet 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)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Provided is a real-time communication method between hosted applications. Said method comprises receiving, by means of a real-time communication API interface, a call instruction transmitted by a first hosted application being executed on a default execution stack, said call instruction comprising the identifier information of a second hosted application; executing, according to the call instruction, the second hosted application on an auxiliary execution stack; forwarding, by means of the real-time communication API interface, communication messages between the first hosted application and the second hosted application. The present invention enables the delivery of messages between hosted applications being executed on the execution stacks of a host application, and enables real-time exchange.

Description

一种寄宿应用间的即时通讯方法An instant communication method between boarding applications 【技术领域】【Technical Field】
本申请涉及互联网应用领域,尤其涉及一种寄宿应用间的即时通讯推荐方法。This application relates to the field of Internet applications, and in particular to an instant messaging recommendation method between boarding applications.
【背景技术】【Background technique】
小程序等寄宿应用是一种新的开放能力,开发者可以快速地开发一个小程序。小程序可以在微信、百度App等宿主应用内被便捷地获取和传播,同时具有出色的使用体验。小程序开发者可以在小程序内提供便捷、丰富的服务,如预定、商品购买、游戏等。因此,得到了越来越广泛的应用。Boarding applications such as small programs are a new open capability, and developers can quickly develop a small program. Mini programs can be easily acquired and disseminated in host applications such as WeChat and Baidu App, and have an excellent user experience. Mini program developers can provide convenient and rich services in the mini program, such as reservations, product purchases, games, etc. Therefore, it has been more and more widely used.
但是,目前的宿主应用中,同时只能运行一个寄宿应用,无法实现不同寄宿应用间的消息传递,实现即时交互。However, in the current host application, only one host application can be run at the same time, and it is impossible to realize message transfer between different host applications and realize instant interaction.
【发明内容】[Content of the invention]
本申请的多个方面提供一种寄宿应用间的即时通讯方法,用于解决寄宿应用之间无法实现即时交互的问题。Various aspects of the present application provide an instant communication method between boarding applications, which is used to solve the problem that real-time interaction between boarding applications cannot be realized.
本申请的一方面,提供一种寄宿应用间的即时通讯方法,应用于宿主应用,所述宿主应用包括多个用于运行寄宿应用的运行栈;包括通过即时通讯API接口接收运行在默认运行栈上的第一寄宿应用发送的调用指令,所述调用指令包括第二寄宿应用标识信息;根据所述调用指令,在辅助运行栈上运行所述第二寄宿应用;通过即时通讯API接口转发所述第一寄宿应用与所述第二寄宿应用间的通讯消息。One aspect of this application provides an instant messaging method between host applications, which is applied to a host application. The host application includes a plurality of runtime stacks for running the host application; including receiving and running on the default runtime stack through an instant messaging API interface The call instruction sent by the first host application on the above, the call instruction includes the identification information of the second host application; according to the call instruction, run the second host application on the auxiliary running stack; forward the call via the instant messaging API interface A communication message between the first host application and the second host application.
本申请的另一方面,提供一种寄宿应用间的即时通讯方法,应用于第一寄宿应用,所述第一寄宿应用运行于宿主应用的默认运行栈上;包括通过即时通讯API接口发送调用指令,所述调用指令包括第二寄宿应用标识信息;以便所述宿主应用根据所述调用指令在辅助运行栈上运行所述第二寄宿应用;其中,所述宿主应用包括多个用于运行寄宿应用的运行栈;通过即时通讯API接口接收由所述宿主应用转发的所述第二寄宿应用发送的执行所述调用指令后返回 的执行结果。In another aspect of the present application, there is provided an instant messaging method between host applications, which is applied to a first host application, and the first host application runs on the default runtime stack of the host application; including sending a call instruction through an instant messaging API interface , The call instruction includes the identification information of the second host application; so that the host application runs the second host application on the auxiliary execution stack according to the call instruction; wherein, the host application includes a plurality of host applications for running the host application The runtime stack; receiving the execution result returned after executing the call instruction sent by the second host application forwarded by the host application through the instant messaging API interface.
本申请的另一方面,提供一种寄宿应用间的即时通讯方法,应用于第二寄宿应用,所述第二寄宿应用运行于宿主应用的辅助运行栈上;包括通过即时通讯API接口接收并执行由宿主应用转发的运行于默认运行栈的所述第一寄宿应用发送的调用指令;其中,所述宿主应用包括多个用于运行寄宿应用的运行栈;通过即时通讯API接口返回执行结果,以便所述宿主应用将执行结果返回给所述第一寄宿应用。In another aspect of the present application, there is provided an instant messaging method between host applications, which is applied to a second host application, and the second host application runs on the auxiliary runtime stack of the host application; including receiving and executing via an instant messaging API interface The call instruction sent by the first host application running on the default run stack forwarded by the host application; wherein the host application includes multiple run stacks for running the host application; the execution result is returned through the instant messaging API interface so that The host application returns the execution result to the first host application.
本申请的另一方面,提供一种设备,所述设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现任一上述的方法。In another aspect of the present application, a device is provided. The device includes: one or more processors; a storage device for storing one or more programs. When the one or more programs are used by the one or more Execution by two processors, so that the one or more processors implement any of the above-mentioned methods.
本申请的另一方面,提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现任一上述的方法。In another aspect of the present application, there is provided a computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, any of the above methods is implemented.
由所述技术方案可知,本申请的上述实施例中,能够在实现寄宿应用间的即时通信。It can be seen from the technical solution that, in the above-mentioned embodiments of the present application, instant communication between host applications can be realized.
【附图说明】【Explanation of drawings】
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are of the present application. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1为本申请一些实施例提供的一种应用于宿主应用的寄宿应用间即时通讯方法的流程示意图;FIG. 1 is a schematic flowchart of an instant messaging method between host applications applied to a host application according to some embodiments of this application;
图2为本申请一些实施例提供的一种应用于第一寄宿应用的寄宿应用间即时通讯方法的流程示意图;FIG. 2 is a schematic flowchart of an instant messaging method between boarding applications applied to a first boarding application according to some embodiments of this application;
图3为本申请一些实施例提供的一种应用于第二寄宿应用的寄宿应用间即时通讯方法的流程示意图;FIG. 3 is a schematic flow chart of a method for instant messaging between boarding applications applied to a second boarding application according to some embodiments of this application;
图4为适于用来实现本发明的一些实施例的示例性计算机系统/服务器的框图。Figure 4 is a block diagram of an exemplary computer system/server suitable for implementing some embodiments of the present invention.
【具体实施方式】【detailed description】
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请的一些实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的全部其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in some embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described The embodiments are a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of this application.
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this article is only an association relationship describing associated objects, which means that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, and both A and B exist. There are three cases of B alone. In addition, the character "/" in this text generally indicates that the associated objects before and after are in an "or" relationship.
图1为本申请一些实施例提供的一种寄宿应用间的即时通讯方法的流程示意图,所述方法应用于宿主应用,所述宿主应用包括多个用于运行寄宿应用的运行栈;包括以下步骤:Figure 1 is a schematic flow chart of an instant messaging method between hosted applications according to some embodiments of the application. The method is applied to a host application, and the host application includes a plurality of runtime stacks for running the hosted application; including the following steps :
步骤S11、通过即时通讯API接口接收运行在默认运行栈上的第一寄宿应用发送的调用指令,所述调用指令包括第二寄宿应用标识信息;Step S11: Receive a call instruction sent by the first host application running on the default running stack through the instant messaging API interface, where the call instruction includes identification information of the second host application;
步骤S12、根据所述调用指令,在辅助运行栈上运行第二寄宿应用;Step S12, according to the call instruction, run the second host application on the auxiliary running stack;
步骤S13、通过即时通讯API接口转发第一寄宿应用与第二寄宿应用间的通讯。Step S13: Forward the communication between the first host application and the second host application through the instant messaging API interface.
在一些实施例中,宿主应用为安装在无线设备上的应用(APP)客户端,例如微信,或无线设备的操作系统;寄宿应用为依赖于宿主应用运行的应用,例如微信中的小程序等。所述宿主应用包括多个用于运行寄宿应用的运行栈,例如用于运行第一寄宿应用的默认运行栈,用于运行第二寄宿应用的辅助运行栈。In some embodiments, the host application is an application (APP) client installed on the wireless device, such as WeChat, or the operating system of the wireless device; the host application is an application that depends on the operation of the host application, such as an applet in WeChat, etc. . The host application includes a plurality of runtime stacks for running the hosted application, for example, a default runtime stack for running a first hosted application, and an auxiliary runtime stack for running a second hosted application.
其中,所述无线设备包括但不限于任何一种可与用户进行人机交互并能够实现无线通信功能的智能终端设备,如智能手机、平板电脑、笔记本电脑等,当然,还可以为其他具有类似功能的设备,本实施例对此不加以限制。所述智能终端设备可以采用任意操作系统,如Android操作系统、iOS操作系统、Windows操作系统等。Wherein, the wireless device includes, but is not limited to, any kind of smart terminal device that can interact with the user and realize the wireless communication function, such as smart phone, tablet computer, notebook computer, etc., of course, it can also be other similar Functional equipment is not limited in this embodiment. The smart terminal device can adopt any operating system, such as Android operating system, iOS operating system, Windows operating system, and so on.
在步骤S11的一种优选实现方式中,In a preferred implementation of step S11,
所述宿主应用通过即时通讯API接口接收运行在默认运行栈上的第一寄宿 应用发送的调用指令,所述调用指令包括第二寄宿应用标识信息。The host application receives the call instruction sent by the first host application running on the default running stack through the instant messaging API interface, and the call instruction includes the second host application identification information.
优选地,第一寄宿应用运行于寄宿应用的第一运行栈上;所述第一运行栈为宿主应用的默认运行栈。Preferably, the first host application runs on the first run stack of the host application; the first run stack is the default run stack of the host application.
优选地,所述宿主应用响应于用户对第一寄宿应用的触发,启动第一运行栈,在所述第一运行栈上运行第一寄宿应用。Preferably, the host application starts the first running stack in response to the user's triggering of the first hosting application, and runs the first hosting application on the first running stack.
优选地,所述宿主应用接收到运行在运行栈上的第一寄宿应用发出的调用指令,所述调用指令用于指示调用第二寄宿应用。Preferably, the host application receives a call instruction issued by the first host application running on the execution stack, and the call instruction is used to instruct to call the second host application.
优选地,所述调用指令结构如下:指令头、分隔符、数据;其中,Preferably, the call instruction structure is as follows: instruction header, separator, data; wherein,
所述指令头部分用于标记所述第二寄宿应用,以便宿主应用运行所述第二寄宿应用;优选地,所述指令头为所述第二寄宿应用的AppID,不同寄宿应用通过其AppID进行标识;The command header part is used to mark the second host application so that the host application can run the second host application; preferably, the command header is the AppID of the second host application, and different host applications use their AppID to perform Logo
所述数据部分用于指示所述第二寄宿应用执行对应操作。The data part is used to instruct the second hosting application to perform a corresponding operation.
优选地,所述第一寄宿应用通过其即时通讯API接口发送调用指令给第二寄宿应用;所述宿主应用通过其即时通讯API接口接收调用指令并进行处理。对于第一寄宿应用,只需通过其即时通讯API接口发出调用指令即可,无需了解所述调用指令的具体接收、转发流程。Preferably, the first host application sends a call instruction to the second host application through its instant messaging API interface; the host application receives and processes the call instruction through its instant messaging API interface. For the first boarding application, it is only necessary to issue a call instruction through its instant messaging API interface, and there is no need to understand the specific receiving and forwarding process of the call instruction.
在步骤S12的一种优选实现方式中,In a preferred implementation of step S12,
所述宿主应用根据所述调用指令,在辅助运行栈上运行第二寄宿应用;The host application runs the second host application on the auxiliary running stack according to the call instruction;
所述宿主应用根据所述调用指令,启动辅助运行栈;所述辅助运行栈用于在默认运行栈运行第一寄宿应用的同时,在所述辅助运行栈运行第二寄宿应用。优选地,所述宿主应用所能启动的辅助运行栈为一个或多个,以便在所述一个或多个辅助运行栈分别运行不同的寄宿应用;即可以实现多个寄宿应用之间的即时通讯。The host application starts the auxiliary run stack according to the call instruction; the auxiliary run stack is used to run the second host application on the auxiliary run stack while the default run stack runs the first host application. Preferably, there are one or more auxiliary running stacks that can be started by the host application, so that different hosting applications can be run on the one or more auxiliary running stacks; that is, instant communication between multiple hosting applications can be realized .
优选地,在所述辅助运行栈启动之后,将所述调用指令标记的第二寄宿应用运行在所述辅助运行栈上。Preferably, after the auxiliary running stack is started, the second host application marked by the call instruction is run on the auxiliary running stack.
优选地,所述宿主应用通过所述即时通讯API接口接收第一寄宿应用发送的消息,通过解析所述消息,判断其具体类型;若所述消息的结构包括指令头、分隔符、数据,则表明其为调用指令;若所述消息非调用指令,则按正常流程进行处理。Preferably, the host application receives the message sent by the first host application through the instant messaging API interface, and determines the specific type of the message by analyzing the message; if the structure of the message includes a command header, a separator, and data, then Indicates that it is a call instruction; if the message is not a call instruction, it will be processed according to the normal flow.
在本申请的一个优选实施例中,宿主应用所能启动的辅助运行栈为一个或多个,在对某一寄宿应用的调用结束后,并不停止所述寄宿应用,而是在其对应的辅助运行栈上继续运行所述寄宿应用;以便能够随时调用所述寄宿应用而无需重新运行。In a preferred embodiment of the present application, there are one or more auxiliary runtime stacks that can be started by the host application. After the call to a host application ends, the host application is not stopped, but in its corresponding The boarding application continues to run on the auxiliary running stack; so that the boarding application can be called at any time without re-running.
优选地,所述宿主应用接收到所述调用指令后,根据所述调用指令中包括的AppID,检查是否在辅助运行栈上运行有对应的第二寄宿应用;Preferably, after the host application receives the call instruction, according to the AppID included in the call instruction, checks whether there is a corresponding second host application running on the auxiliary running stack;
若已在辅助运行栈中运行对应的第二寄宿应用,则可以将所述调用指令转发给所述第二寄宿应用,以便所述第二寄宿应用执行所述调用指令;If the corresponding second host application is already running in the auxiliary running stack, the call instruction may be forwarded to the second host application, so that the second host application executes the call instruction;
若未在辅助运行栈上运行对应的第二寄宿应用,则启动辅助运行栈,在所述辅助运行栈中运行第二寄宿应用,将所述调用指令转发给所述第二寄宿应用,以便所述第二寄宿应用执行所述调用指令。If the corresponding second host application is not running on the auxiliary run stack, the auxiliary run stack is started, the second host application is run in the auxiliary run stack, and the call instruction is forwarded to the second host application so that all The second host application executes the call instruction.
在本申请的一个优选实施例中,调用结束后,所述宿主应用停止寄宿应用,清空而非销毁辅助运行栈,可以在所述辅助运行栈上迅速运行所需的寄宿应用。In a preferred embodiment of the present application, after the call ends, the host application stops the hosting application, and the auxiliary running stack is cleared instead of destroying, so that the required hosting application can be quickly run on the auxiliary running stack.
优选地,若未启动第二寄宿应用,判断是否存在已启动的且清空的辅助运行栈;如果存在,则直接在所述辅助运行栈上运行第二寄宿应用;如果不存在,则启动辅助运行栈,在所述辅助运行栈上运行第二寄宿应用。Preferably, if the second hosted application is not started, it is determined whether there is an activated and emptied auxiliary running stack; if it exists, the second hosted application is directly run on the auxiliary running stack; if it does not exist, the auxiliary running is started Stack, running the second hosting application on the auxiliary running stack.
优选地,所述宿主应用在后台调用所述第二寄宿应用,即所述第一寄宿应用的界面不变。Preferably, the host application calls the second host application in the background, that is, the interface of the first host application remains unchanged.
在步骤S13的一种优选实现方式中,In a preferred implementation of step S13,
所述宿主应用通过即时通讯API接口将所述调用指令转发给所述第二寄宿应用,以便所述第二寄宿应用执行所述调用指令。The host application forwards the call instruction to the second host application through the instant messaging API interface, so that the second host application executes the call instruction.
优选地,所述宿主应用将所述调用指令通过其即时通讯API接口转发给所述第二寄宿应用;以便所述第二寄宿应用通过统一默认的消息接收接口接收所述调用指令。Preferably, the host application forwards the call instruction to the second host application through its instant messaging API interface; so that the second host application receives the call instruction through a unified default message receiving interface.
优选地,所述统一默认的消息接收接口可以为所述第二寄宿应用的即时通讯API接口。Preferably, the unified default message receiving interface may be an instant messaging API interface of the second host application.
优选地,所述第二寄宿应用根据所述调用指令结构中的数据部分,执行对应操作,并通过统一默认的结果返回接口将操作结果返回给所述第一寄宿应用。Preferably, the second host application executes corresponding operations according to the data part in the call instruction structure, and returns the operation result to the first host application through a unified default result return interface.
优选地,所述数据部分可以是指示所述第二寄宿应用读取所述第一寄宿应 用的数据共享区中数据的指令,实现所述第一寄宿应用与所述第二寄宿应用之间的数据传递。Preferably, the data part may be an instruction instructing the second host application to read the data in the data sharing area of the first host application, so as to realize the communication between the first host application and the second host application. Data transfer.
所述宿主应用通过即时通讯API接口接收所述第二寄宿应用执行所述调用指令后返回的执行结果,将所述执行结果返回给所述第一寄宿应用。The host application receives the execution result returned by the second host application after executing the call instruction through the instant messaging API interface, and returns the execution result to the first host application.
优选地,所述宿主应用通过统一默认的消息接收接口接收所述第二寄宿应用返回的操作结果;将所述操作结果通过结果返回接口转发给所述第一寄宿应用,由所述第一寄宿应用通过统一默认的消息接收接口接收所述操作结果。Preferably, the host application receives the operation result returned by the second host application through a unified default message receiving interface; forwards the operation result to the first host application through the result return interface, and the first host application The application receives the operation result through a unified default message receiving interface.
优选地,所述操作结果可以是所述第二寄宿应用根据所述调用指令结构中的数据部分,执行对应操作的操作结果;也可以是所述第二寄宿应用执行对应操作后返回的反馈信息,所述反馈信息用于指示所述第一寄宿应用操作已执行成功,或,执行失败。Preferably, the operation result may be the operation result of the corresponding operation performed by the second host application according to the data part in the call instruction structure; or the feedback information returned after the second host application performs the corresponding operation , The feedback information is used to indicate that the operation of the first hosted application has been executed successfully, or the execution failed.
优选地,所述统一默认的消息接收接口为即时通讯API接口;所述结果返回接口为即时通讯API接口。Preferably, the unified default message receiving interface is an instant messaging API interface; the result return interface is an instant messaging API interface.
优选地,所述方法还包括:Preferably, the method further includes:
优选地,所述宿主应用接收到所述第二寄宿应用返回的执行结果后,停止所述第二寄宿应用。Preferably, after receiving the execution result returned by the second hosting application, the host application stops the second hosting application.
优选地,所述第一寄宿应用接收到所述操作结果后,发出调用结束指令,所述调用结束指令用于指示停止对应的第二寄宿应用。所述调用结束指令包括第二寄宿应用标识信息。所述宿主应用接收到所述调用结束指令后,停止所述第二寄宿应用。Preferably, after the first host application receives the operation result, it issues a call end instruction, and the call end instruction is used to instruct to stop the corresponding second host application. The call end instruction includes identification information of the second host application. After receiving the call end instruction, the host application stops the second host application.
优选地,所述第二寄宿应用标识信息为所述第二寄宿应用的AppID。Preferably, the second host application identification information is the AppID of the second host application.
优选地,所述宿主应用停止所述第二寄宿应用后,清空所述辅助运行栈。Preferably, after the host application stops the second host application, the auxiliary running stack is cleared.
在上述过程中,运行于默认运行栈上的所述第一寄宿应用不受影响。当所述宿主应用再次接收到所述第一寄宿应用发送的调用指令,则再次调用所述辅助运行栈,重复上述操作。In the above process, the first host application running on the default runtime stack is not affected. When the host application again receives the call instruction sent by the first host application, the auxiliary running stack is called again, and the above operation is repeated.
在本实施例中,宿主应用启动辅助运行栈,在所述辅助运行栈上运行第二寄宿应用,并转发第一寄宿应用与第二寄宿应用之间的通讯消息,实现了寄宿应用间的即时通讯。In this embodiment, the host application starts the auxiliary runtime stack, runs the second host application on the auxiliary runtime stack, and forwards the communication message between the first host application and the second host application, thus realizing the real-time communication between the host applications communication.
图2为本申请一些实施例提供的一种寄宿应用间的即时通讯方法的流程示 意图,所述方法应用于第一寄宿应用,所述第一寄宿应用运行于宿主应用的默认运行栈上;包括以下步骤:2 is a schematic flow chart of an instant messaging method between hosted applications according to some embodiments of this application. The method is applied to a first hosted application, and the first hosted application runs on the default running stack of the host application; including The following steps:
步骤S21、通过即时通讯API接口发送调用指令,所述调用指令包括第二寄宿应用标识信息;以便所述宿主应用根据所述调用指令在辅助运行栈上运行所述第二寄宿应用;其中,所述宿主应用包括多个用于运行寄宿应用的运行栈;Step S21: Send a call instruction through the instant messaging API interface, where the call instruction includes the identification information of the second host application; so that the host application runs the second host application on the auxiliary running stack according to the call instruction; wherein, The host application includes multiple running stacks for running the host application;
步骤S22、通过即时通讯API接口接收由所述宿主应用转发的所述第二寄宿应用发送的执行所述调用指令后返回的执行结果。Step S22: Receive the execution result returned after executing the call instruction sent by the second host application forwarded by the host application through the instant messaging API interface.
在步骤S21的一种优选实现方式中,In a preferred implementation of step S21,
优选地,所述宿主应用响应于用户对第一寄宿应用的触发,启动第一运行栈,在所述第一运行栈上运行第一寄宿应用。所述第一运行栈为宿主应用的默认运行栈。Preferably, the host application starts the first running stack in response to the user's triggering of the first hosting application, and runs the first hosting application on the first running stack. The first running stack is the default running stack of the host application.
所述第一寄宿应用通过即时通讯API接口发送调用指令,所述调用指令用于指示调用第二寄宿应用。The first host application sends a call instruction through the instant messaging API interface, and the call instruction is used to instruct to call the second host application.
优选地,所述调用指令结构如下:指令头、分隔符、数据;其中,Preferably, the call instruction structure is as follows: instruction header, separator, data; wherein,
所述指令头部分用于标记所述第二寄宿应用,以便宿主应用运行所述第二寄宿应用;优选地,所述指令头为所述第二寄宿应用的AppID,不同寄宿应用通过其AppID进行标识;The command header part is used to mark the second host application so that the host application can run the second host application; preferably, the command header is the AppID of the second host application, and different host applications use their AppID to perform Logo
所述数据部分用于指示所述第二寄宿应用执行对应操作。The data part is used to instruct the second hosting application to perform a corresponding operation.
优选地,所述第一寄宿应用通过其即时通讯API接口发送调用指令给第二寄宿应用;所述宿主应用通过其即时通讯API接口接收调用指令并进行处理。对于第一寄宿应用,只需通过其即时通讯API接口发出调用指令即可,无需了解所述调用指令的具体接收、转发流程。Preferably, the first host application sends a call instruction to the second host application through its instant messaging API interface; the host application receives and processes the call instruction through its instant messaging API interface. For the first boarding application, it is only necessary to issue a call instruction through its instant messaging API interface, and there is no need to understand the specific receiving and forwarding process of the call instruction.
所述宿主应用根据所述调用指令,在辅助运行栈上运行第二寄宿应用;所述宿主应用将所述调用指令转发给所述第二寄宿应用,以便所述第二寄宿应用执行所述调用指令。所述宿主应用接收所述第二寄宿应用执行所述调用指令后返回的执行结果,将所述执行结果返回给所述第一寄宿应用。The host application runs a second host application on the auxiliary execution stack according to the call instruction; the host application forwards the call instruction to the second host application so that the second host application executes the call instruction. The host application receives the execution result returned after the second host application executes the call instruction, and returns the execution result to the first host application.
具体步骤可参照前述实施例的对应部分,在此不再赘述。For specific steps, please refer to the corresponding part of the foregoing embodiment, which will not be repeated here.
在步骤S22的一种优选实现方式中,In a preferred implementation of step S22,
所述第一寄宿应用通过即时通讯API接口接收由所述宿主应用转发的所述 第二寄宿应用发送的执行所述调用指令后返回的执行结果。The first host application receives the execution result returned after the execution of the call instruction sent by the second host application forwarded by the host application through an instant messaging API interface.
优选地,所述第一寄宿应用通过统一默认的消息接收接口接收所述操作结果。Preferably, the first host application receives the operation result through a unified default message receiving interface.
优选地,所述操作结果可以是所述第二寄宿应用根据所述调用指令结构中的数据部分,执行对应操作的操作结果;也可以是所述第二寄宿应用执行对应操作后返回的反馈信息,所述反馈信息用于指示所述第一寄宿应用操作已执行成功,或,执行失败。Preferably, the operation result may be the operation result of the corresponding operation performed by the second host application according to the data part in the call instruction structure; or the feedback information returned after the second host application performs the corresponding operation , The feedback information is used to indicate that the operation of the first hosted application has been executed successfully, or the execution failed.
优选地,所述统一默认的消息接收接口为即时通讯API接口;所述结果返回接口为即时通讯API接口。Preferably, the unified default message receiving interface is an instant messaging API interface; the result return interface is an instant messaging API interface.
优选地,所述第一寄宿应用接收到所述操作结果后,发出调用结束指令,所述调用结束指令用于指示停止对应的第二寄宿应用。所述调用结束指令包括第二寄宿应用标识信息。所述宿主应用接收到所述调用结束指令后,停止所述第二寄宿应用。Preferably, after the first host application receives the operation result, it issues a call end instruction, and the call end instruction is used to instruct to stop the corresponding second host application. The call end instruction includes identification information of the second host application. After receiving the call end instruction, the host application stops the second host application.
在本实施例中,第一寄宿应用发送针对第二寄宿应用的调用指令,由宿主应用启动辅助运行栈,在所述辅助运行栈上运行第二寄宿应用,并转发第一寄宿应用与第二寄宿应用之间的通讯消息,实现了第一寄宿应用与第二寄宿应用间的即时通讯。In this embodiment, the first host application sends a call instruction for the second host application, the host application starts the auxiliary run stack, runs the second host application on the auxiliary run stack, and forwards the first host application and the second host application. The communication messages between the boarding applications realize the instant communication between the first boarding application and the second boarding application.
图3为本申请一些实施例提供的一种寄宿应用间的即时通讯方法的流程示意图,所述方法应用于第二寄宿应用,所述第二寄宿应用运行于宿主应用的辅助运行栈上;包括以下步骤:FIG. 3 is a schematic flowchart of an instant messaging method between hosted applications according to some embodiments of this application. The method is applied to a second hosted application, and the second hosted application runs on the auxiliary running stack of the host application; The following steps:
步骤S31、通过即时通讯API接口接收并执行由宿主应用转发的运行于默认运行栈的第一寄宿应用发送的调用指令;其中,所述宿主应用包括多个用于运行寄宿应用的运行栈;Step S31: Receive and execute the call instruction sent by the first host application running on the default running stack and forwarded by the host application through the instant messaging API interface; wherein the host application includes multiple running stacks for running the host application;
步骤S32、通过即时通讯API接口返回执行结果,以便所述宿主应用将执行结果返回给所述第一寄宿应用。Step S32: Return the execution result through the instant messaging API interface, so that the host application returns the execution result to the first host application.
在步骤S31的一种优选实现方式中,In a preferred implementation of step S31,
所述宿主应用根据所述第一寄宿应用发送的调用指令,在辅助运行栈上运行第二寄宿应用;The host application runs the second host application on the auxiliary running stack according to the call instruction sent by the first host application;
优选地,所述宿主应用根据所述调用指令,启动辅助运行栈;所述辅助运 行栈用于在默认运行栈运行第一寄宿应用的同时,在所述辅助运行栈运行第二寄宿应用。优选地,所述宿主应用所能启动的辅助运行栈为一个或多个,以便在所述一个或多个辅助运行栈分别运行不同的寄宿应用;即可以实现多个寄宿应用之间的即时通讯。Preferably, the host application starts the auxiliary run stack according to the call instruction; the auxiliary run stack is used to run the second host application on the auxiliary run stack while the default run stack runs the first host application. Preferably, there are one or more auxiliary running stacks that can be started by the host application, so that different hosting applications can be run on the one or more auxiliary running stacks; that is, instant communication between multiple hosting applications can be realized .
优选地,在所述辅助运行栈启动之后,将所述调用指令标记的第二寄宿应用运行在所述辅助运行栈上。Preferably, after the auxiliary running stack is started, the second host application marked by the call instruction is run on the auxiliary running stack.
优选地,所述宿主应用将所述调用指令通过其即时通讯API接口转发给所述第二寄宿应用;所述第二寄宿应用通过统一默认的消息接收接口接收所述调用指令。Preferably, the host application forwards the call instruction to the second host application through its instant messaging API interface; the second host application receives the call instruction through a unified default message receiving interface.
优选地,所述统一默认的消息接收接口可以为所述第二寄宿应用的即时通讯API接口。Preferably, the unified default message receiving interface may be an instant messaging API interface of the second host application.
优选地,所述第二寄宿应用根据所述调用指令结构中的数据部分,执行对应操作。Preferably, the second host application performs corresponding operations according to the data part in the call instruction structure.
优选地,所述调用指令的数据部分可以是指示所述第二寄宿应用读取所述第一寄宿应用的数据共享区中数据的指令,实现所述第一寄宿应用与所述第二寄宿应用之间的数据传递。Preferably, the data part of the call instruction may be an instruction instructing the second host application to read the data in the data sharing area of the first host application, so as to realize the first host application and the second host application Data transfer between.
在步骤S32的一种优选实现方式中,In a preferred implementation of step S32,
所述第二寄宿应用通过统一默认的结果返回接口将根据所述调用指令结构中的数据部分,即执行对应操作的操作结果返回给所述第一寄宿应用。The second host application returns to the first host application according to the data part in the call instruction structure, that is, the operation result of executing the corresponding operation, through the unified default result return interface.
优选地,所述宿主应用通过统一默认的消息接收接口接收所述第二寄宿应用返回的操作结果;将所述操作结果通过结果返回接口转发给所述第一寄宿应用,由所述第一寄宿应用通过统一默认的消息接收接口接收所述操作结果。Preferably, the host application receives the operation result returned by the second host application through a unified default message receiving interface; forwards the operation result to the first host application through the result return interface, and the first host application The application receives the operation result through a unified default message receiving interface.
优选地,所述统一默认的消息接收接口为即时通讯API接口;所述结果返回接口为即时通讯API接口。Preferably, the unified default message receiving interface is an instant messaging API interface; the result return interface is an instant messaging API interface.
优选地,所述操作结果可以是所述第二寄宿应用根据所述调用指令结构中的数据部分,执行对应操作的操作结果;也可以是所述第二寄宿应用执行对应操作后返回的反馈信息,所述反馈信息用于指示所述第一寄宿应用操作已执行成功,或,执行失败。Preferably, the operation result may be the operation result of the corresponding operation performed by the second host application according to the data part in the call instruction structure; or the feedback information returned after the second host application performs the corresponding operation , The feedback information is used to indicate that the operation of the first hosted application has been executed successfully, or the execution failed.
优选地,所述宿主应用接收到所述第二寄宿应用返回的执行结果后,停止 所述第二寄宿应用。Preferably, the host application stops the second host application after receiving the execution result returned by the second host application.
优选地,所述第一寄宿应用接收到所述操作结果后,发出调用结束指令,所述调用结束指令用于指示停止对应的第二寄宿应用。所述调用结束指令包括第二寄宿应用标识信息。所述宿主应用接收到所述调用结束指令后,停止所述第二寄宿应用。Preferably, after the first host application receives the operation result, it issues a call end instruction, and the call end instruction is used to instruct to stop the corresponding second host application. The call end instruction includes identification information of the second host application. After receiving the call end instruction, the host application stops the second host application.
在本实施例中,第一寄宿应用发送针对第二寄宿应用的调用指令,由宿主应用启动辅助运行栈,在所述辅助运行栈上运行第二寄宿应用。第二寄宿应用接收宿主应用转发的调用指令进行对应操作,并将执行结果通过宿主应用反馈给第一寄宿应用,实现了第一寄宿应用与第二寄宿应用间的即时通讯。In this embodiment, the first host application sends a call instruction for the second host application, the host application starts the auxiliary running stack, and the second host application runs on the auxiliary running stack. The second host application receives the call instruction forwarded by the host application to perform corresponding operations, and feeds back the execution result to the first host application through the host application, thereby realizing instant communication between the first host application and the second host application.
图4示出了适于用来实现本发明实施方式的示例性计算机系统/服务器012的框图。图4显示的计算机系统/服务器012仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Figure 4 shows a block diagram of an exemplary computer system/server 012 suitable for implementing embodiments of the present invention. The computer system/server 012 shown in FIG. 4 is only an example, and should not bring any limitation to the function and application scope of the embodiment of the present invention.
如图4所示,计算机系统/服务器012以通用计算设备的形式表现。计算机系统/服务器012的组件可以包括但不限于:一个或者多个处理器或者处理单元016,系统存储器028,连接不同系统组件(包括系统存储器028和处理单元016)的总线018。As shown in Figure 4, the computer system/server 012 is represented in the form of a general-purpose computing device. The components of the computer system/server 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访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。The computer system/server 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/server 012, including volatile and nonvolatile media, removable and non-removable media.
系统存储器028可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)030和/或高速缓存存储器032。计算机系统/服务器012可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统034可以用于读写不可移动的、非易失性磁介质(图4未显示,通常称为“硬盘驱动器”)。尽管图4中未示出,可以提供用于对 可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线018相连。存储器028可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。The system memory 028 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 030 and/or cache memory 032. The computer system/server 012 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. For example only, the storage system 034 may be used to read and write non-removable, non-volatile magnetic media (not shown in FIG. 4, usually referred to as "hard drives"). Although not shown in FIG. 4, a disk drive for reading and writing to removable non-volatile disks (such as "floppy disks") 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, and the program product has a set (for example, at least one) program modules, which are configured to perform the functions of the embodiments of the present invention.
具有一组(至少一个)程序模块042的程序/实用工具040,可以存储在例如存储器028中,这样的程序模块042包括——但不限于——操作系统、一个或者多个寄宿应用、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块042通常执行本发明所描述的实施例中的功能和/或方法。A program/utility tool 040 with a set of (at least one) program module 042 can be stored in, for example, the memory 028. Such program module 042 includes, but is not limited to, an operating system, one or more host applications, 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)和/或公共网络,例如因特网)通信。如图4所示,网络适配器020通过总线018与计算机系统/服务器012的其它模块通信。应当明白,尽管图4中未示出,可以结合计算机系统/服务器012使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The computer system/server 012 can also communicate with one or more external devices 014 (such as a keyboard, pointing device, display 024, etc.). In the present invention, the computer system/server 012 communicates with an external radar device, and can also communicate with one or Multiple devices that enable users to interact with the computer system/server 012, and/or communicate with any devices that enable the computer system/server 012 to communicate with one or more other computing devices (such as network cards, modems, etc.) Communication. This communication can be performed through an input/output (I/O) interface 022. In addition, the computer system/server 012 can also communicate with one or more networks (for example, 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 FIG. 4, the network adapter 020 communicates with other modules of the computer system/server 012 through the bus 018. It should be understood that although not shown in FIG. 4, other hardware and/or software modules can be used in conjunction with the computer system/server 012, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems , Tape drives and data backup storage systems.
处理单元016通过运行存储在系统存储器028中的程序,从而执行本发明所描述的实施例中的功能和/或方法。The processing unit 016 executes the functions and/or methods in the described embodiments of the present invention by running a program stored in the system memory 028.
上述的计算机程序可以设置于计算机存储介质中,即该计算机存储介质被编码有计算机程序,该程序在被一个或多个计算机执行时,使得一个或多个计算机执行本发明上述实施例中所示的方法流程和/或装置操作。The above-mentioned computer program may be set in a computer storage medium, that is, the computer storage medium is encoded with a computer program. When the program is executed by one or more computers, one or more computers can execute the above-mentioned embodiments of the present invention. The method flow and/or device operation.
随着时间、技术的发展,介质含义越来越广泛,计算机程序的传播途径不再受限于有形介质,还可以直接从网络下载等。可以采用一个或多个计算机可 读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(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 can be used. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。The computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and computer-readable program code is carried therein. This propagated data signal can take many forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium. The computer-readable medium may send, propagate or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、RF等等,或者上述的任意合适的组合。The program code contained on the computer-readable medium can be transmitted by any suitable medium, including, but not limited to, wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言-诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言-诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。The computer program code used to perform the operations of the present invention can be written in one or more programming languages or a combination thereof. The programming languages include object-oriented programming languages-such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language. The program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network-including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass the Internet connection).
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其 中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (12)

  1. 一种寄宿应用间的即时通讯方法,应用于宿主应用,所述宿主应用包括多个用于运行寄宿应用的运行栈;其特征在于,包括:A method for instant messaging between boarding applications, applied to a host application, the host application including a plurality of runtime stacks for running the boarding application; characterized in that it includes:
    通过即时通讯API接口接收运行在默认运行栈上的第一寄宿应用发送的调用指令,所述调用指令包括第二寄宿应用标识信息;Receiving, through an instant messaging API interface, a call instruction sent by the first host application running on the default runtime stack, where the call instruction includes identification information of the second host application;
    根据所述调用指令,在辅助运行栈上运行所述第二寄宿应用;According to the call instruction, run the second host application on the auxiliary run stack;
    通过即时通讯API接口转发所述第一寄宿应用与所述第二寄宿应用间的通讯消息。Forward the communication message between the first host application and the second host application through an instant messaging API interface.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述调用指令,在辅助运行栈上运行第二寄宿应用包括:The method according to claim 1, wherein the running a second host application on an auxiliary running stack according to the calling instruction comprises:
    根据所述调用指令,启动辅助运行栈,在所述辅助运行栈上运行所述第二寄宿应用。According to the call instruction, an auxiliary running stack is started, and the second host application is run on the auxiliary running stack.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    根据所述第二寄宿应用标识信息,检查是否在辅助运行栈上运行有对应的第二寄宿应用;若未在辅助运行栈上运行对应的第二寄宿应用,则启动辅助运行栈,在所述辅助运行栈上运行所述第二寄宿应用。According to the identification information of the second host application, it is checked whether there is a corresponding second host application running on the auxiliary running stack; if the corresponding second host application is not running on the auxiliary running stack, the auxiliary running stack is started. The second host application is run on the auxiliary run stack.
  4. 根据权利要求1所述的方法,其特征在于,所述通过即时通讯API接口转发所述第一寄宿应用与所述第二寄宿应用间的通讯消息包括:The method according to claim 1, wherein the forwarding of the communication message between the first host application and the second host application through an instant messaging API interface comprises:
    通过即时通讯API接口将所述调用指令转发给所述第二寄宿应用,以便所述第二寄宿应用执行所述调用指令;Forward the call instruction to the second host application through an instant messaging API interface, so that the second host application executes the call instruction;
    通过即时通讯API接口接收所述第二寄宿应用执行所述调用指令后返回的执行结果;将所述执行结果返回给所述第一寄宿应用。Receive the execution result returned by the second host application after executing the call instruction through the instant messaging API interface; return the execution result to the first host application.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, wherein the method further comprises:
    通过即时通讯API接口接收所述第二寄宿应用执行所述调用指令后返回的执行结果,或,接收所述第一寄宿应用发送的调用结束指令;退出所述第二寄宿应用。Receive the execution result returned after the second host application executes the call instruction through the instant messaging API interface, or receive the call end instruction sent by the first host application; exit the second host application.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, wherein the method further comprises:
    清空所述辅助运行栈。Clear the auxiliary running stack.
  7. 一种寄宿应用间的即时通讯方法,应用于第一寄宿应用,所述第一寄宿应 用运行于宿主应用的默认运行栈上;其特征在于,包括:An instant communication method between host applications, applied to a first host application, the first host application running on the default running stack of the host application; characterized in that it includes:
    通过即时通讯API接口发送调用指令,所述调用指令包括第二寄宿应用标识信息;以便所述宿主应用根据所述调用指令在辅助运行栈上运行所述第二寄宿应用;其中,所述宿主应用包括多个用于运行寄宿应用的运行栈;Send a call instruction through the instant messaging API interface, the call instruction includes the identification information of the second host application; so that the host application runs the second host application on the auxiliary execution stack according to the call instruction; wherein, the host application Including multiple runtime stacks for running boarding applications;
    通过即时通讯API接口接收由所述宿主应用转发的所述第二寄宿应用发送的执行所述调用指令后返回的执行结果。Receive the execution result returned after executing the call instruction sent by the second host application forwarded by the host application through an instant messaging API interface.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    通过即时通讯API接口发送调用结束指令,以便所述宿主应用停止所述第二寄宿应用,清空所述辅助运行栈。Send a call end instruction through the instant messaging API interface, so that the host application stops the second host application and clears the auxiliary running stack.
  9. 一种寄宿应用间的即时通讯方法,应用于第二寄宿应用,所述第二寄宿应用运行于宿主应用的辅助运行栈上;其特征在于,包括:An instant messaging method between boarding applications, applied to a second boarding application, the second boarding application running on the auxiliary running stack of the host application; characterized by comprising:
    通过即时通讯API接口接收并执行由宿主应用转发的运行于默认运行栈的第一寄宿应用发送的调用指令;其中,所述宿主应用包括多个用于运行寄宿应用的运行栈;Receiving and executing the call instruction sent by the first host application running on the default running stack and forwarded by the host application through the instant messaging API interface; wherein the host application includes multiple running stacks for running the host application;
    通过即时通讯API接口返回执行结果,以便所述宿主应用将所述执行结果返回给所述第一寄宿应用。The execution result is returned through the instant messaging API interface, so that the host application returns the execution result to the first host application.
  10. 根据权利要求9所述的方法,其特征在于,The method according to claim 9, wherein:
    所述第二寄宿应用由所述宿主应用根据第一寄宿应用发送的调用指令在辅助运行栈上运行。The second host application is run on the auxiliary running stack by the host application according to the call instruction sent by the first host application.
  11. 一种设备,其特征在于,所述设备包括:A device, characterized in that the device includes:
    一个或多个处理器;One or more processors;
    存储装置,用于存储一个或多个程序,Storage device for storing one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-10中任一所述的方法。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-10.
  12. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-10中任一所述的方法。A computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the method according to any one of claims 1-10.
PCT/CN2020/077897 2019-03-07 2020-03-05 Real-time communication method between hosted applications WO2020177731A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910172844.7 2019-03-07
CN201910172844.7A CN109933444A (en) 2019-03-07 2019-03-07 A kind of instant communication method between applying of lodging

Publications (1)

Publication Number Publication Date
WO2020177731A1 true WO2020177731A1 (en) 2020-09-10

Family

ID=66986634

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/077897 WO2020177731A1 (en) 2019-03-07 2020-03-05 Real-time communication method between hosted applications

Country Status (2)

Country Link
CN (1) CN109933444A (en)
WO (1) WO2020177731A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933444A (en) * 2019-03-07 2019-06-25 上海连尚网络科技有限公司 A kind of instant communication method between applying of lodging
CN112565466B (en) * 2021-02-20 2021-04-27 支付宝(杭州)信息技术有限公司 Method and device for cross-application association of users

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170337094A1 (en) * 2016-04-08 2017-11-23 Efilecabinet, Inc. Systems, methods, and devices for integrated program interfaces and operation
CN108683700A (en) * 2018-04-03 2018-10-19 四川新网银行股份有限公司 A kind of financial ability output mode based on wechat small routine and finance opening platform
CN109933444A (en) * 2019-03-07 2019-06-25 上海连尚网络科技有限公司 A kind of instant communication method between applying of lodging
CN110083465A (en) * 2019-04-26 2019-08-02 上海连尚网络科技有限公司 A kind of data transferring method between applying of lodging

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8856534B2 (en) * 2010-05-21 2014-10-07 Intel Corporation Method and apparatus for secure scan of data storage device from remote server
CN106598655B (en) * 2016-12-05 2020-02-14 腾讯科技(深圳)有限公司 Application page processing method and device
CN108196930B (en) * 2018-01-18 2020-04-03 腾讯科技(深圳)有限公司 Application program processing method and device, storage medium and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170337094A1 (en) * 2016-04-08 2017-11-23 Efilecabinet, Inc. Systems, methods, and devices for integrated program interfaces and operation
CN108683700A (en) * 2018-04-03 2018-10-19 四川新网银行股份有限公司 A kind of financial ability output mode based on wechat small routine and finance opening platform
CN109933444A (en) * 2019-03-07 2019-06-25 上海连尚网络科技有限公司 A kind of instant communication method between applying of lodging
CN110083465A (en) * 2019-04-26 2019-08-02 上海连尚网络科技有限公司 A kind of data transferring method between applying of lodging

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WECHAT TEAM: "wx.navigateToMiniProgram(Object object)", WX.NAVIGATETOMINIPROGRAM, 21 October 2018 (2018-10-21), XP009523016 *

Also Published As

Publication number Publication date
CN109933444A (en) 2019-06-25

Similar Documents

Publication Publication Date Title
WO2021036228A1 (en) File upload method and apparatus, terminal, server, system, and storage medium
WO2020216166A1 (en) Method for data transfer between hosting applications
WO2020177698A1 (en) Inter-mini program platform communication method and device, and computer storage medium
WO2020221190A1 (en) Applet state synchronization method, device and computer storage medium
US20200301648A1 (en) Method of operating a shared object in a video call
WO2020177734A1 (en) App triggering method, computer device, and storage medium
WO2020135245A1 (en) Hosting application processing method and device, and computer-readable storage medium
US10693816B2 (en) Communication methods and systems, electronic devices, and computer clusters
CN109947408B (en) Message pushing method and device, storage medium and electronic equipment
WO2020177697A1 (en) Method for discovery between mini program platforms, device, and computer storage medium
WO2020177731A1 (en) Real-time communication method between hosted applications
US8533734B2 (en) Application programming interface for managing time sharing option address space
WO2021088671A1 (en) Method for calling terminal capability, device, and computer storage medium
CN114124929A (en) Cross-network data processing method and device
WO2019136821A1 (en) Network selection method and apparatus of terminal, computer device, and storage medium
US20200220824A1 (en) Method, a device and a storage medium of forwarding voice information in instant messaging
CN107817962B (en) Remote control method, device, control server and storage medium
TW200425691A (en) Time-to-disconnect enforcement when communicating with wireless devices that have transient network addresses
CN110113246B (en) Method for protecting conversation privacy
CN112769876A (en) Method, device, equipment and medium for acquiring equipment channel information
CN113691602B (en) Service processing method, system, device, equipment and medium based on cloud mobile phone
WO2024061308A1 (en) Notification processing method, and terminal device, server side and computer storage medium
CN107733781B (en) Instant messaging processing method, equipment and computer storage medium
KR102428652B1 (en) Character information processing system using Microsoft Excel
CN114827268A (en) Remote debugging method and device

Legal Events

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

Ref document number: 20767035

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 1205 DATED 28/10/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 20767035

Country of ref document: EP

Kind code of ref document: A1