Hi there:
I recently updated cordova and Ionic and the BackgroundMode Plugin is not installing and the warning message showed is not complete, it just shows “warn”.
Cristians-MacBook-Pro:test cristian$ ionic cordova plugin add cordova-plugin-background-mode
cordova plugin add cordova-plugin-background-mode --save
Installing “cordova-plugin-background-mode” for ios
warn
Cristians-MacBook-Pro:test cristian$
The folder of the plugin is added to the plugins folder but it is not added to the package.json file and it does not work when I try the app in a device. The files in Xcode for the plugin are not there. The same is happening for android platform. I tried in a completely new project and the same happens.
My dev enviroment info:
Ionic:
ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.3
@ionic/app-scripts : 3.2.1Cordova:
cordova (Cordova CLI) : 9.0.0
Cordova Platforms : ios 5.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 11 other plugins)System:
ios-deploy : 2.0.0
ios-sim : 7.0.0
NodeJS : v10.15.3 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS Mojave
Xcode : Xcode 10.2 Build version 10E125