我已经集成了 gcm 通知。 一切正常。 服务器正在提供成功,但棉花糖上没有收到通知。 我也测试过其他版本。他们收到罚款。
最佳答案
看看 http://android-developers.blogspot.ae/2015/10/how-google-cloud-messaging-handles-doze.html
Android 6.0 Marshmallow 引入了一项名为“Doze”的新节能功能,这可能会影响您的通知。
when using normal priority (the default priority), there are a number of different behaviors when the device is in Doze, including:
The most important change is that messages will be batched for devices in Doze. When the device enters its idle maintenance window, the batch of messages will be received.
We discard messages whose time_to_live expires while the device is in Doze (including TTL=0).
关于android - Gcm 消息不会以棉花糖形式出现,但其余所有设备都在接收,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37413041/