Next we'll add Cordova plugins. You can add any standard Cordova plugin you wish to use, including BlinkMobile ones, such as the Sketch plugin that is used for signature panel and photo annotations.
Adding Cordova Plugins:
Navigate to your project root folder (the one with your config.xml and build.json file).
Run the command:
cordova plugin add https://github.com/blinkmobile/cordova-plugin-sketch.git --save
This will download and add the sketch plugin.
--save
The --save is very important - this option needs to be added, as this will update your config.xml file automatically with the plugin details.
Local Plugins
If you have a plugin on your local machine you would like to include in your project, then copy the local plugins folder into the root folder of your app - do not copy it into the "plugins" folder, as this will be overwritten at build time.
Navigate to your project root folder (the one with your config.xml and build.json file).
Run the command:
cordova plugin add ./myLocalPlugin/ --save
This will add the project from the local folder.
--save
The --save is very important - this option needs to be added, as this will update your config.xml file automatically with the plugin details.
Core Cordova Plugins
Cordova maintain a list of core plugins that are commonly used. You can view this list on their website:
Selecting the plugins from the list above will give you the installation command for each one.
Repeat this process for any other Cordova plugins you wish to include.