问题:
java.lang.IllegalStateException
de.appplant.cordova.plugin.notification.Manager.getPrefs
java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3619)
at android.app.ActivityThread.access$1300 (ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1803)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7091)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)
Caused by: java.lang.IllegalStateException:
at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:467)
at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:441)
at android.content.ContextWrapper.getSharedPreferences (ContextWrapper.java:179)
at android.content.ContextWrapper.getSharedPreferences (ContextWrapper.java:179)
at de.appplant.cordova.plugin.notification.Manager.getPrefs (Manager.java:399)
at de.appplant.cordova.plugin.notification.Manager.getIds (Manager.java:206)
at de.appplant.cordova.plugin.notification.Manager.getOptions (Manager.java:291)
at de.appplant.cordova.plugin.notification.receiver.AbstractRestoreReceiver.onReceive (AbstractRestoreReceiver.java:64)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3610)