To see the plugin in action, please check out enableX-cordova-samples.
Make sure You have Cordova 3.5.0 or greater installed. If you haven't, take a look at the Cordova instructions Page.
-
Clone this repo to get the source code for the EnableX Cordova plugin
-
To install the EnableX Cordova plugin, run the following command in the root of your project:
cordova plugin add enablex-cordova-plugin
- To remove Enalex Cordova plugin, use the following command:
cordova plugin remove enablex-cordova-plugin
All your editing will be done in your www folder.
All JavaScript code should be written in onDeviceReady
function in /js/index.js
because it is executed after all dependencies has loaded.
onDeviceReady: function() {
// Do Your Stuff Here!
}