Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

push notification not received in android

$
0
0

Hi All,

i am developing an android app using titanium studio,in that i am implementing the push notifications, i am getting the device token but at the time of receiving the message it will showing the following error please help me how to resolve that error.

[ERROR] :  APSCloudPush: Payload is null!
[WARN] :   dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41b7ad40)
[ERROR] :  TiApplication: (main) [13807,22582] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.GCMReceiver: java.lang.NullPointerException; Titanium 3.4.1,2014/11/13 13:33,5982e8f
[ERROR] :  TiApplication: java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.GCMReceiver: java.lang.NullPointerException
[ERROR] :  TiApplication:   at android.app.ActivityThread.handleReceiver(ActivityThread.java:2441)
[ERROR] :  TiApplication:   at android.app.ActivityThread.access$1700(ActivityThread.java:139)
[ERROR] :  TiApplication:   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1286)
[ERROR] :  TiApplication:   at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] :  TiApplication:   at android.os.Looper.loop(Looper.java:136)
[ERROR] :  TiApplication:   at android.app.ActivityThread.main(ActivityThread.java:5086)
[ERROR] :  TiApplication:   at java.lang.reflect.Method.invokeNative(Native Method)
[ERROR] :  TiApplication:   at java.lang.reflect.Method.invoke(Method.java:515)
[ERROR] :  TiApplication:   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
[ERROR] :  TiApplication:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
[ERROR] :  TiApplication:   at dalvik.system.NativeStart.main(Native Method)
[ERROR] :  TiApplication: Caused by: java.lang.NullPointerException
[ERROR] :  TiApplication:   at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:116)
[ERROR] :  TiApplication:   at org.json.JSONTokener.nextValue(JSONTokener.java:94)
[ERROR] :  TiApplication:   at org.json.JSONObject.<init>(JSONObject.java:155)
[ERROR] :  TiApplication:   at org.json.JSONObject.<init>(JSONObject.java:172)
[ERROR] :  TiApplication:   at com.appcelerator.aps.APSCloudPush.showTrayNotification(APSCloudPush.java:345)
[ERROR] :  TiApplication:   at com.appcelerator.aps.APSCloudPush.receivePayload(APSCloudPush.java:252)
[ERROR] :  TiApplication:   at com.appcelerator.aps.GCMReceiver.onReceive(GCMReceiver.java:30)
[ERROR] :  TiApplication:   at android.app.ActivityThread.handleReceiver(ActivityThread.java:2434)
[ERROR] :  TiApplication:   ... 10 more
[INFO] :   Process: Sending signal. PID: 10484 SIG: 9

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>