android - Google Cloud Messaging 是否会向处于待机模式的设备发送消息?

标签 android push-notification google-cloud-messaging

如果 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 表示已连接到 internetoffline 表示未连接到 internet

关于android - Google Cloud Messaging 是否会向处于待机模式的设备发送消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16850227/

相关文章:

Android WebKit 聚焦文本区域不会绘制背景图像

android - 新位置 API Android。错误 "Call connect() and wait for onConnected() to be called"

Android:如何以编程方式设置 TableRow 中 ImageView 的宽度

iOS Firebase 推送通知 : How To Give Firebase User's Device Token And Send Notification

php - 未收到来自 Amazon SNS 的 GCM 推送通知

android - 使用 GCM 注册 ID 作为唯一 ID 对数据库进行 CRUD 操作?

android - Android上Service和Activity的通信

android - 由于应用程序/无效凭据错误,无法发送设备推送通知

javascript - 选项卡未处于焦点时的 Firebase 通知

google-app-engine - NoClassDefFoundError : javax.naming.directory.InitialDirContext 是一个受限类。在 Google App Engine 中使用 CCS (GCM)