Fix wrong event name in sample

This commit is contained in:
Sebastián Katzer 2017-01-28 00:15:53 +01:00
parent b1e2080a1d
commit c2fedef6d2

View File

@ -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();
}); });
``` ```