From 96663a36e8983416c8b1be202f2ca6f2505ba7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Wed, 12 Nov 2014 22:40:31 +0100 Subject: [PATCH] Start service only if not already started --- src/android/BackgroundMode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/BackgroundMode.java b/src/android/BackgroundMode.java index fd4e22e..2144cae 100644 --- a/src/android/BackgroundMode.java +++ b/src/android/BackgroundMode.java @@ -185,7 +185,7 @@ public class BackgroundMode extends CordovaPlugin { Intent intent = new Intent( context, ForegroundService.class); - if (isDisabled) { + if (isDisabled || isBind) { return; }