katzer / cordova-plugin-background-mode

Keep app running in background
Apache License 2.0
1.38k stars 1.02k forks source link

java.lang.IllegalStateException #446

Open ArkageTeam opened 5 years ago

ArkageTeam commented 5 years ago

Hello everyone,

please find below complete log report about last crash with this plugin.

`Huawei P10 (HWVTR), Android 8.0 Rapporto 1

java.lang.RuntimeException: at android.app.ActivityThread.handleReceiver (ActivityThread.java:3814) at android.app.ActivityThread.-wrap18 (Unknown Source) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2082) at android.os.Handler.dispatchMessage (Handler.java:108) at android.os.Looper.loop (Looper.java:166) at android.app.ActivityThread.main (ActivityThread.java:7529) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:245) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:921) Caused by: java.lang.IllegalStateException: at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:417) at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:398) at android.content.ContextWrapper.getSharedPreferences (ContextWrapper.java:167) at android.content.ContextWrapper.getSharedPreferences (ContextWrapper.java:167) at de.appplant.cordova.plugin.notification.Manager.getPrefs (Manager.java:401) at de.appplant.cordova.plugin.notification.Manager.getIds (Manager.java:208) at de.appplant.cordova.plugin.notification.Manager.getOptions (Manager.java:293) at de.appplant.cordova.plugin.notification.receiver.AbstractRestoreReceiver.onReceive (AbstractRestoreReceiver.java:64) at android.app.ActivityThread.handleReceiver (ActivityThread.java:3804)`

this is mainly reported on Android 8.1 but we couldn't find any solution.

can you please assist us in finding a way to debug it?

ArkageTeam commented 5 years ago

is there any way we can inspect this?