Method and system for application program interface extension

An application program interface and operating system technology, applied in the field of application program interface extension in portable smart terminals, can solve the problems of high implementation threshold, low versatility, complex WebKit engine, etc., to improve usability, solve low versatility, Simple extension of the effect

Inactive Publication Date: 2015-09-23
CHINA MOBILE COMM GRP CO LTD
View PDF6 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. By extending the functions of the browser engine, the versatility is not high
This is because web applications that use PhoneGap to extend the JS API must run on PhoneGap products, and ordinary browsers do not support these extended JS APIs, so these applications cannot run on ordinary browsers
[0006] 2. The WebKit engine used in browser engines such as Android and iOS is very complicated. The implementation threshold of this technology is relatively high, and it is not easy to realize the extension of JS API

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 system for application program interface extension
  • Method and system for application program interface extension
  • Method and system for application program interface extension

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail by citing the following embodiments and referring to the accompanying drawings.

[0038] figure 2 It is a schematic diagram of the framework and flowchart of the application program interface extension of the embodiment of the present invention, such as figure 2 As shown, the JS code for calling the extended JS API is installed in the web application, and the extended API is set in the local code, that is, in the operating system. When the Web application needs to call the extended JS API, it sends a relevant request message to the Web server (Web Internal Server), and the Web Internal Server obtains the information of the extended JS API according to the relevant request message, and the Web Internal Server executes the extended JS API. Call, and after getting the call result, send it to the web application.

[0...

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 and a system for application program interface extension. The method comprises the following steps: sending a call instruction to a Web server when a Web application determines application program interfaces APIs needed to be called as extended APIs; receiving the call instruction by the Web server, analyzing the call instruction and generating an analysis result; obtaining the information of the to-be-called APIs according to the analysis result, finding out the corresponding API locally according to the information of the APIs, calling the found local API, and returning the call result of the API back to the Web application. The JavaScript API extension manner is simple and universal, and can overcome the defects of low universality and high complexity in an existing technical scheme, so that the availability of JavaScript API extension is improved.

Description

technical field [0001] The present invention relates to application program interface (API, Application Programming Interface) expansion technology, in particular to a method and system for application program interface expansion in a portable intelligent terminal. Background technique [0002] Hypertext Markup Language (HTML, Hypertext Markup Language) and JavaScript (referred to as JS) technologies are the core technologies of the Web application system, in which HTML is responsible for the presentation of the Web application interface, and JS is responsible for the background logic processing. Both HTML and JS codes run on the browser engine and cannot directly interact with the underlying operating system. Therefore, traditional web applications have functional limitations that cannot access the operating system and local devices, which is an obstacle to the scope of application of web applications. . It should be noted that, in this application document, Web applicatio...

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): G06F9/445
Inventor 李峰
Owner CHINA MOBILE COMM GRP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products