I stumbled upon strange bug. After adding plugin to newly created project local notification plugin even without using it I’m getting warning that default status bar and splashscreen plugins missing:
… tried calling StatusBar.styleDefault, but the StatusBar plugin is not installed.
Steps:
- cordova plugin add de.appplant.cordova.plugin.local-notification@0.8.5 --save
- npm i --save @ionic-native/local-notifications
- ionic cordova platform remove ios && ionic cordova platform add ios && ionic cordova build ios
BTW, another issue:
cordova build ios
Error: Cordova needs ios-deploy version 1.9.2 or greater, you have version 1.9.1. Please download, build and install version 1.9.2 or greater from https://github.com/phonegap/ios-deploy into your path, or do 'npm install -g ios-deploy'
After that I run project via xCode.
ionic info
cli packages:
(/usr/local/lib/node_modules) @ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.5
Cordova Platforms : ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
ios-deploy : 1.9.1
ios-sim : 6.0.0 Node : v6.9.0
npm : 3.10.10
OS : macOS Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables: ANDROID_HOME : not set Misc: backend : pro