timer-machine / timer-machine-android

⏲ A highly customizable interval timer app for Android
GNU General Public License v3.0
172 stars 16 forks source link

Design for battery saving? #84

Closed yfdyh000 closed 2 months ago

yfdyh000 commented 2 months ago

I noticed that the app's battery statistics included long periods of "stay awake" (保持唤醒状态), and I guess it stayed awake to check timers and update status and notifications. So, maybe add a mode that increases the wake interval and reduces the wake-up time, such as setting a system waker to wake up every minute unless something is happening in the near future or the screen / the app is active?

By the way, I've added a timer for an hourly action.

DeweyReed commented 2 months ago

The app values more accurate timing, and battery consumption is an inevitable cost.

If the app set an alarm and woke up the device later, what would happen on many devices would be that the alarm never got triggered and failed to remind the user eventually.

Moreover, despite everything the app has done, the system still kills it in the background on some devices.

If you need a long timer, please consider the system countdown timer, which is more reliable and energy-saving.