By chance, you need to implement the registration and acceptance of messages through GCM clean requests. Registration and registerId of this type - f-6NNCK8ofQ:APA91bG7jidNV0GXPAboq1-i43qEfdMIl41atSlYw5x4B9puWACi3AYXCfe8-__b1Bfqo4kXCX-JQ2C6aRgigmmyaHwyFfWMbksqv3Z1bUge6XZYVDMe_KXOS_LGpaXFlFO399GWsBRO by request https://android.clients.google.com/c2dm/register3 implemented. But, messages sent on this registerId do not come, because The regular GCM did not open a socket for accepting messages. How can I receive messages on this registerId without using a regular GCM (in my product under windows)? And you can even not read them, just so that they go somewhere without error when trying to send.

  • Token, which registerId Google returns? To announce in the network, meaning that the pushes are sent to the device? - Android Android
  • Yes and yes. The difficulty is that the application that receives the pushes and the server that sends the pushes is not mine. But when I send the received registerId to the server and try to send a push to the device, I get an error (the server, not gcm). That is, when you try to send a push, an error occurs, although the device is registered. - Andrey Tsapenko
  • That is, this registerId tied to the user is stored on the server, but when sending a push, gcm gives an error. Then you need to know what the error is, most likely the request is formed incorrectly - Android Android
  • Request formed correctly 100%. The problem is that, apparently, the GCM service on the android opens a connection to its server and receives messages, but I just want to do the same, but without the android. And the server tries to send a message, but the connection is not open (or not registered), resulting in a sending error. So I would like to know how I can open this connection (you can not even take the fluff, just so that they go nowhere without error) - Andrei Tsapenko
  • How does GCM work? First, the device is registered on the GCM server and receives the registerId (token), sends this token to its server (third-party), this token is stored on this server in the database. Then, when sending messages, the server (third-party) sends messages to the GCM server, indicating all the tokens to which you want to send. The application on the device in the service catches the message from the GCM and displays the notification. Where do you want to go? - mit

0