Posts

Showing posts from October, 2016

Custom Cordova plugin

Cordova plugin ? Cordova provides a bridge between JavaScript and native code, enabling you to write native code that gets exposed to your app via a common JavaScript interface. Each method exposed by a plugin’s JavaScript interface is mapped to a method in the plugin’s native code via the Cordova bridge, which also enables you to pass parameters back and forth between the JavaScript and native methods. A Cordova plugin typically consists of :     Native code for each supported platform     A common JavaScript interface     A manifest file called plugin.xml The conventional structure for a Cordova plugin supporting both Android and iOS is: - Plugin top-level folder      - plugin.xml      - src/         - android/            - <Java source code>         - ios/   ...