Skip to content

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.

  1. cd into the app-template folder in your terminal
bash
cd tools/app-builder/app-template
  1. Use pnpm dlx(download execute) to run cordova plugin add using the plugin name you want to add

Eg.

bash
pnpm dlx cordova add plugin cordova-plugin-device

NOTE

Cordova plugins are registered with npm. So you can either use the package name or the repo url(for example using a plugin fork)