google cloud messaging - android GCM doesn't work -


I use the example provided by goole and I created a client side application to receive notifications and One server side, both applications (code) provided by Google

I run applications on client side and I get registration_ID. Some large string, which is the bottom of the form does

APA 91 B Iguvat 98xLbivrXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLnDoEktCSVbOkT0-uFH2FaRnfpkRME2tzuvr0BycMNEhX_Ix1PV_XXXXXXXXXXXXXXXXXXXXXXN5 Acsisii_waa

This proves that I am the client application works Now server (Java, Google example):

  public static zero main (string [] args) {sender sender = new sender ("AIASAFXXXXXXX_XXXXXXXXXXXXXXXRQOnoGZW"); Message message = new message Builder (). Kolzeke ("1"). Timatolyive (3). Delawield (true) .adadata ("message", "this text will be seen in the notification bar!"). Build (); {RESULT RESULT = Sender send (message, "APA 91 BEGEVT 98xLbivrXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Nano Act VBOkT0-uFH2FaRnfpkRME2tzuvr0BycMNEhX_Ix1PV_XXXXXXXXXXXXXXXXXXXXN5 HCSE_Available", 3) Try; Println (result.toString ()); } Grip (IOException E) {// TODO Auto-Generated Catch Block e.printStackTrace (); }}   

This is the server when I run the server I found something as a result: [messageId = 0: 1341907115903155% 921c249a00000031] but no messages on the client And I do not know what the response from the server is to me? Is this a success reaction?

I need to understand what is wrong?

/ P>

When a third-party server posts a message to GCM And receive a message ID, it does not mean that the message was already distributed on the device. Rather, it means that it was accepted for delivery. What happens to him after accepting the message depends on many factors.

In the best case, if the device is connected to GCM, the screen is on, and there is no throttling restriction (see throttling), the message will be delivered immediately.

Comments