java - GCM not receiving somtimes -
I am using Java servlet with mysql but GCM works but sometimes it does not send the message to the device Used to be.
This is my code
from sender = new sender (GOOGLE_SERVER_KEY); String mess = "few messages"; Message message = new message.bilder (). Timetolyive (0). Deliveully (true) .addData (MESSAGE_KEY, mesg) .build (); (MMM MemberModel Member: Member Modell) {If (Member .Uriid! = Creator ID) {try system.out.println ("regId:" + member.gcm); Sender.send (message, member.gcm, 1); } Hold (exception e) {}} hold (exception e) {System.err.println (e.getMessage ()); }}} Please help me fix this problem.
If you can send and receive GCM messages at times, there is no error in your project
Again, I also faced this problem, I modified my code several times, and raised a question in Stackworflow.
But I got GCM messages after 2 days.
This is probably the problem with your phone or GCM server
Comments
Post a Comment