Searching...

How Google Cloud Messaging handles Doze in Android 6.0 Marshmallow

How Google Cloud Messaging handles Doze in Android 6.0 Marshmallow - Hallo sahabat ANDROID TUTORIAL, Pada Artikel yang anda baca kali ini dengan judul How Google Cloud Messaging handles Doze in Android 6.0 Marshmallow, kami telah mempersiapkan artikel ini dengan baik untuk anda baca dan ambil informasi didalamnya. mudah-mudahan isi postingan Artikel Doze, Artikel Featured, Artikel GCM, Artikel Google Cloud Messaging, yang kami tulis ini dapat anda pahami. baiklah, selamat membaca.

Judul : How Google Cloud Messaging handles Doze in Android 6.0 Marshmallow
link : How Google Cloud Messaging handles Doze in Android 6.0 Marshmallow

Baca juga


How Google Cloud Messaging handles Doze in Android 6.0 Marshmallow

Posted by, Laurence Moroney, Developer Advocate





Android 6.0 Marshmallow introduces a new power saving feature called ‘Doze’. A device enters Doze when the user leaves it unplugged and stationary for a period of time and with the screen off. When this happens, the system defers application activity to save power. It will periodically and briefly resume normal operations, called an idle maintenance window, in order to perform app syncing and other pending operations.



If your app uses Google Cloud Messaging (GCM), you will need to take into account the following behaviors for users whose devices are in Doze.



GCM has two priority types for messages, called high priority and normal priority. When using high priority, GCM attempts to deliver messages immediately, waking a device in Doze, as needed. With Android Marshmallow, nothing changes here.



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


Despite this, it is recommended that, unless absolutely necessary, you keep your notifications as normal priority ones, as this will minimize battery impact. They will still sync during doze mode as described above, and of course once the device exits Doze.



High priority messages should only be used by applications that need to generate an immediate notification to the end user such as a chat app notification or an incoming phone call.



To learn more about Google Cloud Messaging message priorities, visit the Google Developers site.



Demikianlah Artikel How Google Cloud Messaging handles Doze in Android 6.0 Marshmallow

Sekianlah artikel How Google Cloud Messaging handles Doze in Android 6.0 Marshmallow kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.

Anda sekarang membaca artikel How Google Cloud Messaging handles Doze in Android 6.0 Marshmallow dengan alamat link http://akatog.blogspot.com/2015/10/how-google-cloud-messaging-handles-doze.html

0 comments:

Post a Comment

 
Back to top!