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

倾然丶 夕夏残阳落幕 提交于 2019-12-18 06:12:25

问题


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?


回答1:


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.




回答2:


After months of using in on a production application I've come to notice that it's not so reliable. I've noticed it can take up to 20 minutes to receive a notification. I feel like I was getting much better speed and reliability from sending out an SMS text message.

Yes, it usually comes in a few seconds. But sometimes it can take a while.



来源:https://stackoverflow.com/questions/14790382/how-long-does-it-take-for-a-message-from-google-cloud-messaging-to-arrive-on-dev

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!