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

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

A web browser and function technology, applied in the computer field, can solve the problems of inconvenient maintenance, redundancy, and difference, and achieve the effect of simplifying maintenance and expanding the scope.

Active Publication Date: 2018-08-03
PING AN TECH (SHENZHEN) CO LTD
View PDF4 Cites 4 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 for realizing web and native function interaction, electronic apparatus and readable storage medium
  • Method for realizing web and native function interaction, electronic apparatus and readable storage medium
  • Method for realizing web and native function interaction, electronic apparatus and readable storage medium

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. Default parameter values ​...

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 realizing web and native function interaction, an electronic apparatus and a readable storage medium, and belongs to the technical field of computers. A native function includes page call and interface call. The method for realizing the web and native function interaction comprises the following steps of S1, receiving a webpage address sent by a Web browser, and according to a preset analysis rule, analyzing the webpage address to generate an object or an API; S2, judging whether the webpage address comprises a parameter value or not, and if yes, executingthe step S3, otherwise, executing the step S4; S3, transmitting the parameter value to the object or the API, thereby generating a corresponding page; and S4, obtaining a default parameter value of the object or the API, thereby generating the corresponding page. Through the preset analysis rule, the webpage address is converted into the corresponding object or API, so that App and Web can use a same set of call standards to call the same native function, a call mode is simplified and the maintenance is easy.

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