Android Priya
Android Priya

Reputation: 676

Gcm messages are not coming in marshmallow but rest all devices are receiving

I have integrated gcm notifications. everything is working fine. server is giving success but notifications are not coming on marshmallow. i have tested in other versions also. they are receiving fine.

Upvotes: 1

Views: 562

Answers (2)

agomes
agomes

Reputation: 331

Have a look at http://android-developers.blogspot.ae/2015/10/how-google-cloud-messaging-handles-doze.html

Android 6.0 Marshmallow introduces a new power saving feature called ‘Doze’ which may be affecting your notifications.

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).

Upvotes: 1

Vaiden
Vaiden

Reputation: 16122

There is no known problem in receiving GCM messages on Marshmallow.

So I suggest first testing with one of the many GCM tester apps on the Google Play: https://play.google.com/store/apps/details?id=com.eboyer.gcmtester

This would allow you to debug wether it's an issue in your app or the system.

Upvotes: 1

Related Questions