Does the GCM deliver the messages in real time?

Asked

Viewed 138 times

2

I have two apps that need to communicate and I don’t want to keep asking the server if they have something new, I wanted something that would come out of one app to the other or from the server to the app. But I do not know if GCM (Google cloud message) sends messages in real time (or at least it seems), because there could not be a great delay between messages, ah and it is also important to keep the order that the messages were sent they are received.

1 answer

1

Follow what the documentation says:

Send a message. The application server sends messages to the client application:

  1. The application server sends a message to the GCM connection servers.
  2. The GCM connection server queues and stores the message if the device is offline.
  3. When the device is online, the GCM connection server sends the message to the device.
  4. On the device, the client application receives the message according to the platform specific application. See the documentation platform specific for more details.

For more information, please see documentation.
Greetings!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.