I realize this is potentially controversial but hear me out.
Ignoring the devices with massive batteries that can last days.
- Batteries in devices are better than they used to be.
- People have learnt when they can't use devices all day without consequence to the battery.
- Because of this people have learnt to manage their usage so that they get through the day without running out of power. After all its them that suffer if the battery is drained.
- People do this through a combination of managing their usage, recharging during the day and disabling radios and background tasks that they don't want or need.
So, if people have learnt to use their devices so that battery life isn't an issue, I think we're at a point where developers don't need to think about optimising their code to minimize power consumption.
Yes, some apps require intense processing or network activity that requires extra power consumption but this shouldn't be an extended event.
Also, line of business apps can have extra, special requirements for preserving battery life and ensuring usability. They're a hopefully obvious exception.
Some games are particularly bad at this and this should clearly be avoided. If I play a game for half an hour and it uses up half of the power in the battery (naming no names) then something is definitely wrong.
Of course this all comes with a disclaimer. I accept no responsibility for bad reviews or other negative consequences if your app drains a person's battery.
If you're an app developer, do you think about the battery consumption of your apps?