CN112527535A - Interaction method and terminal based on native WebView extended application - Google Patents
Interaction method and terminal based on native WebView extended application Download PDFInfo
- Publication number
- CN112527535A CN112527535A CN202011593820.8A CN202011593820A CN112527535A CN 112527535 A CN112527535 A CN 112527535A CN 202011593820 A CN202011593820 A CN 202011593820A CN 112527535 A CN112527535 A CN 112527535A
- Authority
- CN
- China
- Prior art keywords
- service manager
- service
- request parameter
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44584—Portable applications, i.e. making applications self-contained, e.g. U3 standard
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy 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 extended application, which comprises the following steps: s1, a host application creates a page containing WebView and creates a message channel, 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 the service manager B to perform two-way communication with 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 call the first service in the service manager B through the communication between the service manager A and 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 program through the communication between the service manager B and the service manager A.
Description
Technical Field
The invention relates to the field of computer software, in particular to an interaction method and a terminal based on native WebView extended application.
Background
In the course of developing the course product, the traditional method is to add different function exercises by using native technologies (native technologies of various platforms, for example, native technologies of Android, IOS and the like) in a host application so as to ensure the diversity of the contents of the course product. However, due to the addition of the sub-application program realized by the native technology, the dynamic effect is often poor, the complex effect cannot be supported, the coupling between the host application and the exercise is strong, if one of the sub-application program and the host application program has a problem, the updating cost is high, and the dynamic expansion cannot be realized.
Disclosure of Invention
Technical problem to be solved
In order to solve the above problems in the prior art, the invention provides an interaction method and a terminal based on native WebView extended application, which support complex and changeable interaction scenes such as exercise in a sub-application mode, and reduce the coupling between the sub-application and the host application.
(II) technical scheme
In order to achieve the purpose, the invention adopts a technical scheme that: an interaction method based on native WebView extension application comprises the following steps:
s1, a host application creates a page containing WebView and creates a message channel, 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 the service manager B to perform two-way communication with 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 call the first service in the service manager B through the communication between the service manager A and 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 program through the communication between the service manager B and the service manager A.
The other technical scheme adopted by the invention is as follows: 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, wherein the processor executes the computer program to implement the following steps:
s1, a host application creates a page containing WebView and creates a message channel, 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 the service manager B to perform two-way communication with 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 call the first service in the service manager B through the communication between the service manager A and 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 program through the communication between the service manager B and the service manager A.
(III) advantageous effects
The invention has the beneficial effects that: 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 opposite side 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 the 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 the 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 flowchart of an interaction method based on native WebView extended application of the present invention;
FIG. 2 is a schematic structural diagram of an interactive terminal based on native WebView extended application according to the present invention;
[ description of reference ]
1. An interactive terminal based on native WebView extended application; 2. a memory; 3. a processor.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying 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, 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 the service manager B to perform two-way communication with 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 call the first service in the service manager B through the communication between the service manager A and 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 program through the communication between the service manager B and the service manager A.
From the above description, the beneficial effects of the present invention are: 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 opposite side 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 the 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 the 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 invoke the first service in the service manager B by the service manager a communicating with the service manager B, including:
the method comprises the steps that a sub application program packages and codes a first calling instruction and a first request parameter through a service manager A and then sends the first calling instruction and the first request parameter to a service manager B through a message channel, and after the service manager B decodes the first calling instruction and the first request parameter, the service manager B inquires whether a first service adaptive to the first calling instruction and the first request parameter exists or not;
if so, the service manager B calls a first service adaptive to the first calling instruction and the first request parameter, encodes a calling result of the first service and then sends the encoded calling result to the service manager A through the message channel;
if not, the service manager B encodes the message of the first service without adaptation and then sends the encoded message to the service manager A through the message channel.
As can be seen from the above description, when the sub-application calls the first service in the service manager B through the communication between the service manager a and the service manager B, the calling can be implemented only by providing the first request parameter with the structure corresponding to the first service according to the first service, so as to ensure the reliability of the calling.
Further, the step of S3, the host application may call a second service in the service manager a by communicating with the service manager a through the service manager B includes:
the host application packages 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 adaptive to the second call instruction and the second request parameter exists or not;
if so, the service manager A calls a second service adaptive to the second calling instruction and the second request parameter, and the service manager A codes a calling result of the second service and then sends the coded calling result to a service manager B through the message channel;
if not, the service manager A encodes the message of the second service without adaptation and then sends the encoded message to the service manager B through the message 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 call can be implemented only if the second request parameter of the structure corresponding to the second service is provided according to the second service, so as to ensure the reliability of the call.
Further, the step S3, the calling the event monitoring module in the service manager a by the host application communicating with the service manager a through the service manager B includes:
the host application packages and encodes the event and the third request parameter through a service manager B and then sends the event and the third request parameter to a service manager A through a message channel, and after the service manager A decodes the event and the third request parameter, the service manager A inquires whether an event monitoring module adaptive to the third calling instruction and the third request parameter exists;
if so, 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 may listen to the event agreed with the main application through the event listening module in the service manager a, so that the main application may call the sub application by way of the event without waiting for the execution result.
Referring to fig. 2, an interactive terminal based on a native WebView extended application includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where 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, 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 the service manager B to perform two-way communication with 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 call the first service in the service manager B through the communication between the service manager A and 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 program through the communication between the service manager B and the service manager A.
From the above description, the beneficial effects of the present invention are: 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 opposite side 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 the 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 the 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 invoke the first service in the service manager B by the service manager a communicating with the service manager B, including:
the method comprises the steps that a sub application program packages and codes a first calling instruction and a first request parameter through a service manager A and then sends the first calling instruction and the first request parameter to a service manager B through a message channel, and after the service manager B decodes the first calling instruction and the first request parameter, the service manager B inquires whether a first service adaptive to the first calling instruction and the first request parameter exists or not;
if so, the service manager B calls a first service adaptive to the first calling instruction and the first request parameter, encodes a calling result of the first service and then sends the encoded calling result to the service manager A through the message channel;
if not, the service manager B encodes the message of the first service without adaptation and then sends the encoded message to the service manager A through the message channel.
As can be seen from the above description, when the sub-application calls the first service in the service manager B through the communication between the service manager a and the service manager B, the calling can be implemented only by providing the first request parameter with the structure corresponding to the first service according to the first service, so as to ensure the reliability of the calling.
Further, the step of S3, the host application may call a second service in the service manager a by communicating with the service manager a through the service manager B includes:
the host application packages 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 adaptive to the second call instruction and the second request parameter exists or not;
if so, the service manager A calls a second service adaptive to the second calling instruction and the second request parameter, and the service manager A codes a calling result of the second service and then sends the coded calling result to a service manager B through the message channel;
if not, the service manager A encodes the message of the second service without adaptation and then sends the encoded message to the service manager B through the message 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 call can be implemented only if the second request parameter of the structure corresponding to the second service is provided according to the second service, so as to ensure the reliability of the call.
Further, the step S3, the calling the event monitoring module in the service manager a by the host application communicating with the service manager a through the service manager B includes:
the host application packages and encodes the event and the third request parameter through a service manager B and then sends the event and the third request parameter to a service manager A through a message channel, and after the service manager A decodes the event and the third request parameter, the service manager A inquires whether an event monitoring module adaptive to the third calling instruction and the third request parameter exists;
if so, 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 may listen to the event agreed with the main application through the event listening module in the service manager a, so that the main application may call the sub application by way of the event without waiting for the execution result.
Example one
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, 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 the service manager B to perform two-way communication with 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 call the first service in the service manager B through the communication between the service manager A and 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 program through the communication between the service manager B and the service manager A.
Wherein the step S2 of the sub-application communicating with the service manager B through the service manager a to call the first service in the service manager B includes:
the method comprises the steps that a sub application program packages and codes a first calling instruction and a first request parameter through a service manager A and then sends the first calling instruction and the first request parameter to a service manager B through a message channel, and after the service manager B decodes the first calling instruction and the first request parameter, the service manager B inquires whether a first service adaptive to the first calling instruction and the first request parameter exists or not;
if so, the service manager B calls a first service adaptive to the first calling instruction and the first request parameter, encodes a calling result of the first service and then sends the encoded calling result to the service manager A through the message channel;
if not, the service manager B encodes the message of the first service without adaptation and then sends the encoded message to the service manager A through the message channel.
Wherein the step of S3, the host application may call the second service in the service manager A by the service manager B communicating with the service manager A includes:
the host application packages 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 adaptive to the second call instruction and the second request parameter exists or not;
if so, the service manager A calls a second service adaptive to the second calling instruction and the second request parameter, and the service manager A codes a calling result of the second service and then sends the coded calling result to a service manager B through the message channel;
if not, the service manager A encodes the message of the second service without adaptation and then sends the encoded message to the service manager B through the message channel.
Wherein the step S3, the host application may call the event monitoring module in the service manager a by communicating with the service manager a through the service manager B, includes:
the host application packages and encodes the event and the third request parameter through a service manager B and then sends the event and the third request parameter to a service manager A through a message channel, and after the service manager A decodes the event and the third request parameter, the service manager A inquires whether an event monitoring module adaptive to the third calling instruction and the third request parameter exists;
if so, 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 match with a plurality of event monitoring modules, and when an event issued by the host application is received, the event and its parameters are sequentially sent to each event monitoring module matching with the event monitoring module.
Specifically, after the inter-call service between the sub-application and the host application is executed, the execution result may 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 on the memory 2 and executable on the processor 3, where the processor 3 implements the steps in the first embodiment when executing the computer program.
In summary, according to the interaction method and terminal based on the native WebView extended application provided by the present invention, after the service manager B of the host application and the service manager a of the sub-application realize two-way communication through the message channel, the services of the other party can be mutually invoked, and the sub-application can monitor the event agreed with the host application through the event monitoring module registered in the service manager a, so as to notify the sub-application when the host application is changed. Therefore, the invention realizes the 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 the 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 above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.
Claims (8)
1. An interaction method based on native WebView extended application is characterized by comprising the following steps:
s1, a host application creates a page containing WebView and creates a message channel, 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 the service manager B to perform two-way communication with 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 call the first service in the service manager B through the communication between the service manager A and 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 program through the communication between the service manager B and the service manager A.
2. The interactive method based on native WebView extension application of claim 1, wherein the sub-application in S2 can communicate with service manager B through service manager A to invoke the first service in service manager B comprises:
the method comprises the steps that a sub application program packages and codes a first calling instruction and a first request parameter through a service manager A and then sends the first calling instruction and the first request parameter to a service manager B through a message channel, and after the service manager B decodes the first calling instruction and the first request parameter, the service manager B inquires whether a first service adaptive to the first calling instruction and the first request parameter exists or not;
if so, the service manager B calls a first service adaptive to the first calling instruction and the first request parameter, encodes a calling result of the first service and then sends the encoded calling result to the service manager A through the message channel;
if not, the service manager B encodes the message of the first service without adaptation and then sends the encoded message to the service manager A through the message channel.
3. The native WebView extension application-based interaction method of claim 1, wherein said S3 enabling said host application to call a second service in said service manager A by communicating with said service manager A through said service manager B comprises:
the host application packages 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 adaptive to the second call instruction and the second request parameter exists or not;
if so, the service manager A calls a second service adaptive to the second calling instruction and the second request parameter, and the service manager A codes a calling result of the second service and then sends the coded calling result to a service manager B through the message channel;
if not, the service manager A encodes the message of the second service without adaptation and then sends the encoded message to the service manager B through the message channel.
4. The native WebView extension application-based interaction method of claim 1, wherein the step of S3, the host application can call the event monitoring module in the service manager A through the communication between the service manager B and the service manager A, comprises:
the host application packages and encodes the event and the third request parameter through a service manager B and then sends the event and the third request parameter to a service manager A through a message channel, and after the service manager A decodes the event and the third request parameter, the service manager A inquires whether an event monitoring module adaptive to the third calling instruction and the third request parameter exists;
if so, 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.
5. An interactive terminal based on native WebView extension application, comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the following steps:
s1, a host application creates a page containing WebView and creates a message channel, 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 the service manager B to perform two-way communication with 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 call the first service in the service manager B through the communication between the service manager A and 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 program through the communication between the service manager B and the service manager A.
6. The interactive terminal based on the native WebView extension application of claim 5, wherein the sub-application program in the S2 can communicate with a service manager B through the service manager A to invoke the first service in the service manager B, comprising:
the method comprises the steps that a sub application program packages and codes a first calling instruction and a first request parameter through a service manager A and then sends the first calling instruction and the first request parameter to a service manager B through a message channel, and after the service manager B decodes the first calling instruction and the first request parameter, the service manager B inquires whether a first service adaptive to the first calling instruction and the first request parameter exists or not;
if so, the service manager B calls a first service adaptive to the first calling instruction and the first request parameter, encodes a calling result of the first service and then sends the encoded calling result to the service manager A through the message channel;
if not, the service manager B encodes the message of the first service without adaptation and then sends the encoded message to the service manager A through the message channel.
7. The interactive terminal based on native WebView extension application of claim 5, wherein the step of S3, the host application can call the second service in the service manager A by communicating with the service manager A through the service manager B, comprises:
the host application packages 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 adaptive to the second call instruction and the second request parameter exists or not;
if so, the service manager A calls a second service adaptive to the second calling instruction and the second request parameter, and the service manager A codes a calling result of the second service and then sends the coded calling result to a service manager B through the message channel;
if not, the service manager A encodes the message of the second service without adaptation and then sends the encoded message to the service manager B through the message channel.
8. The interactive terminal based on native WebView extension application of claim 5, wherein the step of calling the event monitoring module in the service manager a by the host application communicating with the service manager a through the service manager B in the S3 comprises:
the host application packages and encodes the event and the third request parameter through a service manager B and then sends the event and the third request parameter to a service manager A through a message channel, and after the service manager A decodes the event and the third request parameter, the service manager A inquires whether an event monitoring module adaptive to the third calling instruction and the third request parameter exists;
if so, 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.
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 true CN112527535A (en) | 2021-03-19 |
CN112527535B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4124955A1 (en) * | 2021-07-30 | 2023-02-01 | Intuit Inc. | Methods and systems for persistent communications between client applications and application servers |
Citations (3)
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 |
US20170031661A1 (en) * | 2015-04-15 | 2017-02-02 | Alpha Software Corporation | Systems and methods for transactional applications in an unreliable wireless network |
CN107632894A (en) * | 2017-08-09 | 2018-01-26 | 中国电力科学研究院 | A kind of implementation method and device for power market transaction service call |
-
2020
- 2020-12-29 CN CN202011593820.8A patent/CN112527535B/en active Active
Patent Citations (3)
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 |
US20170031661A1 (en) * | 2015-04-15 | 2017-02-02 | Alpha Software Corporation | Systems and methods for transactional applications in an unreliable wireless network |
CN107632894A (en) * | 2017-08-09 | 2018-01-26 | 中国电力科学研究院 | A kind of implementation method and device for power market transaction service call |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4124955A1 (en) * | 2021-07-30 | 2023-02-01 | Intuit Inc. | Methods and systems for persistent communications between client applications and application servers |
AU2022204692B2 (en) * | 2021-07-30 | 2023-06-01 | Intuit Inc. | Methods and systems for persistent communications between client applications and application servers |
Also Published As
Publication number | Publication date |
---|---|
CN112527535B (en) | 2023-05-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9923992B2 (en) | Inter-process communication method based on application layer of android and basic application communication system | |
CA2600503C (en) | Method and system for executing a container-managed application on a processing device | |
CN110377438A (en) | The method for routing of striding course communication interface, device and system | |
WO2020248383A1 (en) | Cross-platform-based data processing method and apparatus, and computer device | |
CN111813724A (en) | HIDL interface adaptation system, method and corresponding equipment, storage medium | |
CN110933075B (en) | Service calling method and device, electronic equipment and storage medium | |
US9451433B2 (en) | Device and method of driving multi-PDP data communication for mobile broadband device | |
CN112596931B (en) | Cross-process communication method and device, electronic equipment and storage medium | |
CN105677397A (en) | Method for optimizing PHP remote procedure call through local gateway program | |
CN106357713B (en) | Method for realizing remote procedure call, client device and server device | |
CN112256246A (en) | Micro-service integration framework for supporting cross-language calling in power system | |
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 | |
CN109743396A (en) | component loading method of SCA software radio platform | |
CN110674205A (en) | Single table query method, device, terminal and readable storage medium | |
CN109739872A (en) | A kind of implementation method, system and the operating method of SQL statement processing | |
CN110290139B (en) | Message transmission method and device | |
CN109669793B (en) | Object calling method in middleware process | |
CN113495796A (en) | Service calling method and related equipment | |
CN109005163B (en) | HTTP dynamic request service calling method | |
CN115834649A (en) | Remote procedure calling method, device and system | |
CN113626001A (en) | API dynamic editing method and device based on script | |
CN102156745A (en) | Method and system for continuously browsing Web pages through ActiveX widget | |
CN107463438B (en) | Information processing method, device and system for multi-Openstack environment | |
CN111949260A (en) | Mobile terminal service configuration method and system |
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 |