Reputation: 773
I try to used GCM to send message to android. But I have a problem that, e.g. first, second and third message delivered to android and next messages not delivered. After cca X minutes again some messages are delivered and then not delivered. There is URL to call sending notification to GCM Server. Android device is still connected to internet (no sleep, no display off) Do I have a good parameters?
https://android.googleapis.com/gcm/send
and parameter:
String.Format("collapse_key={4}&time_to_live={3}&delay_while_idle=0&data.message={0}&data.time={1}®istration_id={2}", value, System.DateTime.Now, deviceId, timeToLive, DateTime.Now.Ticks);
I receive from server response: id=0:123354....
Upvotes: 0
Views: 644