Page communication method, device and equipment
By mounting the communication object of the native application to the global object in the H5 page and exposing the unified interface, and using the page jump protocol to initiate data communication requests, the problem of poor interactive communication compatibility between the H5 page and the native application is solved, and the efficiency of data acquisition is improved. and ease of development.
Patent Information
- Application Number
- CN202110349208.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-31
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-03-31
AI Technical Summary
In the existing technology, the interactive communication compatibility between H5 pages and native applications is poor, resulting in low data acquisition efficiency. Different interfaces need to be called according to different operating systems, resulting in development complexity and low efficiency.
By mounting the communication object of the native application to the global object, exposing the unified interface object after aggregation processing, and initiating a data communication request to the native application based on the page jump protocol, using the callback identifier to obtain the corresponding data from the queue pool, realizing the Compatibility handling of different operating systems.
It improves the communication data acquisition efficiency between the page and the native application, achieves compatibility with different operating systems, simplifies the development process, and improves the flexibility and security of page communication.
Smart Images

Figure CN113032167B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a page communication method, device and equipment. Background Art
[0002] With the continuous popularization and optimization of HTML5, more and more applications are developed on mobile terminals. The h5 pages embedded by developers in the application need to interact with native applications, such as passing data, calling functions, etc., so that the h5 pages and native applications can be exposed to each other and achieve the purpose of mutual operation.
[0003] In the prior art, the interaction between the h5 page and the native application can use the bridge mode as a communication bridge, which is developed separately each time, so that the URL link triggered by the user on the h5 page can be captured by the native application, and then the native application analyzes and processes the data and executes the h5 page data callback, thereby realizing two-way communication between the h5 page and the native application.
[0004] During the communication between the above-mentioned h5 page and the native application, due to the inconsistent standards of the h5 page embedded in the application using the bridge mode, different h5 pages need to be produced for terminals with different operating systems, and the interaction logic in the h5 page calls different interfaces according to the operating system. For the same h5 page, it is necessary to determine the operating system corresponding to the h5 page and call different interfaces according to the operating system, which makes the page less compatible with the operating system communication and affects the data acquisition efficiency of the page communication process. Summary of the invention
[0005] In view of this, the present application provides a page communication method, device and equipment, the main purpose of which is to solve the problem in the prior art that the page has poor compatibility with the operating system communication, which affects the data acquisition efficiency of the page communication process.
[0006] According to a first aspect of the present application, a page communication method is provided, comprising:
[0007] Determine a communication object mounted on the global object by the native application end according to the device type standard, wherein the communication object is used to place communication data when the page communicates with the native application in a queue pool, and set a callback identifier for the communication data;
[0008] Aggregate the communication methods in the communication object mounted on the global object and then expose a unified interface object;
[0009] According to the detected data communication demand triggered by the unified interface object, a data communication request is initiated to the native application end based on the page jump protocol, so that the native application end calls the communication object and obtains the communication data matching the target callback identifier from the queue pool according to the target callback identifier carried in the data communication request.
[0010] In another embodiment, after determining that the native application end is mounted on the communication object on the global object according to the device type standard, the method further includes: determining the device type based on the communication object mounted on the global object.
[0011] In another embodiment, determining the device type based on the communication object mounted on the global object specifically includes:
[0012] Based on the communication method in the communication object mounted on the global object, acquiring embedded parameter information formed by mounting the communication method on the global object;
[0013] The device type is determined by using the interface type object mapped by the embedded parameter information.
[0014] In another embodiment, before determining that the native application end is mounted to the communication object on the global object according to the device type standard, the method further includes:
[0015] If the communication object is not detected in the global object, the device type is determined according to the user agent, and the native application is monitored to see whether the communication object corresponding to the device type is mounted in the global object.
[0016] In another embodiment, before determining that the native application end is mounted to the communication object on the global object according to the device type standard, the method further includes:
[0017] Detecting whether a completion event sent by the native application end is received, wherein the completion event is used to indicate that the native application end has mounted the communication object on the global object and has completed the initialization of the communication object;
[0018] If so, the page logic in the page that needs to interact with the native application end is initialized.
[0019] In another embodiment, initializing the page logic in the page that needs to interact with the native application end specifically includes:
[0020] Put the code corresponding to at least one page logic in the page that needs to interact with the native application end into the callback array corresponding to the target method;
[0021] According to the callback array, the codes corresponding to the page logic in the callback array are called back in sequence by the target method, so as to execute the initialization of the at least one page logic in sequence.
[0022] In another embodiment, before initiating a data communication request to the native application end based on the page jump protocol, the method further includes:
[0023] Preparing a data communication standard in advance for the communication logic involved in the communication between the page and the native application end;
[0024] The communication data carries information of a multi-level protocol data structure that complies with a pre-established target data communication standard.
[0025] In another embodiment, after initiating a data communication request to the native application end based on the page jump protocol, the method further includes:
[0026] Receive a processing result obtained after the native application end processes the target data in the communication data according to the target data communication standard.
[0027] In another embodiment, the receiving a processing result obtained by the native application end after processing the target data in the communication data according to the target data communication standard includes: receiving the processing result obtained by the native application end in the following manner:
[0028] Combining the information in the first level structure and the second level structure in the information conforming to the multi-level protocol data structure, and searching a pre-established data communication standard table according to the combination result;
[0029] When the target data communication standard corresponding to the combination result exists in the data communication standard table, the target data is processed according to the operation corresponding to the target data communication standard to obtain the processing result, wherein the target data is located in the third level structure in the information that conforms to the multi-level protocol data structure.
[0030] In another embodiment, the method further comprises:
[0031] Upon receiving an error identifier returned by the native application end, wherein the error identifier is used to indicate that the communication between the page and the native application end does not support the data communication standard corresponding to the combination result, updating the data communication standard for the communication logic involved in the communication between the page and the native application;
[0032] Based on the updated data communication standard, the updated communication data is transmitted from the page to the native application end, and an updated data communication request is initiated to the native application using a page jump protocol, so that the native application end processes the data in the updated communication data according to the updated data communication standard.
[0033] In another embodiment, when the communication data indicates a request to obtain game data from the service end, after initiating a data communication request to the native application end based on the page jump protocol, the method further includes:
[0034] The game data generated by the business end in response to the call of the native application end is received, and the game data is displayed on the page.
[0035] In another embodiment, before initiating a data communication request to the native application end based on the page jump protocol, the method further includes:
[0036] The communication logic involved in the communication between the page and the native application end, and / or the business end is expanded through a supplementary protocol interface, and a new data communication standard is formulated based on the expanded communication logic, so that the native application end and / or the business end can perform corresponding processing on the data transmitted by the page according to the new communication standard.
[0037] According to a second aspect of the present application, a page communication device is provided, comprising:
[0038] A determination unit, used to determine a communication object mounted on a global object by a native application end according to a device type standard, wherein the communication object is used to place communication data when a page communicates with the native application into a queue pool, and to set a callback identifier for the communication data;
[0039] A processing unit, configured to aggregate the communication methods in the communication objects mounted on the global object and then expose a unified interface object;
[0040] An initiating unit is used to initiate a data communication request to the native application end based on a page jump protocol according to the data communication demand detected and triggered by the unified interface object, so that the native application end calls the communication object and obtains communication data matching the target callback identifier from the queue pool according to the target callback identifier carried in the data communication request.
[0041] In another embodiment, the apparatus further comprises:
[0042] The judging unit is configured to judge the device type based on the communication object mounted on the global object after determining that the native application end is mounted on the communication object on the global object according to the device type standard.
[0043] In another embodiment, the determining unit includes:
[0044] An acquisition module, configured to acquire, based on the communication method in the communication object mounted on the global object, embedded parameter information formed by mounting the communication method on the global object;
[0045] The judgment module is used to judge the device type by using the interface type object mapped by the embedded parameter information.
[0046] In another embodiment, the apparatus further comprises:
[0047] A listening unit is used to determine the device type according to the user agent before determining that the native application end mounts the communication object on the global object according to the device type standard, if the communication object is not detected in the global object, and to listen to whether the native application end mounts the communication object corresponding to the device type to the global object.
[0048] In another embodiment, the apparatus further comprises:
[0049] A detection unit, used for detecting whether a completion event sent by the native application end is received before determining that the native application end is mounted to the communication object on the global object according to the device type standard, wherein the completion event is used to indicate that the native application end has mounted the communication object on the global object and has completed the initialization of the communication object;
[0050] An initialization unit is used to initialize the page logic in the page that needs to interact with the native application end.
[0051] In another embodiment, the initialization unit includes:
[0052] A delivery module, used for placing the code corresponding to at least one page logic in the page that needs to interact with the native application end into the callback array corresponding to the target method;
[0053] The callback module is used to call back the codes corresponding to the page logic in the callback array in sequence through the target method according to the callback array, so as to execute the initialization of the at least one page logic in sequence.
[0054] In another embodiment, the apparatus further comprises:
[0055] A formulation unit, used for formulating a data communication standard in advance for the communication logic involved in the communication between the page and the native application end before initiating a data communication request to the native application end based on the page jump protocol;
[0056] The communication data carries information of a multi-level protocol data structure that complies with a pre-established target data communication standard.
[0057] In another embodiment, the apparatus further comprises:
[0058] The receiving unit is used to receive the processing result obtained by the native application end after processing the target data in the communication data according to the target data communication standard after initiating a data communication request to the native application end based on the page jump protocol.
[0059] In another embodiment, the receiving unit specifically includes: receiving the processing result obtained by the native application end in the following manner:
[0060] Combining the information in the first level structure and the second level structure in the information conforming to the multi-level protocol data structure, and searching a pre-established data communication standard table according to the combination result;
[0061] When the target data communication standard corresponding to the combination result exists in the data communication standard table, the target data is processed according to the operation corresponding to the target data communication standard to obtain the processing result, wherein the target data is located in the third level structure in the information that conforms to the multi-level protocol data structure.
[0062] In another embodiment, the apparatus further comprises:
[0063] an updating unit, configured to update a data communication standard for a communication logic involved in the communication between the page and the native application upon receiving an error identifier returned by the native application, wherein the error identifier is used to indicate that the communication between the page and the native application does not support a data communication standard corresponding to the combination result;
[0064] A transmission unit is used to transmit updated communication data from the page to the native application end based on the updated data communication standard, and initiate an updated data communication request to the native application using a page jump protocol, so that the native application end processes the data in the updated communication data according to the updated data communication standard.
[0065] In another embodiment, the apparatus further comprises:
[0066] A display unit is used to receive the game data generated by the business end in response to the call of the native application end when the communication data indicates a request to obtain game data from the business end, after initiating a data communication request to the native application end based on the page jump protocol, and display the game data in the page.
[0067] In another embodiment, the apparatus further comprises:
[0068] A supplementary unit is used to expand the communication logic involved in the communication between the page and the native application end, and / or with the business end through a supplementary protocol interface before initiating a data communication request to the native application end based on the page jump protocol, and to formulate a new data communication standard based on the expanded communication logic, so that the native application end and / or the business end can perform corresponding processing on the data transmitted by the page according to the new communication standard.
[0069] According to a third aspect of the present application, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in the first aspect when executing the computer program.
[0070] According to a fourth aspect of the present application, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0071] By means of the above technical scheme, the present application provides a page communication method, device and equipment. Compared with the current existing page communication method that needs to call different interfaces according to the operating system, the present application aggregates the communication methods in the communication objects mounted on the global object and exposes the unified interface object. It can determine the interactive self-protocol of the communication page and perform compatibility processing for different operating systems. Further, according to the detected data communication needs triggered by the unified interface object, a data communication request is initiated to the native application end based on the page jump protocol, so that the native application end calls the communication object and obtains the communication data matching the target callback identifier from the queue pool according to the target callback identifier carried in the data communication request. It can be compatible with different operating systems and can use the native application end to realize information acquisition of the page communication process, thereby realizing communication between the page and the native application end and improving the data acquisition efficiency of the page communication process.
[0072] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0074] Figure 1 A schematic diagram of a flow chart of a page communication method provided in an embodiment of the present application is shown;
[0075] Figure 2 A schematic diagram showing a flow chart of another page communication method provided in an embodiment of the present application is shown;
[0076] Figure 3 A schematic diagram of the structure of a page communication device provided in an embodiment of the present application is shown;
[0077] Figure 4 A schematic diagram showing the structure of another page communication device provided in an embodiment of the present application is shown;
[0078] Figure 5 A schematic diagram of the device structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0079] Now the content of the present invention will be discussed with reference to several exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and thus implement the content of the present invention, rather than implying any limitation on the scope of the present invention.
[0080] As used herein, the term "including" and variations thereof are to be interpreted as open-ended terms meaning "including but not limited to." The term "based on" is to be interpreted as "based, at least in part, on." The terms "one embodiment" and "an embodiment" are to be interpreted as "at least one embodiment." The term "another embodiment" is to be interpreted as "at least one other embodiment."
[0081] For the web page view on the application side, the h5 page used in the embedded web page view of the game, because the page view cannot call the relevant method object, the h5 page needs to communicate with the native application to transfer page data to each other. In the related technology, the interaction between the h5 page and the native application can use the bridge mode as a communication bridge, and each time it is developed separately, so that the URL link triggered by the user on the h5 page can be captured by the native application, and then the native application analyzes and processes it and executes the data callback of the h5 page to realize the two-way communication between the h5 page and the native application. However, due to the inconsistent standards for the use of the bridge mode by the h5 page embedded in the application, different h5 pages need to be made for terminals with different operating systems, and it is necessary to determine the operating system corresponding to the h5 page, and call different interfaces according to the operating system, which makes the page's compatibility with the operating system communication poor, affecting the data acquisition efficiency of the page communication process.
[0082] In order to solve this problem, this embodiment provides a page communication method, such as Figure 1 As shown, the method is applied to the page side and includes the following steps:
[0083] 101. Determine the communication object mounted on the global object by the native application according to the device type standard.
[0084] In this embodiment, when a page is opened on a client (such as a web terminal, or an application terminal with an embedded page), the page needs to interact with the native application, such as obtaining current user information, etc. The specific process of interaction between the page terminal and the native application is equivalent to interacting with the development language used by the native application based on the script file in the front end of the page, and in the process of interaction between the script file and the native application.
[0085] It is understandable that the native application has an interface for calling the script file on the page side, which can be mounted to the object on the page at any time (for example, by mounting the object on the window), and then obtain the calling information on the page side, while the script file does not have the natural ability to call the native application. In the above embodiment, the native application can mount the communication object on the global object, and realize the data communication between the page side and the native application based on the exposed unified interface object and the communication object mounted on the global object. The communication object is used to place the communication data when the page communicates with the native application in the queue pool, and set a callback identifier (for example, callbackid) for the communication data. The callback identifier is equivalent to the unique identifier of the communication data. The callback identifier can be used to accurately obtain the corresponding communication data from the queue pool in the subsequent page communication process. For example, the queue pool stores communication data A1 as album data, communication data A2 as chat records, and communication data A3 as page status. The chat records can be obtained using the callback identifier A2.
[0086] The execution subject of this embodiment can be a page communication device or equipment, which can be configured on the page side. During the communication process between the page side and the native application, the page side can use the communication object mounted on the global object to identify different operating system environments. After registering the bridge mode (i.e. bridge, also called bridge object, such as the communication object in this embodiment), all communication methods are mounted on the communication object. Although the name of the communication object may be different for different operating systems, for the user of the page development side, it is only necessary to call the method provided by the page development side (i.e. the above-mentioned unified interface object), and the actual communication process occurs on the communication object, and then the communication object mounted on the web page view (i.e. window) by the native application during initialization according to different operating systems (or device types) is used to communicate between the page side and the native application side, avoiding calling different interfaces for pages under different device types, and being able to more conveniently realize flexible interaction between script files and native applications, thereby improving the flexibility and security of the development process.
[0087] 102. Aggregate the communication methods in the communication objects mounted on the global object and expose a unified interface object.
[0088] In actual application scenarios, the interaction process between the native application side and the page side requires the use of a bridge mode. Here, the bridge mode (i.e., the communication object mentioned above) is equivalent to an auxiliary tool for the page side to communicate with the native application. Since the page side cannot directly call the API in the native application side, the bridge mode is needed to complete the data interaction between the page side and the native application, and further, the page side can receive the data information obtained by the native application side after executing the corresponding operation, and then display rich data information on the page side.
[0089] When the native application end is initialized, the bridge code can be dynamically injected, and the bridge object is initialized, thereby completing the mounting of the bridge object into the window. The bridge object includes but is not limited to the above-mentioned communication object. Optionally, when the device type is the iOS end, the communication object can use the WebViewJavascriptBridge object under the window, when the device type is the Android end, the WVJBCallbacks object can be used, and when the device type is the Android simulator of the PC end, the WVJBCallbacks object can be used. Through this communication object, the page end can evoke the interactive controls with the native application, or even jump to other native application pages, and then through interaction, the device status, network status, user information, etc. of the native application at this time can be obtained. The native application can also evoke the desired operation according to the demand through the state of the page at this time. The communication object usually contains a communication method, for example, a communication method for determining whether a third-party application is installed, obtaining network information, etc. In order to be compatible with different operating systems, the page end can be adapted in the code logic, and the communication method is aggregated and then exposed to a unified interface object, so that the interactive logic in the page can call the unified interface object for different operating systems.
[0090] 103. According to the detected data communication demand triggered by the unified interface object, a data communication request is initiated to the native application end based on a page jump protocol.
[0091] Among them, the data communication request is initiated based on the page jump protocol. The data communication request can be initiated based on the scheme or iframe-scheme (for example, in the lower version of Android), or other custom protocols can be used. The browser can initiate a data acquisition request to the native application through the page jump protocol. The native application intercepts and analyzes the data acquisition request to realize the communication from the page end to the native application.
[0092] In an embodiment of the present invention, when the business end needs to execute a certain page function, the business end can trigger a data communication request through a unified interface object, and then the page will initiate a data communication request to the native application based on the corresponding data communication request and the page jump protocol. Specifically, in the process of initiating a data communication request to the native application, the callback identifier can be embedded in the data acquisition request and sent to the native application. Since the callback identifier is the unique identifier of the communication data, the native application can obtain the communication data matching the callback identifier from the queue pool by calling the communication object. Optionally, the page jump protocol here can be a web link, which is designed to facilitate native applications to call each other. In actual development, the native application will not register the corresponding page jump protocol, but the front-end page will trigger the page jump protocol in some way, and then send the data acquisition request carrying the callback identifier to the native application. The native application calls the communication object to obtain the corresponding communication data transmitted by the page, and performs specific operations according to the data communication standard by parsing the communication data.
[0093] During page communication, the front-end page can define the data structure of page transmission according to different data transmission requirements. Here, the page end and the native application maintain a set of protocols (i.e., data communication standards) to implement different page functions. Different data communication standards can correspond to different data structures.
[0094] Furthermore, in order to realize customized page development, the data communication standards between the page and the native application can also be customized to undertake different customized functions, such as custom navigation headers, universal sharing, universal encryption functions and other encapsulations, to solve the modularization of data channel functions and improve the flexibility of page development.
[0095] Furthermore, in order to realize customized development of new functions for the page, a supplementary protocol interface can also be opened, and a protocol agreement can be made with the application connected to the software toolkit during use. After the communication protocol standard is determined, a customized interface can be opened. After different games or applications are connected to the software toolkit (SDK), they can add customized sub-protocols according to their own business needs to handle specific business processes, such as the transparent transmission of barrage information in the live broadcast room and the transparent transmission of gift information in the live broadcast room.
[0096] The page communication method provided in the embodiment of the present application is compared with the current existing page communication method that needs to call different interfaces according to the operating system. The present application aggregates the communication methods in the communication objects mounted on the global object and then exposes the unified interface object. It can determine the interactive self-protocol of the communication page and perform compatibility processing for different operating systems. Further, according to the detected data communication needs triggered by the unified interface object, a data communication request is initiated to the native application end based on the page jump protocol, so that the native application end calls the communication object and obtains the communication data matching the target callback identifier from the queue pool according to the target callback identifier carried in the data communication request. It is compatible with different operating systems and can use the native application end to realize information acquisition in the page communication process, thereby realizing communication between the page and the native application end and improving the data acquisition efficiency of the page communication process.
[0097] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, this embodiment provides another page communication method, such as Figure 2 As shown, the method includes:
[0098] 201. Detect whether a completion event sent by the native application is received.
[0099] Among them, the completion event is used to indicate that the native application has mounted the communication object to the global object and completed the initialization of the communication object (that is, the communication object can be called). Since the native application will mount the communication object to the global object according to the device type standard during the initialization process, once the native application is initialized, it will send a completion event to the page end to notify the page end.
[0100] It can be understood that the communication object serves as a communication bridge between the native application code and the page script code. In addition to the method of calling the handler, the communication object also includes a method of registering a local script so that the page side can register some methods for the native application to call, and also includes calling or calling back the page side method so that the native application can call back or call the page side through the method. Normally, the demand for page data transmission is basically triggered by business needs after the page is fully loaded. When the page is loaded and the bridge mode is initialized, the page side initiates a request to the native application and obtains basic information as needed. However, sometimes because the page is loaded too fast, the communication object of the corresponding operating system has not had time to be mounted on the global object by the native application, resulting in an error. Here, it is possible to determine whether the native application has been initialized by detecting whether the completion event sent by the native application side is received. If so, in response to the event reminder of the completion of the native application initialization, the page side and the native application are executed using the bridge mode. Otherwise, continue to monitor whether the completion event is received. Specifically in actual applications, the completion event can be a nativeToJS method. When the native application is initialized, the nativeToJS method added by the page on the application system is actively called to inform the page end that the bridge mode is currently available. After receiving the notification that the bridge mode is available, the page executes the initialization process.
[0101] It should be noted that when the native application sends a completion event to the page, if the page receives the completion event, it will give the native application a corresponding feedback to remind it of the initialization completion event. If the native application does not receive the initialization completion event reminder sent by the page, it will continue to send completion events to the page.
[0102] 202. If yes, initialize the page logic in the page that needs to interact with the native application end.
[0103] In an embodiment of the present invention, when the page determines that the initialization of the native application is completed, specifically during the process of initializing the page logic in the page that needs to interact with the native application end, the code corresponding to at least one page logic in the page that needs to interact with the native application end can be placed in the callback array corresponding to the target method, and further according to the callback array, the code corresponding to the page logic in the callback array is called back in sequence through the target method to execute the initialization of at least one page logic in sequence. For example, the code logic that the page needs to interact with the native application end includes page logic A1-A5, and the code of page logic A1-A5 is placed in the callback array, so that the code of page logic A1-A5 is called back in sequence through the target method to realize the initialization of page logic A1-A5.
[0104] Specifically in the actual application process, the target method can be the ready method. By adding the ready method, the code logic that needs to be initialized is placed in the callback of the ready method. The code logic that needs to be initialized here is the page code that requires the native application to interact, and the logic of page information configuration. If the character information embedded in the game and the page logic perform page initialization configuration after the server information is obtained, ready can be called back multiple times, and the callbacks are maintained by a callback array.
[0105] 203. If the communication object is not detected in the global object, determine the device type according to the user agent, and monitor whether the native application has mounted the communication object corresponding to the device type into the global object.
[0106] It can be understood that the process from step 201 to step 202 is mainly for the native application that has been initialized and the communication object has been mounted to the global object of the page. At this time, the communication object can be detected in the global object. If the native application has not been initialized, that is, the situation described in step 203, the communication object will not be detected in the global object. At this time, the device type can be determined based on the user agent, and the native application end can be monitored to see whether it mounts the communication object corresponding to the device type to the global object.
[0107] Specifically, in the process of determining the device type based on the user agent (such as useragent), since different device models will carry different attribute values in the user agent, the attribute value can reflect the model environment (i.e., device type) where the native application is located. Further, on the page side, the model environment where the native application is located can be identified based on the attribute value in the user agent, thereby obtaining the corresponding interface type based on the model environment. The interface type can be the interface type corresponding to different model environments such as iOS, Android, and Android emulator.
[0108] 204. Determine the communication object mounted on the global object by the native application according to the device type standard.
[0109] It can be understood that the bridge mode serves as a communication bridge between native application code and script code. Native applications can mount the communication object of the corresponding device standard into the global object so that subsequent native applications can use the mounted communication object to implement page communication. Here, the communication object in the global object not only includes the method of calling the handler, but also includes the method of registering the local script, so that the page side registers some methods for the native application to call through the method, and can also include calling or calling back the page side method, so that the native application can call back or call the page side through the method.
[0110] 205. Determine a device type based on the communication object mounted on the global object.
[0111] In the embodiment of the present invention, the communication objects mounted to the global object by the native application terminals of different device types are different. For example, the native application of the iOS device type uses the WebViewJavascriptBridge communication object, the native application of the Android device type uses the WVJBCallbacks communication object, and the native application of the lower version Android device type uses the iframe-scheme method to actively trigger the WVJBCallbacks response. Here, the device type can be judged based on the communication object mounted on the global object.
[0112] Furthermore, the native applications of different operating systems have different method names and usage methods mounted on global objects, and the initialization time is also different. It is necessary to determine the device type and then process these points uniformly. Specifically, based on the communication method in the communication object mounted on the global object, the embedded parameter information formed by the communication method mounted on the global object can be obtained. Here, the embedded parameter information is equivalent to the parameter information mounted on the global object by different operating systems. The parameter information at least includes the interface type, method information, call time, etc. of different operating systems, and then the interface type object mapped by the embedded parameter information is used to determine the device type.
[0113] 206. Aggregate the communication methods in the communication objects mounted on the global object and expose a unified interface object.
[0114] In the embodiment of the present invention, since the parameter information of different operating systems corresponds to the interface type of the corresponding operating system, the unified interface object here is only used as a compatible interface exposed on the page, so that in the subsequent calling process, the interface type can be selectively called according to business needs through the unified interface object, for example, the interface for monitoring whether the bridge is initialized, the getUserInfo interface, the openInBroswer interface and the uploadImg interface can be called. Among them, in the Android operating system, the Android native application will notify the page end in the form of an event; while in the iOS operating system, the page end polls to determine whether the bridge object exists. The getUserInfo interface can call different methods provided by different native applications and obtain callbacks; some of the exposed interfaces will only be called when they are needed, for example, the openInBroswer interface for opening a page in an external browser, and the uploadImg interface for uploading pictures through native applications.
[0115] 207. Preparing a data communication standard for the communication logic involved in the communication between the page and the native application end;
[0116] In order to undertake different page functions, the page side can pre-formulate its own data communication standards for the communication logic involved in the communication between the page and the native application side. The communication logic here can be the communication needs triggered by the business side in actual applications, such as obtaining game data, calling the camera, browsing the album, etc.
[0117] Specifically, a corresponding multi-level protocol data structure can be formulated for different data communication standards, and when the page end transmits communication data to the native application end, the communication data carries information of the multi-level protocol data structure that meets the pre-established target data communication standard, so that different data communication standards can be represented by agreeing on different multi-level protocol data structures, and different data communication standards correspond to different page functions, so that a variety of different functions can be realized on the page end. Among them, the page end can place the multi-level information that meets the data communication standard in the communication data, so that the native application can process the communication data according to the data communication standard after obtaining the communication data according to the data communication request. In the multi-layer protocol data structure, commands with a master-slave relationship can be defined, for example, the first layer protocol structure is defined as the main command, and the second protocol structure is defined as the sub-command. At this time, the main command needs to be executed before the sub-command can be executed. Commands with a parallel relationship can also be defined in the multi-layer protocol structure, for example, the first layer protocol structure is defined as command A, and the second layer protocol structure is defined as command B, and at this time, command A and command B need to be executed simultaneously.
[0118] Furthermore, in order to improve the flexibility of page functions, a method for customizing page functions can also be provided. In this case, the communication logic involved in the communication between the page and the native application end, and / or the business end can be expanded through a supplementary protocol interface, and a new data communication standard can be formulated based on the expanded communication logic, so that the native application end and / or the business end can perform corresponding processing on the data transmitted by the page according to the new communication standard. Similarly, the new data communication standard is essentially the same as the data communication standard mentioned above, and can also have a multi-layer protocol data structure, and the page end can transmit communication data that complies with the new data communication standard to the native application end, and then when the page communicates, the native application end can perform specific operations (such as processing the target data in the communication data) according to the new data communication standard.
[0119] 208. Initiate a data communication request to the native application end based on a page jump protocol according to the detected data communication demand triggered by the unified interface object.
[0120] The format of the in-page jump protocol may be pre-defined on the page side and the native application side.
[0121] It should be noted that for different device models, the native application side captures the page jump protocol in different ways. For the Android operating system, a preset method can be defined, which can respond to the hyperlink button in the page. When a link is triggered, the preset method is called to capture the page jump protocol triggered by all objects. For the iOS operating system, the native application layer can be notified through the delegate pointer function, so that the native application can capture the page jump protocol triggered by all objects on the page side.
[0122] In an embodiment of the present invention, after the native application captures the page jump protocol, it first calls the communication object and obtains the communication data matching the target callback identifier from the queue pool according to the target callback identifier carried in the data communication request, and then performs corresponding processing and returns the processing result according to the data communication standard corresponding to the communication data in the pre-defined data communication standard.
[0123] 209. Receive a processing result obtained after the native application end processes the target data in the communication data according to the target data communication standard.
[0124] Among them, the processing result is the result formed after the native application end processes the target data in the communication data. Specifically, the processing result obtained by the native application end in the following manner can be received. Since the data communication standard has a multi-level protocol data structure, the information in the first level structure and the second level structure of the information that conforms to the multi-level protocol data structure can be first combined, and a pre-established data communication standard table is searched according to the combination result. The data communication standard table records the data communication standards pre-agreed by the page end and the native application end. Each data communication standard has a corresponding multi-level protocol data structure. Further, when there is a target data communication standard corresponding to the combination result in the data communication standard table, the target data is processed according to the operation indicated by the combination result to obtain the processing result, wherein the target data is located in the third level structure in the multi-level protocol data structure. For example, information A of the first hierarchical structure and information B of the second hierarchical structure are combined to form a combination result C. That is to say, after the native application obtains the communication data, it combines information A and information B to form a combination result C, which does not mean that the operation can be performed directly according to the combination result C. Instead, it is also necessary to combine the data communication standard table to determine whether the data communication standard corresponding to the combination result C is agreed upon between the page end and the native application end. If so, the corresponding operation is performed according to the combination result C.
[0125] For example, the page end and the native application end agree on multiple data communication standards, and the multiple data communication standards include a target data communication standard. The multi-level protocol data structure corresponding to the target data communication standard consists of three parts: a first level structure, a second level structure, and a third level structure. Among them, the first level structure is used to carry commands, the second level structure is used to carry sub-commands, and the third level structure is used to carry specific data (such as the above-mentioned target data). The communication data transmitted from the page end to the native application end includes information that conforms to the multi-level protocol data structure, and the information in the first level structure, the second level structure, and the third level structure are respectively: A, B, and D. After the native application end obtains the communication data in the manner described above in this embodiment, the information in the first level structure and the second level structure are combined by A and B to obtain C, and the data communication standard table is searched according to C. After finding the data communication standard corresponding to C, the corresponding operation is performed according to the data communication standard. For example, there is a data communication standard corresponding to C in the data communication table: calling the camera to take a photo and upload it. The native application then executes the operation of calling the camera to take a photo and upload it, and uploads the photo to the URL corresponding to the information in the third hierarchical structure (ie, D).
[0126] In actual application scenarios, there may be abnormal situations when the native application side processes the communication data. At this time, the native application side does not return the processing result, but returns an error identifier. Specifically, when the error identifier returned by the native application side is received, the error identifier is used to indicate that the communication between the page and the native application side does not support the data communication standard corresponding to the combination result. At this time, it means that the processing result of the communication data cannot be returned based on the original data communication standard. A new data communication standard is further formulated for the communication logic involved in the communication between the page and the native application, and updated to the data communication standard table; the page side can transmit new communication data that meets the new data communication standard to the native application side, and the communication object places the new communication data into the queue pool and sets the corresponding callback identifier. The callback identifier corresponding to the new communication data in the queue pool is different from the previous callback identifier. An updated data communication request is initiated to the native application in the form of a page jump protocol, so that the native application side processes the data in the updated communication data according to the updated data communication standard. Since the updated communication data is obtained from the queue pool based on the new callback identifier, the native application side can perform data processing on the updated communication data based on the updated data communication standard.
[0127] In order to facilitate the flexible use of the page by the business end, data communication standards can also be formulated for the page and the business end. At this time, the game data generated by the business end in response to the call of the native application end is received, and the game data is displayed on the page. Specifically for the application scenarios of the business end and the game end, the page end and the game end can specify the data communication standard M. The communication data transmitted by the page end can be communication data that complies with the data communication standard M, and the native application end obtains the communication data based on the data communication request of the page, and further calls the game data according to the data communication standard M corresponding to the communication data, and returns it to the page end, so that the game data called by the native application is displayed on the page end.
[0128] In this embodiment, the page end can formulate data communication standards with the business end. For example, if the page end and the business end need to interact using data communication standard M, the page end will notify the native application end of the request for requesting communication with the business end based on data communication standard M. The native application end will continue to pass it to the business end after identification. After confirmation by the business end, the confirmation result will be returned to the page end through the native application end. At the same time, the native application end will supplement the data communication standard M in the data communication standard table, so that the page end can interact with the business end based on the data communication standard M in the future.
[0129] Further, as Figure 1 and Figure 2 The specific implementation of the method, the embodiment of the present application provides a page communication device, such as Figure 3 As shown, the device includes: a determination unit 31, a processing unit 32, and an initiating unit 33.
[0130] The determination unit 31 may be used to determine the communication object mounted on the global object by the native application end according to the device type standard, wherein the communication object is used to place the communication data when the page communicates with the native application in a queue pool, and set a callback identifier for the communication data;
[0131] The processing unit 32 may be used to aggregate the communication methods in the communication objects mounted on the global object and then expose a unified interface object;
[0132] The initiating unit 33 can be used to initiate a data communication request to the native application end based on the page jump protocol according to the data communication demand detected and triggered by the unified interface object, so that the native application end calls the communication object and obtains the communication data matching the target callback identifier from the queue pool according to the target callback identifier carried in the data communication request.
[0133] The page communication device provided by the embodiment of the present invention is compared with the current page communication method that needs to call different interfaces according to the operating system. The present application aggregates the communication methods in the communication object mounted on the global object and then exposes the unified interface object. It can determine the interactive self-protocol of the communication page and perform compatibility processing for different operating systems. Further, according to the detected data communication needs triggered by the unified interface object, a data communication request is initiated to the native application end based on the page jump protocol, so that the native application end calls the communication object and obtains the communication data matching the target callback identifier from the queue pool according to the target callback identifier carried in the data communication request. It can be compatible with different operating systems and can use the native application end to realize information acquisition of the page communication process, thereby realizing communication between the page and the native application end and improving the data acquisition efficiency of the page communication process.
[0134] In specific application scenarios, such as Figure 4 As shown, the device also includes:
[0135] The determination unit 34 may be configured to determine the device type based on the communication object mounted on the global object after determining that the native application end is mounted on the communication object on the global object according to the device type standard.
[0136] In specific application scenarios, such as Figure 4 As shown, the judging unit 34 includes:
[0137] The acquisition module 341 may be used to acquire embedded parameter information formed by mounting the communication method on the global object based on the communication method in the communication object mounted on the global object;
[0138] The determination module 342 may be used to determine the device type by using the interface type object mapped by the embedded parameter information.
[0139] In specific application scenarios, such as Figure 4 As shown, the device also includes:
[0140] The listening unit 35 can be used to determine the device type according to the user agent before determining that the native application end mounts the communication object on the global object according to the device type standard. If the communication object is not detected in the global object, the native application end mounts the communication object corresponding to the device type into the global object.
[0141] In specific application scenarios, such as Figure 4 As shown, the device also includes:
[0142] The detection unit 36 may be used to detect whether a completion event sent by the native application end is received before determining that the native application end mounts the communication object on the global object according to the device type standard, wherein the completion event is used to indicate that the native application end has mounted the communication object on the global object and has completed the initialization of the communication object;
[0143] The initialization unit 37 may be configured to initialize the page logic in the page that needs to interact with the native application end.
[0144] In specific application scenarios, such as Figure 4 As shown, the initialization unit 37 includes:
[0145] The delivery module 371 may be used to place the code corresponding to at least one page logic in the page that needs to interact with the native application end into the callback array corresponding to the target method;
[0146] The callback module 372 may be used to call back the codes corresponding to the page logic in the callback array in sequence through the target method according to the callback array, so as to execute the initialization of the at least one page logic in sequence.
[0147] In specific application scenarios, such as Figure 4 As shown, the device also includes:
[0148] The formulation unit 38 may be used to formulate a data communication standard for the communication logic involved in the communication between the page and the native application end before initiating a data communication request to the native application end based on the page jump protocol;
[0149] The communication data carries a multi-level protocol data structure that complies with a pre-established target data communication standard.
[0150] In a specific application scenario, the device further includes:
[0151] The receiving unit 39 may be configured to receive a processing result obtained by the native application end after processing the target data in the communication data according to the target data communication standard after initiating a data communication request to the native application end based on the page jump protocol.
[0152] In a specific application scenario, the receiving unit 39 may specifically include: receiving the processing result obtained by the native application end in the following manner:
[0153] Combining information in the first level structure and the second level structure in the multi-level protocol data structure, and searching a pre-established data communication standard table according to the combination result;
[0154] When the target data communication standard corresponding to the combination result exists in the data communication standard table, the target data is processed according to the operation indicated by the combination result to obtain the processing result, wherein the target data is located in the third level structure in the multi-level protocol data structure.
[0155] In a specific application scenario, the device further includes:
[0156] An updating unit, which may be used to update a data communication standard for a communication logic involved in the communication between the page and the native application upon receiving an error identifier returned by the native application, wherein the error identifier is used to indicate that the communication between the page and the native application does not support a data communication standard corresponding to the combination result;
[0157] The transmission unit can be used to transmit updated communication data from the page to the native application end based on the updated data communication standard, and initiate an updated data communication request to the native application using a page jump protocol, so that the native application end processes the data in the updated communication data according to the updated data communication standard.
[0158] In another embodiment, the apparatus further comprises:
[0159] The display unit can be used to receive the game data generated by the business end in response to the call of the native application end when the communication data indicates a request to obtain game data from the business end, after initiating a data communication request to the native application end based on the page jump protocol, and display the game data in the page.
[0160] In another embodiment, the apparatus further comprises:
[0161] The supplementary unit can be used to expand the communication logic involved in the communication between the page and the native application end, and / or with the business end through the supplementary protocol interface before initiating a data communication request to the native application end based on the page jump protocol, and formulate a new data communication standard based on the extended communication logic, so that the native application end and / or the business end can perform corresponding processing on the data transmitted by the page according to the new communication standard.
[0162] It should be noted that for other corresponding descriptions of the functional units involved in the page communication device provided in this embodiment, reference can be made to Figure 1-Figure 2 The corresponding description in will not be repeated here.
[0163] Based on the above Figure 1-Figure 2The method shown in the embodiment of the present application accordingly provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned Figure 1-Figure 2 Page communication method shown.
[0164] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0165] Based on the above Figure 1-Figure 2 The method shown, and Figure 3-Figure 4 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides a physical device for page communication, which can be a computer, a smart phone, a tablet computer, a smart watch, a server, or a network device, etc. The physical device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1-Figure 2 Page communication method shown.
[0166] Optionally, the physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0167] In an exemplary embodiment, see Figure 5 The physical device includes a communication bus, a processor, a memory and a communication interface, and may also include an input / output interface and a display device, wherein each functional unit can communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the painting mounting method in the above embodiment.
[0168] Those skilled in the art will appreciate that the physical device structure for page communication provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0169] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the physical device for the store search information processing, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the physical device for information processing.
[0170] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by hardware. By applying the technical solution of the present application, compared with the current existing methods, the present application initiates a data communication request to the native application end based on the page jump protocol according to the data communication demand detected and triggered by the unified interface object, so that the native application end calls the communication object and obtains the communication data matching the target callback identifier from the queue pool according to the target callback identifier carried in the data communication request. It can be compatible with different operating systems and can use the native application end to realize information acquisition of the page communication process, thereby realizing the communication between the page and the native application end, and improving the data acquisition efficiency of the page communication process.
[0171] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.
[0172] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.
Claims
1. A page communication method, It is characterized in that include: Determine a communication object mounted on the global object by the native application end according to the device type standard, wherein the communication object is used to place communication data when the page communicates with the native application in a queue pool, and set a callback identifier for the communication data; Aggregate the communication methods in the communication object mounted on the global object and then expose a unified interface object; Initiate a data communication request to the native application end based on a page jump protocol according to the detected data communication demand triggered by the unified interface object, so that the native application end calls the communication object and obtains communication data matching the target callback identifier from the queue pool according to the target callback identifier carried in the data communication request, wherein the communication data carries information of a multi-level protocol data structure that complies with a pre-established target data communication standard; After initiating a data communication request to the native application end based on the page jump protocol, receiving the processing result obtained after the native application end processes the target data in the communication data according to the target data communication standard, including: receiving the processing result obtained by the native application end in the following manner: combining the information in the first hierarchical structure and the second hierarchical structure in the information that conforms to the multi-level protocol data structure, and searching a pre-defined data communication standard table according to the combination result; when the target data communication standard corresponding to the combination result exists in the data communication standard table, processing the target data according to the operation corresponding to the target data communication standard to obtain the processing result, wherein the target data is located in the third hierarchical structure in the information that conforms to the multi-level protocol data structure.
2. The method according to claim 1, It is characterized in that After determining that the native application end is mounted on the communication object on the global object according to the device type standard, the method further includes: judging the device type based on the communication object mounted on the global object.
3. The method according to claim 2, It is characterized in that Determining the device type based on the communication object mounted on the global object specifically includes: Based on the communication method in the communication object mounted on the global object, acquiring embedded parameter information formed by mounting the communication method on the global object; The device type is determined by using the interface type object mapped by the embedded parameter information.
4. The method according to claim 1, It is characterized in that Before determining that the native application end is mounted to the communication object on the global object according to the device type standard, the method further includes: If the communication object is not detected in the global object, the device type is determined according to the user agent, and the native application is monitored to see whether the communication object corresponding to the device type is mounted in the global object.
5. The method according to claim 1, It is characterized in that Before determining that the native application end is mounted to the communication object on the global object according to the device type standard, the method further includes: Detecting whether a completion event sent by the native application end is received, wherein the completion event is used to indicate that the native application end has mounted the communication object on the global object and has completed the initialization of the communication object; If so, the page logic in the page that needs to interact with the native application end is initialized.
6. The method according to claim 5, It is characterized in that Initialize the page logic in the page that needs to interact with the native application end, specifically including: Put the code corresponding to at least one page logic in the page that needs to interact with the native application end into the callback array corresponding to the target method; According to the callback array, the codes corresponding to the page logic in the callback array are called back in sequence by the target method, so as to execute the initialization of the at least one page logic in sequence.
7. The method according to any one of claims 1 to 6, It is characterized in that Before initiating a data communication request to the native application end based on the page jump protocol, the method further includes: A data communication standard is formulated in advance for the communication logic involved in the communication between the page and the native application end.
8. The method according to claim 1, It is characterized in that The method further comprises: Upon receiving an error identifier returned by the native application end, wherein the error identifier is used to indicate that the communication between the page and the native application end does not support the data communication standard corresponding to the combination result, updating the data communication standard for the communication logic involved in the communication between the page and the native application; Based on the updated data communication standard, the updated communication data is transmitted from the page to the native application end, and an updated data communication request is initiated to the native application using a page jump protocol, so that the native application end processes the data in the updated communication data according to the updated data communication standard.
9. The method according to any one of claims 1 to 6, It is characterized in that When the communication data indicates a request to obtain game data from the service end, after initiating a data communication request to the native application end based on the page jump protocol, the method further includes: The game data generated by the business end in response to the call of the native application end is received, and the game data is displayed on the page.
10. The method according to any one of claims 1 to 6, It is characterized in that Before initiating a data communication request to the native application end based on the page jump protocol, the method further includes: The communication logic involved in the communication between the page and the native application end, and / or the business end is expanded through a supplementary protocol interface, and a new data communication standard is formulated based on the expanded communication logic, so that the native application end and / or the business end can perform corresponding processing on the data transmitted by the page according to the new communication standard.
11. A page communication device, It is characterized in that include: A determination unit, used to determine a communication object mounted on a global object by a native application end according to a device type standard, wherein the communication object is used to place communication data when a page communicates with the native application into a queue pool, and to set a callback identifier for the communication data; A processing unit, configured to aggregate the communication methods in the communication objects mounted on the global object and then expose a unified interface object; an initiating unit, configured to initiate a data communication request to the native application end based on a page jump protocol according to a data communication demand detected to be triggered by the unified interface object, so that the native application end calls the communication object and obtains communication data matching the target callback identifier from the queue pool according to the target callback identifier carried in the data communication request, wherein the communication data carries information of a multi-level protocol data structure that complies with a pre-established target data communication standard; After initiating a data communication request to the native application end based on the page jump protocol, receiving the processing result obtained after the native application end processes the target data in the communication data according to the target data communication standard, including: receiving the processing result obtained by the native application end in the following manner: combining the information in the first hierarchical structure and the second hierarchical structure in the information that conforms to the multi-level protocol data structure, and searching a pre-defined data communication standard table according to the combination result; when the target data communication standard corresponding to the combination result exists in the data communication standard table, processing the target data according to the operation corresponding to the target data communication standard to obtain the processing result, wherein the target data is located in the third hierarchical structure in the information that conforms to the multi-level protocol data structure.
12. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the page communication method according to any one of claims 1 to 10 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the page communication method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Device and method for JavaScript native interface calling conducted by crossing mobile operating system platform
CN104461575A
Native data acquisition method, server, mobile terminal and storage medium
CN108762956A
Method for data interaction between JavaScript and native APP
CN109976831A
Systems and methods for cross platform information exchange mechanism for integrating web-based components with a native application
US10296298B1
