Cordova Plugins Technical Docs
Adding a plugin to the App Template
The @kt-tools/app-builder has a template cordova project in tools/app-builder/app-template. Here the existing cordova plugins are already checked out into the repo.
- cd into the
app-templatefolder in your terminal
bash
cd tools/app-builder/app-template- Use
pnpm dlx(download execute) to runcordova plugin addusing the plugin name you want to add
Eg.
bash
pnpm dlx cordova add plugin cordova-plugin-deviceNOTE
Cordova plugins are registered with npm. So you can either use the package name or the repo url(for example using a plugin fork)