I’m using Local Notification plugin and when I schedule a notification, it give me the message on console “Unknown property: trigger” and fires the notification (can’t schedule). I already uninstalled it and installed it again but no luck.
My Ionic info:
Ionic:
ionic (Ionic CLI) : 4.1.2 (C:\Users\rafae\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 2.1.3
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0
Cordova Plugins : no whitelisted plugins (17 plugins total)
System:
Android SDK Tools : 26.1.1 (C:\Program Files (x86)\Android\android-sdk)
NodeJS : v8.11.4 (C:\Program Files\nodejs\node.exe)
npm : 5.6.0
OS : Windows 10
Solved by installing the latest version of the plugin (0.9.0-beta.3). But only worked after uninstall previous version and delete all files with ‘local-notification’ and ‘localnotification’ in its name
can you please show commend how to remove and install 0.9.0-beta-3 version?
Thanks
Run to uninstall:
ionic cordova plugin rm cordova-plugin-local-notification
npm uninstall @ionic-native/local-notifications
Search and delete all files with ‘local-notification’ and ‘localnotification’ in its name.
After that, run to install it again:
ionic cordova plugin add cordova-plugin-local-notification
npm install @ionic-native/local-notifications
Then change in your package.json from:
"cordova-plugin-local-notification": "0.9.0-beta.2",
to:
"cordova-plugin-local-notification": "0.9.0-beta.3",
and then run command:
npm update