CN112527535B - Interaction method and terminal based on native WebView extension application - Google Patents

Interaction method and terminal based on native WebView extension application Download PDF

Info

Publication number
CN112527535B
CN112527535B CN202011593820.8A CN202011593820A CN112527535B CN 112527535 B CN112527535 B CN 112527535B CN 202011593820 A CN202011593820 A CN 202011593820A CN 112527535 B CN112527535 B CN 112527535B
Authority
CN
China
Prior art keywords
service manager
service
application
manager
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011593820.8A
Other languages
Chinese (zh)
Other versions
CN112527535A (en
Inventor
许建勋
唐光宇
闫乃永
卢学明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baobao Bus Co ltd
Original Assignee
Baobao Bus Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baobao Bus Co ltd filed Critical Baobao Bus Co ltd
Priority to CN202011593820.8A priority Critical patent/CN112527535B/en
Publication of CN112527535A publication Critical patent/CN112527535A/en
Application granted granted Critical
Publication of CN112527535B publication Critical patent/CN112527535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44584Portable applications, i.e. making applications self-contained, e.g. U3 standard
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to an interaction method and a terminal based on native WebView extension application, wherein the interaction method comprises the following steps: s1, a host application creates a page containing WebView and creates a message channel, wherein the host application can load a sub-application program through the page, the host application initializes a service manager B, and the message channel is used for two-way communication between the service manager B and a service manager A in the sub-application program; s2, the host application registers a first service in a service manager B, and the sub application program can communicate with the service manager B through the service manager A to call the first service in the service manager B; s3, initializing a service manager A by the sub application program, registering a second service and event monitoring module in the service manager A by the sub application program, and calling the second service and event monitoring module in the service manager A by the host application through communication between the service manager B and the service manager A.

Description

Interaction method and terminal based on native WebView extension application
Technical Field
The invention relates to the field of computer software, in particular to an interaction method and terminal based on native WebView extension application.
Background
In the course product development process, the traditional mode is to implement addition of different functional exercises by native technologies (native technologies of each platform, such as Android and IOS, etc.) in a host application so as to ensure the diversity of the content of the course product. However, due to the addition of the sub-application program realized by the original technology, the dynamic effect is often poor, the complex effect cannot be supported, the coupling between the host application and the exercise is strong, and if the host application has a problem, the update cost is high, and the dynamic expansion cannot be realized.
Disclosure of Invention
First, the technical problem to be solved
In order to solve the problems in the prior art, the invention provides an interaction method and a terminal based on a native WebView extension application, which support complex and changeable interaction scenes such as exercises in a sub-application mode, and reduce the coupling between the sub-application and a host application.
(II) technical scheme
In order to achieve the above purpose, the invention adopts a technical scheme that: an interaction method based on a native WebView extension application comprises the following steps:
s1, a host application creates a page containing WebView and creates a message channel, wherein the host application can load a sub-application program through the page, the host application initializes a service manager B, and the message channel is used for two-way communication between the service manager B and a service manager A in the sub-application program;
s2, the host application registers a first service in a service manager B, and the sub application program can communicate with the service manager B through the service manager A to call the first service in the service manager B;
s3, initializing a service manager A by the sub application program, registering a second service and event monitoring module in the service manager A by the sub application program, and calling the second service and event monitoring module in the service manager A by the host application through communication between the service manager B and the service manager A.
The invention adopts another technical scheme that: an interactive terminal based on a native WebView extension application, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
s1, a host application creates a page containing WebView and creates a message channel, wherein the host application can load a sub-application program through the page, the host application initializes a service manager B, and the message channel is used for two-way communication between the service manager B and a service manager A in the sub-application program;
s2, the host application registers a first service in a service manager B, and the sub application program can communicate with the service manager B through the service manager A to call the first service in the service manager B;
s3, initializing a service manager A by the sub application program, registering a second service and event monitoring module in the service manager A by the sub application program, and calling the second service and event monitoring module in the service manager A by the host application through communication between the service manager B and the service manager A.
(III) beneficial effects
The beneficial effects of the invention are as follows: after the service manager B of the host application and the service manager A of the sub-application realize two-way communication through a message channel, the service of the other party can be called mutually, and the sub-application can monitor events agreed with the host application through an event monitoring module registered in the service manager A so as to inform the sub-application when the host application is changed. Therefore, the invention realizes decoupling between the host application and the sub-application program, the host application and the sub-application program can be independently developed and tested, and the sub-application program can realize various rich interaction effects by utilizing the environment provided by the page containing WebView; in addition, when the sub-application program has a problem, only the independent package corresponding to the sub-application program needs to be replaced, and for the host application, only one file is replaced, so that the updating cost is low.
Drawings
FIG. 1 is a flow chart of an interaction method based on a native WebView extension application of the present invention;
FIG. 2 is a schematic structural diagram of an interactive terminal based on a native WebView extension application of the present invention;
[ reference numerals description ]
1. An interactive terminal based on native WebView extension application; 2. a memory; 3. a processor.
Detailed Description
The invention will be better explained by the following detailed description of the embodiments with reference to the drawings.
Referring to fig. 1, an interaction method based on native WebView extension application includes:
s1, a host application creates a page containing WebView and creates a message channel, wherein the host application can load a sub-application program through the page, the host application initializes a service manager B, and the message channel is used for two-way communication between the service manager B and a service manager A in the sub-application program;
s2, the host application registers a first service in a service manager B, and the sub application program can communicate with the service manager B through the service manager A to call the first service in the service manager B;
s3, initializing a service manager A by the sub application program, registering a second service and event monitoring module in the service manager A by the sub application program, and calling the second service and event monitoring module in the service manager A by the host application through communication between the service manager B and the service manager A.
From the above description, the beneficial effects of the invention are as follows: after the service manager B of the host application and the service manager A of the sub-application realize two-way communication through a message channel, the service of the other party can be called mutually, and the sub-application can monitor events agreed with the host application through an event monitoring module registered in the service manager A so as to inform the sub-application when the host application is changed. Therefore, the invention realizes decoupling between the host application and the sub-application program, the host application and the sub-application program can be independently developed and tested, and the sub-application program can realize various rich interaction effects by utilizing the environment provided by the page containing WebView; in addition, when the sub-application program has a problem, only the independent package corresponding to the sub-application program needs to be replaced, and for the host application, only one file is replaced, so that the updating cost is low.
Further, the sub-application in S2 may communicate with a service manager B through a service manager a to invoke a first service in the service manager B includes:
the sub-application program packages and encodes a first call instruction and a first request parameter through a service manager A and sends the first call instruction and the first request parameter to a service manager B through a message channel, and the service manager B inquires whether a first service matched with the first call instruction and the first request parameter exists or not after decoding the first call instruction and the first request parameter;
if yes, the service manager B calls a first service which is adapted to the first call instruction and the first request parameter, and the service manager B codes a call result of the first service and then sends the call result to the service manager A through the message channel;
if not, the service manager B codes the message without the adaptive first service and then sends the message to the service manager A through the message channel.
As can be seen from the above description, when the sub-application program communicates with the service manager B through the service manager a to call the first service in the service manager B, the first request parameter corresponding to the first service needs to be provided according to the first service to implement the call, so as to ensure the reliability of the call.
Further, the hosting application in S3 may communicate with the service manager a through the service manager B to invoke a second service in the service manager a includes:
the host application encapsulates and encodes a second call instruction and a second request parameter through a service manager B and then sends the second call instruction and the second request parameter to a service manager A through a message channel, and after the service manager A decodes the second call instruction and the second request parameter, the service manager A inquires whether a second service matched with the second call instruction and the second request parameter exists;
if yes, the service management A calls a second service which is matched with the second call instruction and the second request parameter, and the service manager A codes a call result of the second service and then sends the call result to the service manager B through the message channel;
if not, the service manager A codes the information of the second service without the adaptation and then sends the information to the service manager B through the information channel.
As can be seen from the above description, when the host application calls the second service in the service manager a through the communication between the service manager B and the service manager a, the second request parameter corresponding to the second service needs to be provided according to the second service to realize the call, so as to ensure the reliability of the call.
Further, the hosting application in S3 may communicate with the service manager a through the service manager B to call an event listening module in the service manager a, including:
the host application packages and encodes the event and the third request parameters through a service manager B and sends the encoded event and the third request parameters to a service manager A through a message channel, and after the service manager A decodes the event and the third request parameters, the service manager A inquires whether an event monitoring module matched with the event and the third request parameters exists;
if yes, the service manager A sends the event and the third request parameter to the event monitoring module;
if not, the service manager A ends the processing of the event.
As can be seen from the above description, the sub-application can monitor the event agreed with the main application through the event monitoring module in the service manager a, so that the main application can call the sub-application through the event mode without waiting for the execution result.
Referring to fig. 2, an interactive terminal based on a native WebView extension application includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
s1, a host application creates a page containing WebView and creates a message channel, wherein the host application can load a sub-application program through the page, the host application initializes a service manager B, and the message channel is used for two-way communication between the service manager B and a service manager A in the sub-application program;
s2, the host application registers a first service in a service manager B, and the sub application program can communicate with the service manager B through the service manager A to call the first service in the service manager B;
s3, initializing a service manager A by the sub application program, registering a second service and event monitoring module in the service manager A by the sub application program, and calling the second service and event monitoring module in the service manager A by the host application through communication between the service manager B and the service manager A.
From the above description, the beneficial effects of the invention are as follows: after the service manager B of the host application and the service manager A of the sub-application realize two-way communication through a message channel, the service of the other party can be called mutually, and the sub-application can monitor events agreed with the host application through an event monitoring module registered in the service manager A so as to inform the sub-application when the host application is changed. Therefore, the invention realizes decoupling between the host application and the sub-application program, the host application and the sub-application program can be independently developed and tested, and the sub-application program can realize various rich interaction effects by utilizing the environment provided by the page containing WebView; in addition, when the sub-application program has a problem, only the independent package corresponding to the sub-application program needs to be replaced, and for the host application, only one file is replaced, so that the updating cost is low.
Further, the sub-application in S2 may communicate with a service manager B through a service manager a to invoke a first service in the service manager B includes:
the sub-application program packages and encodes a first call instruction and a first request parameter through a service manager A and sends the first call instruction and the first request parameter to a service manager B through a message channel, and the service manager B inquires whether a first service matched with the first call instruction and the first request parameter exists or not after decoding the first call instruction and the first request parameter;
if yes, the service manager B calls a first service which is adapted to the first call instruction and the first request parameter, and the service manager B codes a call result of the first service and then sends the call result to the service manager A through the message channel;
if not, the service manager B codes the message without the adaptive first service and then sends the message to the service manager A through the message channel.
As can be seen from the above description, when the sub-application program communicates with the service manager B through the service manager a to call the first service in the service manager B, the first request parameter corresponding to the first service needs to be provided according to the first service to implement the call, so as to ensure the reliability of the call.
Further, the hosting application in S3 may communicate with the service manager a through the service manager B to invoke a second service in the service manager a includes:
the host application encapsulates and encodes a second call instruction and a second request parameter through a service manager B and then sends the second call instruction and the second request parameter to a service manager A through a message channel, and after the service manager A decodes the second call instruction and the second request parameter, the service manager A inquires whether a second service matched with the second call instruction and the second request parameter exists;
if yes, the service management A calls a second service which is matched with the second call instruction and the second request parameter, and the service manager A codes a call result of the second service and then sends the call result to the service manager B through the message channel;
if not, the service manager A codes the information of the second service without the adaptation and then sends the information to the service manager B through the information channel.
As can be seen from the above description, when the host application calls the second service in the service manager a through the communication between the service manager B and the service manager a, the second request parameter corresponding to the second service needs to be provided according to the second service to realize the call, so as to ensure the reliability of the call.
Further, the hosting application in S3 may communicate with the service manager a through the service manager B to call an event listening module in the service manager a, including:
the host application packages and encodes the event and the third request parameters through a service manager B and sends the encoded event and the third request parameters to a service manager A through a message channel, and after the service manager A decodes the event and the third request parameters, the service manager A inquires whether an event monitoring module matched with the event and the third request parameters exists;
if yes, the service manager A sends the event and the third request parameter to the event monitoring module;
if not, the service manager A ends the processing of the event.
As can be seen from the above description, the sub-application can monitor the event agreed with the main application through the event monitoring module in the service manager a, so that the main application can call the sub-application through the event mode without waiting for the execution result.
Example 1
Referring to fig. 1, an interaction method based on native WebView extension application includes:
s1, a host application creates a page containing WebView and creates a message channel, wherein the host application can load a sub-application program through the page, the host application initializes a service manager B, and the message channel is used for two-way communication between the service manager B and a service manager A in the sub-application program;
s2, the host application registers a first service in a service manager B, and the sub application program can communicate with the service manager B through the service manager A to call the first service in the service manager B;
s3, initializing a service manager A by the sub application program, registering a second service and event monitoring module in the service manager A by the sub application program, and calling the second service and event monitoring module in the service manager A by the host application through communication between the service manager B and the service manager A.
Wherein the sub-application in S2 may communicate with a service manager B through a service manager a to invoke a first service in the service manager B comprises:
the sub-application program packages and encodes a first call instruction and a first request parameter through a service manager A and sends the first call instruction and the first request parameter to a service manager B through a message channel, and the service manager B inquires whether a first service matched with the first call instruction and the first request parameter exists or not after decoding the first call instruction and the first request parameter;
if yes, the service manager B calls a first service which is adapted to the first call instruction and the first request parameter, and the service manager B codes a call result of the first service and then sends the call result to the service manager A through the message channel;
if not, the service manager B codes the message without the adaptive first service and then sends the message to the service manager A through the message channel.
Wherein the hosting application in S3 may communicate with the service manager a through the service manager B to invoke a second service in the service manager a includes:
the host application encapsulates and encodes a second call instruction and a second request parameter through a service manager B and then sends the second call instruction and the second request parameter to a service manager A through a message channel, and after the service manager A decodes the second call instruction and the second request parameter, the service manager A inquires whether a second service matched with the second call instruction and the second request parameter exists;
if yes, the service management A calls a second service which is matched with the second call instruction and the second request parameter, and the service manager A codes a call result of the second service and then sends the call result to the service manager B through the message channel;
if not, the service manager A codes the information of the second service without the adaptation and then sends the information to the service manager B through the information channel.
Wherein, the hosting application in S3 may communicate with the service manager a through the service manager B to call an event listening module in the service manager a, including:
the host application packages and encodes the event and the third request parameters through a service manager B and sends the encoded event and the third request parameters to a service manager A through a message channel, and after the service manager A decodes the event and the third request parameters, the service manager A inquires whether an event monitoring module matched with the event and the third request parameters exists;
if yes, the service manager A sends the event and the third request parameter to the event monitoring module;
if not, the service manager A ends the processing of the event.
Specifically, one event may be matched with a plurality of event monitoring modules, and when an event issued by a host application is received, the event and parameters thereof are sequentially sent to each event monitoring module matched with the event monitoring module.
Specifically, after the execution of the inter-calling service between the sub-application program and the host application is completed, the execution result can be returned.
Example two
Referring to fig. 2, an interactive terminal 1 based on a native WebView extension application includes a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3, wherein the processor 3 implements the steps of the first embodiment when executing the computer program.
In summary, according to the interaction method and the terminal based on the native WebView extension application provided by the invention, after the service manager B of the host application and the service manager a of the sub-application program realize two-way communication through the message channel, the sub-application program can mutually call the service of the other party, and the sub-application program can monitor the event agreed with the host application through the event monitoring module registered in the service manager a, so that the sub-application program is notified when the host application is changed. Therefore, the invention realizes decoupling between the host application and the sub-application program, the host application and the sub-application program can be independently developed and tested, and the sub-application program can realize various rich interaction effects by utilizing the environment provided by the page containing WebView; in addition, when the sub-application program has a problem, only the independent package corresponding to the sub-application program needs to be replaced, and for the host application, only one file is replaced, so that the updating cost is low.
The foregoing description is only illustrative of the present invention and is not intended to limit the scope of the invention, and all equivalent changes made by the specification and drawings of the present invention, or direct or indirect application in the relevant art, are included in the scope of the present invention.

Claims (4)

1. An interaction method based on a native WebView extension application is characterized by comprising the following steps:
s1, a host application creates a page containing WebView and creates a message channel, wherein the host application can load a sub-application program through the page, the host application initializes a service manager B, and the message channel is used for two-way communication between the service manager B and a service manager A in the sub-application program;
s2, the host application registers a first service in a service manager B, and the sub application program can communicate with the service manager B through the service manager A to call the first service in the service manager B;
the sub-application in S2 may communicate with a service manager B through a service manager a to invoke a first service in the service manager B comprising:
the sub-application program packages and encodes a first call instruction and a first request parameter through a service manager A and sends the first call instruction and the first request parameter to a service manager B through a message channel, and the service manager B inquires whether a first service matched with the first call instruction and the first request parameter exists or not after decoding the first call instruction and the first request parameter;
if yes, the service manager B calls a first service which is adapted to the first call instruction and the first request parameter, and the service manager B codes a call result of the first service and then sends the call result to the service manager A through the message channel;
if not, the service manager B codes the message without the adaptive first service and then sends the message to the service manager A through the message channel;
s3, initializing a service manager A by the sub-application program, registering a second service and event monitoring module in the service manager A by the sub-application program, and calling the second service and event monitoring module in the service manager A by the host application through the service manager B and the service manager A in communication;
the hosting application in S3 may communicate with the service manager a through the service manager B to invoke a second service in the service manager a, including:
the host application encapsulates and encodes a second call instruction and a second request parameter through a service manager B and then sends the second call instruction and the second request parameter to a service manager A through a message channel, and after the service manager A decodes the second call instruction and the second request parameter, the service manager A inquires whether a second service matched with the second call instruction and the second request parameter exists;
if yes, the service management A calls a second service which is matched with the second call instruction and the second request parameter, and the service manager A codes a call result of the second service and then sends the call result to the service manager B through the message channel;
if not, the service manager A codes the information of the second service without the adaptation and then sends the information to the service manager B through the information channel.
2. The interaction method based on the native WebView extension application according to claim 1, wherein the hosting application in S3 can communicate with the service manager a through the service manager B to call an event listening module in the service manager a includes:
the host application packages and encodes the event and the third request parameters through a service manager B and sends the encoded event and the third request parameters to a service manager A through a message channel, and after the service manager A decodes the event and the third request parameters, the service manager A inquires whether an event monitoring module matched with the event and the third request parameters exists;
if yes, the service manager A sends the event and the third request parameter to the event monitoring module;
if not, the service manager A ends the processing of the event.
3. An interactive terminal based on a native WebView extension application, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the following steps when executing the computer program:
s1, a host application creates a page containing WebView and creates a message channel, wherein the host application can load a sub-application program through the page, the host application initializes a service manager B, and the message channel is used for two-way communication between the service manager B and a service manager A in the sub-application program;
s2, the host application registers a first service in a service manager B, and the sub application program can communicate with the service manager B through the service manager A to call the first service in the service manager B;
the sub-application in S2 may communicate with a service manager B through a service manager a to invoke a first service in the service manager B comprising:
the sub-application program packages and encodes a first call instruction and a first request parameter through a service manager A and sends the first call instruction and the first request parameter to a service manager B through a message channel, and the service manager B inquires whether a first service matched with the first call instruction and the first request parameter exists or not after decoding the first call instruction and the first request parameter;
if yes, the service manager B calls a first service which is adapted to the first call instruction and the first request parameter, and the service manager B codes a call result of the first service and then sends the call result to the service manager A through the message channel;
if not, the service manager B codes the message without the adaptive first service and then sends the message to the service manager A through the message channel;
s3, initializing a service manager A by the sub-application program, registering a second service and event monitoring module in the service manager A by the sub-application program, and calling the second service and event monitoring module in the service manager A by the host application through the service manager B and the service manager A in communication;
the hosting application in S3 may communicate with the service manager a through the service manager B to invoke a second service in the service manager a, including:
the host application encapsulates and encodes a second call instruction and a second request parameter through a service manager B and then sends the second call instruction and the second request parameter to a service manager A through a message channel, and after the service manager A decodes the second call instruction and the second request parameter, the service manager A inquires whether a second service matched with the second call instruction and the second request parameter exists;
if yes, the service management A calls a second service which is matched with the second call instruction and the second request parameter, and the service manager A codes a call result of the second service and then sends the call result to the service manager B through the message channel;
if not, the service manager A codes the information of the second service without the adaptation and then sends the information to the service manager B through the information channel.
4. The interactive terminal based on the native WebView extension application according to claim 3, wherein the hosting application in S3 can communicate with the service manager a through the service manager B to call an event listening module in the service manager a includes:
the host application packages and encodes the event and the third request parameters through a service manager B and sends the encoded event and the third request parameters to a service manager A through a message channel, and after the service manager A decodes the event and the third request parameters, the service manager A inquires whether an event monitoring module matched with the event and the third request parameters exists;
if yes, the service manager A sends the event and the third request parameter to the event monitoring module;
if not, the service manager A ends the processing of the event.
CN202011593820.8A 2020-12-29 2020-12-29 Interaction method and terminal based on native WebView extension application Active CN112527535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011593820.8A CN112527535B (en) 2020-12-29 2020-12-29 Interaction method and terminal based on native WebView extension application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011593820.8A CN112527535B (en) 2020-12-29 2020-12-29 Interaction method and terminal based on native WebView extension application

Publications (2)

Publication Number Publication Date
CN112527535A CN112527535A (en) 2021-03-19
CN112527535B true CN112527535B (en) 2023-05-16

Family

ID=74977042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011593820.8A Active CN112527535B (en) 2020-12-29 2020-12-29 Interaction method and terminal based on native WebView extension application

Country Status (1)

Country Link
CN (1) CN112527535B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11683359B2 (en) * 2021-07-30 2023-06-20 Intuit Inc. Methods and systems for persistent communications between client applications and application servers

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808971A (en) * 2014-01-24 2015-07-29 北京三星通信技术研究有限公司 Network application program manager, method, device and mobile terminal
CN107632894A (en) * 2017-08-09 2018-01-26 中国电力科学研究院 A kind of implementation method and device for power market transaction service call

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170031661A1 (en) * 2015-04-15 2017-02-02 Alpha Software Corporation Systems and methods for transactional applications in an unreliable wireless network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104808971A (en) * 2014-01-24 2015-07-29 北京三星通信技术研究有限公司 Network application program manager, method, device and mobile terminal
CN107632894A (en) * 2017-08-09 2018-01-26 中国电力科学研究院 A kind of implementation method and device for power market transaction service call

Also Published As

Publication number Publication date
CN112527535A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN108563517B (en) Calling method and device of system interface
CN111813724B (en) HIDL interface adapting system, method, corresponding equipment and storage medium
CN108984174A (en) Cross-platform application creation method, device, server and storage medium
EP3779690A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
EP1872211A1 (en) Method and system for executing a container-managed application on a processing device
US20140258891A1 (en) Electronic device, storage medium and method for processing information
CN112596931B (en) Cross-process communication method and device, electronic equipment and storage medium
CN112527535B (en) Interaction method and terminal based on native WebView extension application
CN112214334A (en) Micro-service calling method and device, electronic equipment and computer-readable storage medium
CN106357713B (en) Method for realizing remote procedure call, client device and server device
CN112835632B (en) Method and equipment for calling end capability and computer storage medium
CN110674205B (en) Single table query method, device, terminal and readable storage medium
CN104679489A (en) System and method for internally setting web browser in online game client side
CN101819524B (en) Access method of RFID (Radio Frequency Identification Device) reader and interface driving device thereof
CN115834649A (en) Remote procedure calling method, device and system
CN113791777B (en) Picture display method and device, computer readable storage medium and electronic equipment
CN110990167B (en) Front-end communication method and device, storage medium and electronic equipment
CN113626001A (en) API dynamic editing method and device based on script
CN107463438B (en) Information processing method, device and system for multi-Openstack environment
CN111309322A (en) Rule-based response type intelligent application development system
US11868783B2 (en) Method of underlying drive forwarding and multi-core system implemented based on UEFI
CN111522588B (en) Chip operation interaction method and communication system based on SWD protocol
CN115617424A (en) NET framework based data processing method for calling POST request
CN114666514B (en) Data processing method, device, electronic equipment and storage medium
CN117201577B (en) Communication method and system of cross-platform API and SPI based on PISA

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 350028 Jinshan Juyuan Industrial Park project a, No.18, West Third Ring Road, Jianxin Town, Cangshan District, Fuzhou City, Fujian Province

Applicant after: Baobao Bus Co.,Ltd.

Address before: 350001 15 / F, building 3, area F, Fuzhou Software Park, 89 software Avenue, Gulou District, Fuzhou City, Fujian Province

Applicant before: FUZHOU ZHIYONG INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant