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

Method and device for calling native application by HTML5 application

A technology of native application and invocation of instructions, applied in the computer field, can solve problems such as large business intrusion, difficult code logic reuse, affecting development efficiency, etc., to achieve the effect of reuse, avoid intrusion, and improve development efficiency

Active Publication Date: 2020-01-17
BEIJING SANKUAI ONLINE TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present application provides a method and device for calling a native application by an HTML5 application, which solves or at least partially solves the difficulty of code logic reuse and the large intrusion into the business when the HTML5 business application calls the native application, which affects the development efficiency. The problem

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 calling native application by HTML5 application
  • Method and device for calling native application by HTML5 application
  • Method and device for calling native application by HTML5 application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to make the above objects, features and advantages of the embodiments of the present application more obvious and understandable, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Apparently, the described embodiments are some of the embodiments of the present application, but not all of them. Based on the embodiments of the present application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the embodiments of the present application.

[0046]The technical idea of ​​this application is to propose an HTML5 application for the technical problems that the existing HTML5 application needs to embed the corresponding logic code at the entry point of the HTML5 application when calling each native application, resulting in difficulty in reuse and greater intrusion i...

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 embodiment of the invention discloses a method and device for calling a native application by an HTML5 application. The method for calling the native application by the HTML5 application comprisesthe steps of detecting the native application where the HTML5 application is located in response to a starting instruction of the HTML5 application; creating an adapter matched with the native application; wherein the adapter is an instance of a JS SDK object provided by the native application; intercepting a calling instruction for calling a preset unified entry function by the HTML5 application, calling a first function of the adapter according to the calling instruction, calling the JS SDK object through the first function of the adapter, and calling the function of the native applicationthrough the JS SDK object; wherein the first function is the function with the same name as the function in the calling instruction. The problems that when an HTML5 application calls a native application, code logic is difficult to reuse, invasion to services is large, and development efficiency is affected are solved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for calling a native application by an HTML5 application. Background technique [0002] In the era of mobile Internet, more and more businesses are developed using Web applications (HTML5 applications, or H5 pages) for rapid business development and security isolation of various businesses. HTML5, as an important development language, has It has the advantages of fast development speed, high operating efficiency, good security, and strong scalability. With the help of the native application or the JSSDK (JavaScript Software Development Kit, a development kit suitable for the JavaScript language) provided by a third party, the HTML 5 application can call the functions of the related components of the native application (Native App, also called the local App). For example, functions such as sharing, logging in, and obtaining precise geographic infor...

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
IPC IPC(8): G06F9/448
CPCG06F9/4482
Inventor 王阳杨天石鹏万俊嘉
Owner BEIJING SANKUAI ONLINE TECH CO LTD