Cordova JSB PLUGIN

Develop Native Plugin using Javascript





by Bartolomeo Sorrentino
twitter: @bsorrentinoJ
blog: http://soulsoftware-bsc.blogspot.it/

CORDOVA PLUGIN


A Cordova plugin bridges a bit of functionality between the WebView and the native platform the Cordova application is running on. 

Plugins are composed of a single JavaScript interface used across all platforms, and native implementations following platform-specific Plugin interfaces that the JavaScript will call into.


Cordova PLUGIN


CORdova JSB plugin

Cordova JavaScript Bridge plugin enables the possibility to bridge functionality between the WebView and the native platform using JavaScript instead of native language (eg. ObjectiveC or Java). Such plugin relies upon Javascript Engine available on target  OS. 

Currently we support only IOS version 7 and above because, from that release, Apple has made available the JavaScript Core framework, an embedded JavaScript engine, outside of the WebView boundaries.

Support for Android has been planned in the next months 



Cordova JSB PLUGIN


CORDOVA JSB PLUGIN (IOS7)


Relies on:
 JavaScript Core framework (JavaScriptCore.framework) that provides Objective-C wrapper classes for many standard JavaScript objects. 

Use:
the JavaScriptBridge project by kishikawakatsumi that provides the way to write a complete iOS apps with JavaScript.

Provides: 
(continue below)

CORDOVA JSB PLUGIN (IOS7) 


Provides:
  • A common JS (jsbridge.jsthat allow to call native javascript functions
  • An infrastructure that allow to bundle  native javascript stuff together web ones. 

Made with Slides.com