Meshing together some updates for iOS 13 fixes
Main reason I'm creating a PR is because in order to use the ionic/background-mode package within angular, it references this repo and doesn't recognize that my custom plugin (or anyone elses) is installed. We should start a new repo that can contributed to since this repo is directly tied to a the ionic plugin but is very out of date especially when it comes to iOS.
https://github.com/ionic-team/ionic-native/blob/master/src/@ionic-native/plugins/background-mode/index.ts#L76
I'm very interested in getting this working for ios13. However, cordova-ios has switched the webview to WKWebView(see https://github.com/apache/cordova-ios/pull/773).
Before cordova-ios@6 this plugin could keep my app running indefinitely. After upgrading to cordova-ios@6, my web page lasts exactly 30 seconds after background mode is activated every time.
I believe this plugin requires a new technique to support WKWebView in cordova-ios@6