1

I have implemented chat in my project and using GCM for it.In this i have came across the strange issue.

I have do following steps for it.

  1. Send chat message to server.
  2. Server fetches reg key of device and send push message to GCM server.
  3. Now on other device in which i am receiving push message i tried waiting for the push message for a long time.

But i did not receive the push message.

  1. Now when i turn my wifi off and on it again or switch from 3g to wifi or vice-versa, i get all push messages at once.

I have read GCM docs and i also have seen these two questions in Stackoverflow.

I have also referred a google groups question regarding this issue

Problem in getting messages on device using GCM.

But i didn't get any solution till now.

I am using Asp.net at the server side. Any help or suggestion is appreciated.

Community
  • 1
  • 1
Nirav Tukadiya
  • 3,367
  • 1
  • 18
  • 36
  • I have came through it. Don't know what to do? Let me take help also. It's really urgent for me also – Jai Jun 01 '13 at 14:19
  • I know it is not an answer for your question but you can take it as hint, GCM does not guarantee delivering the message to the intended device, so why you don't use asmack which implemented xmpp protocol instead which will be more helpfull for your application – Husam A. Al-ahmadi Jun 01 '13 at 14:29
  • 1
    possible duplicate of [Google Cloud Messaging - messages sometimes not received until network state changed](http://stackoverflow.com/questions/13835676/google-cloud-messaging-messages-sometimes-not-received-until-network-state-cha) – Baris Akar Aug 05 '15 at 12:03

0 Answers0