Cordova plugman with new plugin names

117 Views Asked by At

According to this announcement from Cordova, we should start using new plugin IDs (e.g. cordova-plugin-* instead of org.apache.cordova.*).

However, I don't use the Cordova CLI, and I install my plugins manually using plugman.

In that situation, how do we make sure we're using the right plugins? If I try to install something like --plugin cordova-plugin-device instead of --plugin org.apache.cordova.device, it doesn't find it.

1

There are 1 best solutions below

1
On

As cordova is now switching over to npm you can find the plugin you are looking for by going to. NPM. And typing cordova-plugins- in the search bar hit search and it will list all available plugins. so NPM cordova-plugin-device.

Now im not 100% sure on plugman but it is seriously easy to add new plugins via cordova cli.

if you cd to your project through your terminal all you need to type in is cordova plugin add cordova-plugin-device.

And it will add. You can even add straight from github if you'd prefer cordova plugin add https://github.com/apache/cordova-plugin-device.git.

Hope it helps