From 01202bb25067acb647989151ef67f4a7b9b78327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Wed, 12 Nov 2014 22:47:49 +0100 Subject: [PATCH] Remove enable: flag --- www/background-mode.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/www/background-mode.js b/www/background-mode.js index 5cdd190..15f66cb 100644 --- a/www/background-mode.js +++ b/www/background-mode.js @@ -44,8 +44,7 @@ exports.getDefaults = function () { title: 'App is running in background', text: 'Doing heavy tasks.', ticker: 'App is running in background', - resume: true, - enable: true + resume: true }; }; @@ -79,12 +78,6 @@ exports.configure = function (options) { if (device.platform == 'Android') { cordova.exec(null, null, 'BackgroundMode', 'configure', [settings]); } - - if (settings.enable) { - this.enable(); - } else { - this.disable(); - } }; /**