...
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:
Code Block | ||||
---|---|---|---|---|
| ||||
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:
...