Not allowing me to add Cordova plugin local notification

#1

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 (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 (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0, browser 5.0.3, ios 4.5.5

System:

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" />
#2

SOLUTION:
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 https://github.com/katzer/cordova-plugin-local-notifications

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.

#3

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