How to Turn Off Doze Mode for Specific Apps in Android Marshmallow

BY GreenBot Staff

Published 15 Oct 2015

Android 6.0 Marshmallow has a feature called Doze mode, which prevents specific tasks from running if your phone’s been sitting idle for a while. The idea here is to save battery life by reducing power draw while you aren’t using your phone.
But if you have a particular app that you want to leave running unchecked, no matter what, you can disable Doze mode for that app. Here’s how to do it.Open the Settings app and tap Battery. Tap the Options menu button on the three dots in the upper right, then tap Battery optimization. Tap the downward-pointing arrow, then tap All apps from the menu.
check an app, any app.

Next, tap the app name you want to switch off Doze mode. In the box that appears, tap Don’t optimize. Once you’re done, tap Done.

For example: Switching off Doze mode for the Gmail app.

You can turn the Doze mode back on at any time. Repeat the above process, And when prompted, tap Optimize instead. You can do this for any app. The Doze Mode was available on Android 6.0 Marshmallow and higher.