--To view this discussion on the web visit https://groups.google.com/d/msg/android-gcm/-/J4wd4zwHIb4J.
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-gcm...@googlegroups.com.
One other piece of information on this, when regid = gcm.register(SENDER_ID); throws an exception of SERVICE_NOT_AVAILABLEthe GCM Intent Service still fires the OnRegistered event with the correct registrationId.
--
You received this message because you are subscribed to a topic in the Google Groups "android-gcm" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-gcm/Skhe3jG5DIg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/9855d48b-727a-43ac-ac65-3f81953d51cf%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/179bfb95-a646-42c7-b82e-10963f32db96%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/d469b8de-1fea-4d80-8818-059202c2ecc4%40googlegroups.com.
07-11 14:17:58.577: W/System.err(800): java.io.IOException: SERVICE_NOT_AVAILABLE 07-11 14:17:58.577: W/System.err(800): at com.google.android.gms.gcm.GoogleCloudMessaging.register(Unknown Source) 07-11 14:17:58.577: W/System.err(800): at com.exp.code.utils.AsyncRequestWeb.doInBackground(AsyncRequestWeb.java:99) 07-11 14:17:58.577: W/System.err(800): at com.exp.code.utils.AsyncRequestWeb.doInBackground(AsyncRequestWeb.java:1) 07-11 14:17:58.577: W/System.err(800): at android.os.AsyncTask$2.call(AsyncTask.java:287) 07-11 14:17:58.577: W/System.err(800): at java.util.concurrent.FutureTask.run(FutureTask.java:234) 07-11 14:17:58.590: W/System.err(800): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) 07-11 14:17:58.590: W/System.err(800): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) 07-11 14:17:58.598: W/System.err(800): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) 07-11 14:17:58.609: W/System.err(800): at java.lang.Thread.run(Thread.java:856)
Any suggestions. I am stuck on this for a long time. Is it the problem of the firewall blocking the ports or issue with the code....
Quick replies are appreciated..this ha been going for long and i am really frustrated with this. Help me--
You received this message because you are subscribed to a topic in the Google Groups "android-gcm" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-gcm/Skhe3jG5DIg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-gcm...@googlegroups.com.To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/3aa90401-50d2-4202-8e9d-ee44796a2799%40googlegroups.com.
gleCloudMessaging.register() are you calling it in the main thread?
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/fca64f19-5a9b-4621-8415-f0102e53ba6e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/2bc96bf8-9949-41f5-a91a-557247378ced%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/4f545614-80a4-4cd3-be4e-d2e2976675bc%40googlegroups.com.
How to implement server side code where the situation is like
Different messages to be sent to different devices based on the type of message. for example :
HiI do have google play services and the way i implement is in the main thread have an asynctask call and in the doinbackground create a new thread and call register method.. is this approach correct or would you like to suggest anything else.
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/8012c133-5434-4564-9af2-fc42569f92e1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/1e3114d7-a190-4747-a030-9c5011f9a5df%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/6459c2aa-2f77-49e5-a7f9-630632959874%40googlegroups.com.