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

Method, electronic device and readable storage medium for realizing interaction between web and native function

A functional and original technology, applied in the computer field, can solve problems such as inconvenient maintenance, redundancy, and inconsistency, and achieve the effect of simplifying maintenance and expanding the scope

Active Publication Date: 2021-03-16
PING AN TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Since the mobile APP (that is, the application software on the mobile terminal) needs to distinguish devices such as android and ios, the security restrictions and communication method standards are different, and the native function modules developed through the sdk follow the routines of their respective iOS / Android systems. The method is called by the outside world or by itself, too many methods are not standardized and not easy to maintain
[0003] In addition, the external app and web call the same native function module in two ways, resulting in redundancy

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, electronic device and readable storage medium for realizing interaction between web and native function
  • Method, electronic device and readable storage medium for realizing interaction between web and native function
  • Method, electronic device and readable storage medium for realizing interaction between web and native function

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0078] Compared with the first embodiment, this embodiment adds several modules used when the page and the interface are registered in the system (middle layer).

[0079] The following takes the registration of the page in this system as an example for specific instructions:

[0080] 1. First encapsulate the chat page into the object ChatVideoViewController and load it into the system.

[0081] 2. Generate an object call address corresponding to the object ChatVideoViewController according to a preset protocol (protocol type: / / instruction type / instruction? parameter 1=value 1¶meter 2=value 2;), for example: local: / / view / Video Chat? callNum=parameter&groupCode=parameter, where local: / / view / indicates the page or value-passing type, view is specifically the command type, and VideoChat is specifically the class. The calling address of this object contains two parameters callNum and groupCode, which can be assigned respectively during conversion. The default parameter valu...

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

Disclosed are a method for realizing web and native function interaction, and an electronic apparatus and a readable storage medium, belonging to the technical field of computers. The method for realizing web and native function interaction, with a native function comprising page calling and interface calling, comprises the following steps: S1, receiving a webpage address sent by a Web browser, and according to a pre-set parsing rule, parsing the webpage address to generate an object or API interface; S2, determining whether the webpage address includes a parameter value, and if so, executing step S3, otherwise, executing step S4; S3, transmitting the parameter value to the object or API interface, so as to generate a corresponding page; and S4, acquiring a default parameter value of the object or API interface, so as to generate the corresponding page. In the present application, a webpage address is converted into a corresponding object or API interface by means of a pre-set parsing rule, such that an App and Web can use the same set of calling standards to call the same native function, simplifying a calling mode and facilitating maintenance.

Description

technical field [0001] The invention relates to the technical field of computers, and relates to a method for realizing the interaction between web and native functions, an electronic device and a readable storage medium. Background technique [0002] Since the mobile APP (that is, the application software on the mobile terminal) needs to distinguish devices such as android and ios, the security restrictions and communication method standards are different, and the native function modules developed through the sdk follow the rules of their respective iOS / Android systems. The method is called by the outside world or by itself, too many methods are not standardized and not easy to maintain. [0003] In addition, the external app and web call the same native function module in two ways, resulting in redundancy. Contents of the invention [0004] The technical problem to be solved by the present invention is to overcome the shortcoming that App and Web need two sets of callin...

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): G06F8/76G06F9/54
CPCG06F8/76G06F9/547G06F9/541G06F9/4484
Inventor 杨帅
Owner PING AN TECH (SHENZHEN) CO LTD