Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for interaction between h5 page and native app based on custom protocol

A custom protocol and page technology, applied in the computer field, can solve problems such as reducing interaction failure, inconvenient error checking, and interaction failure, so as to improve development efficiency, reduce repeated code, and improve reliability

Active Publication Date: 2021-11-16
叮当快药科技集团有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, when there is a problem with any custom protocol or corresponding connection bridge file, it will cause the interaction to fail
Moreover, the custom protocol and the corresponding connection bridge file of each H5 page must be developed separately, which will generate a lot of redundancy and duplication of code, and it is not convenient to perform error checking on each custom protocol and the corresponding connection bridge file
[0010] Therefore, it is necessary to develop a new technology to solve the problem of inconvenient error checking, avoid duplication of code as much as possible, and reduce the probability of interaction failure

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for interaction between h5 page and native app based on custom protocol
  • Method and device for interaction between h5 page and native app based on custom protocol
  • Method and device for interaction between h5 page and native app based on custom protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The present invention will be further described in detail below in conjunction with the accompanying drawings, so that those skilled in the art can implement it with reference to the description.

[0044] It should be understood that terms such as "having", "comprising" and "including" as used herein do not entail the presence or addition of one or more other elements or combinations thereof.

[0045] First a terminology explanation:

[0046] APP: the application running on the mobile phone

[0047] OS: mobile operating system

[0048]Webkit: mobile browser kernel

[0049] WebView: A module provided by the mobile operating system for the APP to be embedded in the browser

[0050] The present invention belongs to the technical field of hybrid development of original APP and H5 page. The mobile phone APP is developed based on the mobile phone operating system OS. At present, the mobile phone APP is mainly based on two systems of Android and IOS. We can use java / flutter...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for interacting between an H5 page and a native APP based on a custom protocol, comprising the following steps: setting a unified processing platform of a custom protocol in the native APP to be interacted; when the H5 page needs to interact with the native APP , the javascriptinterface object of the H5 page to be interacted with sends the corresponding custom protocol to the native APP; the unified processing platform of the custom protocol analyzes the corresponding custom protocol, thereby completing the interaction between the H5 page and the native APP APP interactive operation. The invention processes all custom protocols of H5 pages by setting a custom protocol unified processing platform in the native APP, which is beneficial to manage the custom protocols, avoids repeated development, and improves the reliability of interaction. The invention also discloses a device based on the method, an electronic device and a storage medium.

Description

technical field [0001] The present invention relates to the field of computers. More specifically, it involves the interaction method between the H5 page and the native APP based on the custom protocol. Background technique [0002] Nowadays, mobile web applications often need to interact and communicate with native apps (running in webview). For example, WeChat’s jssdk calls some native app functions through the window.wx object. [0003] Mobile web applications usually use H5 pages, and the interaction between H5 pages and native apps is essentially two calls: the native app calls the code of the h5 page, and the h5 page calls the code of the native app. [0004] The call is made with webview. .wx files are components in webview. webkit is the engine of webview. The calls are mutual, that is to say, the native app calls the code of the h5 page, and in turn the h5 page also calls the code of the native app. Let’s analyze the method of two-way calling: [0005] APP is t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/958G06F8/38G06F9/451
CPCG06F8/38G06F9/451G06F16/958
Inventor 荣承壮祝晨明曹传欢杨净霖
Owner 叮当快药科技集团有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products