Interaction method between web page and native application, electronic device and storage medium

By loading a pre-defined bridging file into a web container and injecting native functionality, a unified interaction method between web pages and native applications is achieved. This solves the problems of code redundancy and maintenance difficulties in the mixed development of H5 and Weex technologies, improves interaction efficiency, and reduces costs.

CN116414377BActive Publication Date: 2026-07-24MIDEA GROUP CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
MIDEA GROUP CO LTD
Filing Date
2021-12-29
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

In the hybrid development model, the development of H5 technology and Weex technology together has problems such as code redundancy, easy error, difficult maintenance and high cost, resulting in low efficiency when web pages interact with native applications.

Method used

By creating a web container when a web page loads and loading a preset bridging file into it, native functionality is injected into the bridging file, and a unified calling method is defined, enabling adaptation and callback between the web page and the native application, and allowing them to interact in a unified manner.

Benefits of technology

This enables web pages developed using different technologies to interact with native applications using the same set of calling methods and interfaces, reducing code redundancy, simplifying maintenance, and lowering costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116414377B_ABST
    Figure CN116414377B_ABST
Patent Text Reader

Abstract

The application discloses a web page and native application interaction method, an electronic device and a computer storage medium. The web page and native application interaction method comprises the following steps: when a web page is loaded, a web container is created based on web page configuration information; the web page loads a preset bridge file into the web container; a native application injects a native function into the preset bridge file; the web page calls the native function by using a method defined by the preset bridge file; the native application performs adaptive processing on the native function called by the web page; and the native application calls back the web page based on the native function after the adaptive processing. In this way, the web page developed by different technologies can interact with the native application in a unified manner, so that code redundancy is reduced, maintenance is simplified, and cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Page communication method, device, equipment and storage medium

    CN108874566A

  • Communication hub for information technology (IT) services

    US11093309B1