Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How long does it take for a message from Google Cloud Messaging to arrive on device

How long does it take for a message from Google Cloud Messaging to arrive on a device?

I want to link my door bell with my Android App. The door bell I receive on a RaspberryPi which has an internet connection. I could connect to Google Cloud Messaging, but would the message arrive soon on my Android device?

like image 514
Bastiaan Avatar asked Feb 09 '13 16:02

Bastiaan


People also ask

How long does a push notification take?

The problem is that notifications do arrive, but sometimes (randomly), it can take up to 15 minutes for the messages to arrive at the device after they are sent.

How does Google Cloud Messaging work?

The first step in GCM is that a third-party server (such as an email server) sends a request to Google's GCM server. This server then sends the message to your device, through that open connection. The Android system looks at the message to determine which app it's for, and starts that app.


Video Answer


1 Answers

Almost immediately (1-2sec) if phone is active and has stable internet connection. But there is no 100% guarantee. If phone is sleeping it can take time. If you forgot to pay your carrier bills it will never come.

like image 198
Leonidos Avatar answered Sep 29 '22 12:09

Leonidos