From a2352f5d8b17de5799b35177d9c7c4f32f66c49e Mon Sep 17 00:00:00 2001 From: Dimitrios Matanis Date: Tue, 9 Jan 2018 19:51:50 +0000 Subject: [PATCH] service stuck on swipe away fix (#304) --- src/android/BackgroundMode.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/android/BackgroundMode.java b/src/android/BackgroundMode.java index 126a49e..3ade663 100644 --- a/src/android/BackgroundMode.java +++ b/src/android/BackgroundMode.java @@ -155,6 +155,7 @@ public class BackgroundMode extends CordovaPlugin { public void onDestroy() { stopService(); super.onDestroy(); + android.os.Process.killProcess(android.os.Process.myPid()); } /**