mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-15 03:54:54 +00:00
Fix wrong event name in sample
This commit is contained in:
parent
b1e2080a1d
commit
c2fedef6d2
@ -151,7 +151,7 @@ cordova.plugins.backgroundMode.configure({ silent: true });
|
|||||||
Various APIs like playing media or tracking GPS position in background might not work while in background even the background mode is active. To fix such issues the plugin provides a method to disable most optimizations done by Android/CrossWalk.
|
Various APIs like playing media or tracking GPS position in background might not work while in background even the background mode is active. To fix such issues the plugin provides a method to disable most optimizations done by Android/CrossWalk.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
cordova.plugins.backgroundMode.on('active', function() {
|
cordova.plugins.backgroundMode.on('activate', function() {
|
||||||
cordova.plugins.backgroundMode.disableWebViewOptimizations();
|
cordova.plugins.backgroundMode.disableWebViewOptimizations();
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user