mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2025-12-17 11:53:21 +00:00
Fix app freeze on iOS using wkwebview-engine
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user