I posed about this on the "Push Client" Answers section. I am also sending it in an email as I really need a quick response.
I have two apps running this module that work great on iOS, but both fail to work on android. With both apps I get the following in my Console before the tablet gives me an “unfortunately, this application has stopped”
[WARN] : dalvikvm: threadid=16: thread exiting with uncaught exception (group=0x417e2ce0)
[ERROR] : TiApplication: (AsyncTask #1) [1813,1813] Sending event: exception on thread: AsyncTask #1 msg:java.lang.RuntimeException: An error occured while executing doInBackground(); Titanium 3.4.1,2014/11/13 13:33,5982e8f
[ERROR] :TiApplication: java.lang.RuntimeException: An error occured while executing doInBackground()
[ERROR] : TiApplication: at android.os.AsyncTask$3.done(AsyncTask.java:300)
[ERROR] : TiApplication: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
[ERROR] : TiApplication: at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
[ERROR] : TiApplication: at java.util.concurrent.FutureTask.run(FutureTask.java:242)
[ERROR] : TiApplication: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) [ERROR] : TiApplication: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
[ERROR] : TiApplication: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
[ERROR] : TiApplication: at java.lang.Thread.run(Thread.java:841)
[ERROR] : TiApplication: Caused by: java.lang.NullPointerException
[ERROR] : TiApplication: at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:478)
[ERROR] : TiApplication: at android.app.PendingIntent.getBroadcast(PendingIntent.java:467)
[ERROR] : TiApplication: at com.google.android.gms.gcm.GoogleCloudMessaging.d(Unknown Source)
[ERROR] : TiApplication: at com.google.android.gms.gcm.GoogleCloudMessaging.dn(Unknown Source)
[ERROR] : TiApplication: at com.google.android.gms.gcm.GoogleCloudMessaging.unregister(Unknown Source)
[ERROR] : TiApplication: at br.com.arlsoft.pushclient.PushClientModule$2.doInBackground(PushClientModule.
I am sorry the errors got cut off, But this is most of them. I will send you an email tomorrow when I have access to the rest. If you have any hints as to what the problem is, please let me know.
It appears you are correct about me calling unregisterPush too quickly. This was unintentional, but it was certainly causing my problems. Thanks for the quick reply.
I posed about this on the "Push Client" Answers section. I am also sending it in an email as I really need a quick response.
I have two apps running this module that work great on iOS, but both fail to work on android. With both apps I get the following in my Console before the tablet gives me an “unfortunately, this application has stopped”
I am sorry the errors got cut off, But this is most of them. I will send you an email tomorrow when I have access to the rest. If you have any hints as to what the problem is, please let me know.