diff --git a/src/android/BackgroundMode.java b/src/android/BackgroundMode.java index 0b89c17..6d612d4 100644 --- a/src/android/BackgroundMode.java +++ b/src/android/BackgroundMode.java @@ -44,7 +44,7 @@ public class BackgroundMode extends CordovaPlugin { private boolean isDisabled = false; // Settings for the notification - static JSONObject settings; + static JSONObject settings = new JSONObject(); // Used to (un)bind the service to with the activity private ServiceConnection connection = new ServiceConnection() {