From ece9aac833a92f5333a3d9843c240e4c06d624f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Mon, 6 Feb 2017 16:10:26 +0100 Subject: [PATCH] Stop service as first in onDestroy, then call super --- 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 39919de..f8703e0 100644 --- a/src/android/BackgroundMode.java +++ b/src/android/BackgroundMode.java @@ -144,8 +144,8 @@ public class BackgroundMode extends CordovaPlugin { */ @Override public void onDestroy() { - super.onDestroy(); stopService(); + super.onDestroy(); } /**