Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Device and method for JavaScript native interface calling conducted by crossing mobile operating system platform

A mobile operating system and native interface technology, applied in the field of native interface calling devices, can solve the problems of not supporting offline mode, easy data loss, and insufficient flexibility, and achieve flexible data transmission methods, good user experience and functions, and improved security Effect

Active Publication Date: 2015-03-25
北京华电万通科技有限公司
View PDF5 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the application written by the developer is to run on different mobile devices at the same time, he must master multiple development languages, but this will inevitably seriously affect the software development progress and project launch time, and has become a major problem for the development team
[0004] In the prior art, the native applications of each mobile operating system are packaged into web applications and accessed through browsers. Such web has the advantage of cross-platform. However, these browser-based applications cannot call system APIs to achieve some advanced functions, nor can they Suitable for occasions with high performance requirements, the browsing experience cannot overload the native application in the short term, does not support offline mode, the message push is not timely enough, and the ability to call the local file system is weak
[0005] After searching the prior art, it is found that a method and device for application program development disclosed in Chinese patent application CN201110029661.3 can realize cross-platform call of web native interface. Inflexible enough to make data easy to lose and low data security

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
  • Device and method for JavaScript native interface calling conducted by crossing mobile operating system platform
  • Device and method for JavaScript native interface calling conducted by crossing mobile operating system platform
  • Device and method for JavaScript native interface calling conducted by crossing mobile operating system platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0099] Unified call interface module 001:

[0100] execute(success, failure, service, actionID, arguments);

[0101] Call prompt module 002:

[0102] var r = message(JSON. stringify(arguments), JSON. stringify([service, actionID, callbackID, true]));

[0103] Kernel encapsulation class module 003, onJsAlert, onJsConfirm or onJsPrompt method in ChromeClient.

[0104] Plug-in management module 004,

[0105] PluginManager. execute(service, actionID, callbackID, message, async);

[0106] Callback module 005, message() under the JsResult or JsPromptResult class.

[0107] Callback server module 006, CallbackContext class;

[0108] Among them, the process of transferring data information from the Javascript side to the native interface is: the execute function calls the message function, the message function calls the onJsAlert, onJsConfirm or onJsPrompt method, the message method calls the PluginManager.execute method, and PluginManager.execute calls the native interface;

[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 device and method for JavaScript native interface calling conducted by crossing a mobile operating system platform. The device comprises a forward system and a reverse system, wherein the forward system is used for transferring data exchange carriers of web script programs to a native interface of a mobile terminal, and the reverse system is used for transferring the data exchange carriers returned by the native interface of the mobile terminal to the web script programs in the mode that local services are executed synchronously or asynchronously. The forward system comprises a unified interface calling module, a calling prompt module, a kernel encapsulation class module and a plug-in management module. The reverse system comprises a call-back module and a call-back server module.

Description

technical field [0001] The invention relates to a device for invoking a native interface, in particular to a device for invoking a JavaScript cross-platform native interface of a mobile operating system. Background technique [0002] The development of mobile operating systems can be described as ups and downs. From the earliest Linux to the later dominant Symbian, and now to the glorious iOS and Android, the mobile operating system has become more and more perfect. With the prominent position of the operating system at the core of the industry chain, competition among major enterprises in terms of terminals and applications has evolved into competition among ecosystems. At present, the mobile application market has initially formed three camps of iOS, Android and Windows Phone. Of course, the remaining traditional camps (Symbian and RIM, etc.) should not be underestimated due to historical reasons and a huge user base. [0003] With the rapid development of the mobile app...

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/44
Inventor 方宝友饶英俊李建中马春宇
Owner 北京华电万通科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products