Update: http://www.aqua-mail.com/forum/index.php?topic=4650.msg26538#msg26538
I recently received a message from Google Play Policy Team, and have to update the app to remove the "set ignore in doze mode" permission for Android 6.0+ (or else the app will be delisted).
For those who wish to know the details: https://plus.google.com/+KostyaVasilyev
With the permission removed, the process of excluding the app from Doze Mode "battery optimizations" is going to be more complicated for the user.
Kostya,
First of all, I am glad to hear that Google gave you the permission to keep the permission. [pun intended]
I was rather sad upon reading the news initially, thinking that Google in it pursuit for locking everybody in its ecosystem made yet another ugly move.
But then I thought about it, and decided that it is quite possible that Google is finally making it right what they've made wrong in the first place.
They had not allowed Android users disabling specific permissions for the overzealous apps (or the apps where the developers are lazy to think what is actually needed). In a way I understand why that could've happened; otherwise the users who randomly disabled the permissions could be complaining that the app isn't working... But that could've been solved by the OS asking: your app will not be able to do
this unless you grant it
this permission; would you like to do that?
As a result, - we have a bunch of apps that without
real need (besides being nosy) "run at startup", "read contacts", and run all the time, eating away resources. (I had an app for a professional conference (mainly the program and personal planner for the conference) that wanted to run all the time, even way before the conference started, and after it ended.)
And of course, Google itself is guilty on most of those charges. (We discussed that previously.)
So, now, after the popularity of the 3rd party "optimizers", it seems, Google realized that they can improve battery performance in a similar fashion at the system level, obsoleting those "optimizers". And they are trying to close loopholes for
most apps. I am glad that there is someone there, at Google, who has some reasoning remaining, as the exception for Aquamail shows.