BackgroundMode Not Installing Cordova 9

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.1

Cordova:

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

I hope know solution for this warn problem in cordova.
thank.

Same problem here on android.

ionic cordova plugin add cordova-plugin-background-mode

> cordova plugin add cordova-plugin-background-mode --save

Installing “cordova-plugin-background-mode” for android

warn

My environment:

Has anyone found a workaround for this issue?

I was facing the same problem, found a solution

a) uninstall platform of android
b) uninstall cordova plugin background mode.
c)

npm uninstall --save @ionic-native/background-mode@4 

and or ```
npm install --save @ionic-native/background-mode


then refer https://ionicframework.com/docs/v3/native/background-mode/ to install

$ ionic cordova plugin add cordova-plugin-background-mode
$ npm install --save @ionic-native/background-mode@4

I do not get it. You just uninstalled the plugin and installed it again? I tried in a new project and it does not work…