Not allowing me to add Cordova plugin local notification

Hi there,

I was following the original tutorial for installing and using the Local notifications (this) but for some reason, when I run the first command ionic cordova plugin add cordova-plugin-local-notification it shows me this:

Jordi:ionic-app-v3 Jordi$ ionic cordova plugin add cordova-plugin-local-notification
> cordova plugin add cordova-plugin-local-notification --save
(node:17188) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Cannot find plugin.xml for plugin "cordova-plugin-local-notification". Please try adding it again.

And I cannot continue with this, and also, the only thing I found is in the documentation of cordova they are advising this: Not compatible yet with Ionic Native but not sure if is completely related with.

Can someone help with that?

Ionic info:


ionic (Ionic CLI) : 4.0.3 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.11


cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0, browser 5.0.3, ios 4.5.5


NodeJS : v6.11.0 (/usr/local/bin/node)
npm : 6.3.0
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000

Plugins already using:

<plugin name="cordova-plugin-file" spec="^6.0.1" />
<plugin name="cordova-plugin-file-transfer" spec="^1.7.1" />
<plugin name="cordova-plugin-filechooser" spec="^1.0.1" />
<plugin name="cordova-plugin-background-mode" spec="^0.7.2" />

Apparently, something was wrong in my project which wasn’t adding all the plugin when was installed, so I had to remove the plugins which were causing issues and add them directly from their repos.
e.g. cordova plugin add

I hope it helps someone and avoids a huge headache, I would like to research why that happen thought but not sure if I will have time enough.

As I recall, it’s because of the main repo isn’t supported anymore but still standard in cordovas repo or something like that…