hoerresb / WifiWizard

A Cordova plugin for managing Wifi networks
Apache License 2.0
205 stars 177 forks source link

Plugin name mismatch #116

Open damirarh opened 7 years ago

damirarh commented 7 years ago

There's a mismatch between the name of the plugin in plugin.xml (com.pylonproducts.wifiwizard) and the name under which it is published on NPM (wifiwizard). This means that the plugin is saved to config.xml as com.pylonproducts.wifiwizard, when you install it with:

cordova plugin add wifiwizard --save

As a result, it fails to install when you call cordova prepare, because it can't find com.pylonproducts.wifiwizard in NPM. You need to manually cahnge the entry in config.xml to wifiwizard to make it work.

One of the two names should be changed so that they match. I guess it will break less people if plugin.xml is changed.

GaurangPoolCar commented 7 years ago

Hi @damirarh

I tried every possible solution that you have suggested, but I am getting the same error.

damirarh commented 7 years ago

@GaurangPoolCar Changing the entry in config.xml was enough in my case to get cordova prepare to install the plugin. I am still using Cordova 6.x, though, and the behavior might be different in Cordova 7, where plugins are also registered in package.json.