I got a strange problem. I get a push notification on my mobile device if it is connected to the Internet at the moment the message was sent from the server. But if it is not connected to the Internet at that time, and rather, I connect to the Internet after a while. I do not receive this notification. According to my information, all these notifications should be displayed whenever we are online, because the GCM server stores all these messages. I receive a notification for all other applications. I also gave permission to wakelock in the manifest. What could be the problem? Anything from the server, on the client side or on the mobile? Please, help...
This value is sent to the GCM server from a third-party server (.Net server):
String postdata= "collapse_key=score_update&time_to_live=2419200&delay_while_idle=1&data.message=ββ" + message + "&data.time=" + System.DateTime.Now.ToString() + "®istration_id=" + deviceToken + ""
Thanks at Advance
ARIJIT
source share