Unvired Cordova Plugin

Usage no npm install needed!

<script type="module">
  import cordovaPluginUnviredSdk from '';



This cordova plugin is published as a npm package

Using this plugin

  1. Uninstall the previous version (if any) of the plugin
$ cordova plugin rm cordova-plugin-unvired-sdk
  1. Install this plugin
$ cordova plugin add cordova-plugin-unvired-sdk
  1. Verify the installation by checking the version number with package.json file or by listing the Cordova plugins installed for your project
$ cordova plugin ls   // List Cordova plugins
  1. Make sure that the following JS dependencies are updated in index.html file. These JS dependencies should have been copied to the respective locations when you install the plugin.
  <script src="assets/js/codemirror.js"></script>
  <script src="assets/js/sql.js"></script>
  <script src="assets/js/kernel.js"></script>
  <script src="assets/js/winstore-jscompat.js"></script>
  <script src="assets/js/jquery-3.2.1.js"></script>

Building this plugin

This contains source code for Unvired Cordova Plugin. In order to test this plugin locally, generate a debug version by building using build-debug.xml

$ ant -buildfile build-debug.xml

This produces the output in a folder called cordova-plugin-unvired-sdk.

Adding a new method.

Any new method should have the implementation in www/kernel.js file. Accordingly, all the native cores should have an implementation for this method.

Exposing the new method to ionic apps.

This plugin is repackaged as ionic native plugin.

The source code of the ionic native plugin is located here:

The source contains a single file, index.ts which contains declarations of all the functions available in www/kernel.js file of this repo. To expose newly added methods in kernel.js, you will have to fork repo to your GitHub repo, make changes and submit a pull request.

Once the Pull request is approved, the new method should be available publicly for all the users.