Reputation: 121
I am the developer of a messaging application. My application get put on an automatic power save mode which prevents messages from getting through.
When I go to the App Power Saving option on a Samsung phone (Settings->Battery->App Power Saving option), I can see that this option is "Disabled" for certain apps (like WhatsApp and Facebook messenger).
When I do a clean install of the WhatsApp application, the power saving mode gets disabled by default before I even open the app.
This seems to be specific to Samsung devices Android version 6.0.1 and higher.
Is it possible to disable power saving by default for my application?
Upvotes: 12
Views: 5926
Reputation: 4308
You can ask user to ignore battery optimizations: https://developer.android.com/training/monitoring-device-state/doze-standby.html#support_for_other_use_cases
But your use case needs to be acceptable for Google Play validation: https://developer.android.com/training/monitoring-device-state/doze-standby.html#whitelisting-cases
Upvotes: 1