Closed sandipkansagara closed 10 years ago
Hello Sandip,
please could you describe in more detail whats happened and how the plugin was called?
Thanks for reply!
Problem following:
If i remove app from recent app list than it create problem with error message(Unfortunately, Application has been stop.)
Details:
API Level : 16 Test: Testing in emulator. Same API Level 16. wrong part: Actually cordova.getActivity().getPackageName() generate error in LocalNotificationOptions.java at 120 line. Temp. Solution : Passing package name options.getIcon(context.getPackageName()) in LocalNotificationReceiver.java at 106 , it work.
let me know.
If i use normally without removing from recent app list, it's working.
Thank You Sandip
Hallo Sandip,
its hopefully fixed now (e3842e410273b538bc7eb1cec52f1ae7963fb016)
Thanks again!
Hello katzer,
Now it working fine.
Appreciate your effort.
Thank You Sandip
Hi katzer,
Please help me. I found problem when i remove app from Recent App List from Nexus 7.
I found error(Logcat)
11-24 20:52:18.288: D/AndroidRuntime(840): Shutting down VM 11-24 20:52:18.288: W/dalvikvm(840): threadid=1: thread exiting with uncaught exception (group=0x40a13300) 11-24 20:52:18.307: E/AndroidRuntime(840): FATAL EXCEPTION: main 11-24 20:52:18.307: E/AndroidRuntime(840): java.lang.RuntimeException: Unable to start receiver de.appplant.cordova.plugin.localnotification.LocalNotificationReceiver: java.lang.NullPointerException 11-24 20:52:18.307: E/AndroidRuntime(840): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2236) 11-24 20:52:18.307: E/AndroidRuntime(840): at android.app.ActivityThread.access$1500(ActivityThread.java:130) 11-24 20:52:18.307: E/AndroidRuntime(840): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1271) 11-24 20:52:18.307: E/AndroidRuntime(840): at android.os.Handler.dispatchMessage(Handler.java:99) 11-24 20:52:18.307: E/AndroidRuntime(840): at android.os.Looper.loop(Looper.java:137) 11-24 20:52:18.307: E/AndroidRuntime(840): at android.app.ActivityThread.main(ActivityThread.java:4745) 11-24 20:52:18.307: E/AndroidRuntime(840): at java.lang.reflect.Method.invokeNative(Native Method) 11-24 20:52:18.307: E/AndroidRuntime(840): at java.lang.reflect.Method.invoke(Method.java:511) 11-24 20:52:18.307: E/AndroidRuntime(840): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 11-24 20:52:18.307: E/AndroidRuntime(840): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 11-24 20:52:18.307: E/AndroidRuntime(840): at dalvik.system.NativeStart.main(Native Method) 11-24 20:52:18.307: E/AndroidRuntime(840): Caused by: java.lang.NullPointerException 11-24 20:52:18.307: E/AndroidRuntime(840): at de.appplant.cordova.plugin.localnotification.LocalNotificationOptions.getIcon(LocalNotificationOptions.java:120) 11-24 20:52:18.307: E/AndroidRuntime(840): at de.appplant.cordova.plugin.localnotification.LocalNotificationReceiver.buildNotification(LocalNotificationReceiver.java:101) 11-24 20:52:18.307: E/AndroidRuntime(840): at de.appplant.cordova.plugin.localnotification.LocalNotificationReceiver.onReceive(LocalNotificationReceiver.java:62) 11-24 20:52:18.307: E/AndroidRuntime(840): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2229) 11-24 20:52:18.307: E/AndroidRuntime(840): ... 10 more
Thank You Sandip