Plugin_not_installed LocalNotification


#1

Continuing the discussion from Ionic-native 'plugin not installed' but 'ionic plugin add' says already installed:

Hello,

I installed Local Notification Plugin by Ionic Native. I executed

$ ionic cordova plugin add cordova-plugin-local-notification
$ npm install --save @ionic-native/local-notifications

Then, i added this plugin in app_module. After that, I put this in my Home Page:

this.localNotifications.schedule({
  id: 1,
  text: 'Single ILocalNotification'
});

But, when I emulate my App in the Android Emulator, I received this error:

“Ionic Native: tried calling LocalNotifications.schedule, but the LocalNotifications plugin is not installed.
Install the LocalNotifications plugin: ‘ionic cordova plugin add cordova-plugin-local-notification’”

I need help please.

My Ionic info


Ionic:

   ionic (Ionic CLI)  : 4.2.1 (C:\Users\Federico\AppData\Roaming\npm\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.1.1, browser 5.0.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.4, (and 17 other plugins)

System:

   NodeJS : v8.11.2 (C:\Program Files\nodejs\node.exe)
   npm    : 5.6.0
   OS     : Windows 10

Plugin List:

cordova-android-support-gradle-release 1.4.4 "cordova-android-support-gradle-release"
cordova-plugin-add-swift-support 1.7.2 "AddSwiftSupport"
cordova-plugin-advanced-http 1.11.1 "Advanced HTTP plugin"
cordova-plugin-background-mode 0.7.2 "BackgroundMode"
cordova-plugin-badge 0.8.7 "Badge"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-facebook4 3.0.0 "Facebook Connect"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-hotspot 1.2.10 "Cordova HotSpot Plugin"
cordova-plugin-http2 1.1.1 "SSL Pinning"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.1.4 "cordova-plugin-ionic-webview"
cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-qrscanner 2.6.0 "QRScanner"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-uniquedeviceid 1.3.2 "UniqueDeviceID"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-storage 2.4.0 "Cordova sqlite storage plugin"

Thanks you