Unlock instant, AI-driven research and patent intelligence for your innovation.

Communication method, device and storage medium based on jsbridge

A preset method and schedule technology, applied in the computer field, can solve the problems of high implementation cost and low operation efficiency

Active Publication Date: 2020-10-30
BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present disclosure provides a communication method, device and storage medium based on JSBridge, which can overcome the problems of high implementation cost and low operation efficiency in related technologies

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
  • Communication method, device and storage medium based on jsbridge
  • Communication method, device and storage medium based on jsbridge
  • Communication method, device and storage medium based on jsbridge

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of devices and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0068] figure 1 is a flow chart of a method for communicating based on JSBridge shown according to an exemplary embodiment, the method is applied to computer equipment, such as figure 1 As shown, the method includes the following steps:

[0069] 101. Obtain the loading progress of the webpage during the process of loading the webpage through the native layer.

[0070] 102. Load a Javasc...

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 relates to a communication method and device based on JSBridge and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: through awebpage loading process of a native layer, obtaining the loading progress of the webpage; when the loading progress reaches a preset threshold value, loading a Javascript file containing a preset method used for generating a JSBridge; and when the Javascript file is successfully loaded, determining that the JSBridge has been created by calling the preset method, so that the native layer and the Web layer can communicate based on the created JSBridge. According to the method, the JSBridge can be created in advance, it is guaranteed that the native layer and the Web layer can communicate in advance based on the created JSBridge, and the operation efficiency is improved. Moreover, the JSBridge is created in a mode of loading the Javascript file, so that the implementation cost is reduced.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and in particular to a communication method, device and storage medium based on JSBridge. Background technique [0002] The mixed-mode application client has both native functions and web functions, and has been widely used at present. The mixed-mode application client includes the native layer and the Web (World Wide Web) layer. Since the permissions of the Web layer are limited, it is necessary to communicate with the native layer to entrust the native layer to implement certain functions. Therefore, a JSBridge (bridge) needs to be created between the native layer and the Web layer, and the communication between the two is realized based on JSBridge. [0003] Add an invisible iframe (inline frame) element in the first webpage provided by the Web layer, set the URL (Uniform Resource Locator, Uniform Resource Locator) of the second webpage in the iframe element, and include the URL of...

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/955G06F16/958
CPCG06F16/955G06F16/972
Inventor 李振华孙阳宋云路苗威蒋帅
Owner BEIJING DAJIA INTERNET INFORMATION TECH CO LTD