1
Hello, i use, Cordova + pushbots + framework7 project, when i send a push notification for android 4.2.2, if application still background my app crash... in version above 5.0, this Works fine....
01-22 21:50:30.206 15557-16843/org.devgirl.framework7.mediaexplorer I/PB3: Received a Notification.
01-22 21:50:30.206 15557-16843/org.devgirl.framework7.mediaexplorer I/PB3: customHandler:com.pushbots.plugin.Pushhandler
01-22 21:50:30.206 15557-16843/org.devgirl.framework7.mediaexplorer E/data: Bundle[{google.sent_time=1485129029326, message=tste123, collapse_key=do_not_collapse, pb_n_id=5885454520d4750da470c7, android.support.content.wakelockid=1, from=237724424113, google.message_id=0:1485129029337800%63cdadd5f9fd7ecd}]
01-22 21:50:30.216 15557-15557/org.devgirl.framework7.mediaexplorer D/PB3: action=com.pushbots.MSG_RECEIVE
01-22 21:50:30.227 15557-15557/org.devgirl.framework7.mediaexplorer D/PB3: Sending Success result: {"data":{"message":"tste123","google.sent_time":1485129029326,"pb_n_id":"5885454520d4750da470c7","android.support.content.wakelockid":1,"from":"237724424113","collapse_key":"do_not_collapse","google.message_id":"0:1485129029337800%63cdadd5f9fd7ecd"},"type":"Received"}
01-22 21:50:30.237 15557-16843/org.devgirl.framework7.mediaexplorer D/PB3: TEST1: iconNameic_pushbots_licon
01-22 21:50:30.267 15557-15557/org.devgirl.framework7.mediaexplorer D/Androidruntime: Shutting down VM
01-22 21:50:30.267 15557-15557/org.devgirl.framework7.mediaexplorer W/dalvikvm: threadid=1: thread exiting with uncaught Exception (group=0x41fd4960) 01-22 21:50:30.297 15557-15557/org.devgirl.framework7.mediaexplorer
E/Androidruntime: FATAL EXCEPTION: main java.lang.Runtimeexception: Unable to start receiver com.pushbots.plugin.Pushhandler: java.lang.Nullpointerexception at android.app.Activitythread.handleReceiver(Activitythread.java:2462) at android.app.Activitythread.access$1600(Activitythread.java:157) at android.app.Activitythread$H.handleMessage(Activitythread.java:1365) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:176) at android.app.Activitythread.main(Activitythread.java:5317) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.Internal.os.Zygoteinit$Methodandargscaller.run(Zygoteinit.java:1102) at com.android.Internal.os.Zygoteinit.main(Zygoteinit.java:869) at Dalvik.system.Nativestart.main(Native Method) Caused by: java.lang.Nullpointerexception at android.webkit.Webviewclassic.setNetworkAvailable(Webviewclassic.java:4208) at android.webkit.Webview.setNetworkAvailable(Webview.java:731) at org.apache.Cordova.engine.Systemwebviewengine$1.setNetworkAvailable(Systemwebviewengine.java:113) at org.apache.Cordova.Nativetojsmessagequeue$Onlineeventsbridgemode$2.run(Nativetojsmessagequeue.java:338))