Fix app freeze on iOS using wkwebview-engine

This commit is contained in:
Sebastián Katzer
2017-02-02 15:22:12 +01:00
parent 2801364ed8
commit b7a911a974
4 changed files with 13 additions and 18 deletions

View File

@@ -43,8 +43,6 @@ Or install from local source:
$ cordova plugin add cordova-plugin-background-mode --searchpath <path>
__Note:__ In combination with the `cordova-plugin-wkwebview-engine` plugin the UIBackgroundModes section added by the plugin inside the *-Info.plist can be removed. That might increase the chance to submit the app to the app store.
## Usage
The plugin creates the object `cordova.plugins.backgroundMode` and is accessible after the *deviceready* event has been fired.
@@ -71,8 +69,6 @@ cordova.plugins.backgroundMode.disable();
cordova.plugins.backgroundMode.setEnabled(false);
```
__Note:__ By using `wkwebview-engine` on iOS, the plugin is enabled by default and cannot be disabled.
### Check if running in background
Once the plugin has been enabled and the app has entered the background, the background mode becomes active.