From c2fedef6d2693c25fc8dfc4eb4a413649acfb504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Sat, 28 Jan 2017 00:15:53 +0100 Subject: [PATCH] Fix wrong event name in sample --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bf7a2a7..d1e7e09 100644 --- a/README.md +++ b/README.md @@ -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. ```javascript -cordova.plugins.backgroundMode.on('active', function() { +cordova.plugins.backgroundMode.on('activate', function() { cordova.plugins.backgroundMode.disableWebViewOptimizations(); }); ```