如果 Android 设备处于屏幕关闭的待机模式,Google 云消息传递是否可以向该设备发送消息?或者 GCM 是否必须等到设备退出待机模式才能接收消息?
在文档中它指出:
Google enqueues and stores the message in case the device is offline. When the device is online, Google sends the message to the device.
但是没有说明离线 或在线 是什么意思。即使屏幕关闭,设备是否仍在线?
最佳答案
是的移动设备可以在待机模式下接收消息,除非并且直到它连接到互联网。
在他们的文档中,online
表示已连接到 internet
,offline
表示未连接到 internet
。
关于android - Google Cloud Messaging 是否会向处于待机模式的设备发送消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16850227/