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()); } /**