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?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With