Using a third-party cordova plugin in Ionic 2 with TypeScript
In my Ionic 2 app (TypeScript), where I use plugins, for example the Camera plugin from ionic-native which works fine. Now I want to use BackgroundMode plugin : https://github.com/katzer/cordova-plugin-background-mode . I read the README, I did the installation as described. Under Usage it says that the plugin can be used like this: cordova.plugins.backgroundMode.enable(); In my IDE (Atom), when I type that, it says it can't find cordova. I googled a lot about cordova plugins and Ionic 2 and in some cases they use navigator.somePlugin.someFunction() (the window.navigator object if I understand