Timer is not ticking (or ticking slowly than real time goes) if the screen is turned off
krash84 opened this issue · 9 comments
Describe the bug
Timer is not ticking (or ticking slowly than real time goes) if the screen is turned off.
To Reproduce
Steps to reproduce the behavior:
- Configure a set and an exercise (2 minutes)
- Click on the Start button
- Turn off the screen (I am pressing the "power" button on the smartphone)
- Wait for 40 seconds
- Turn on the screen
- There should be 1:20 minutes left, but you will see something like 1:45.
Smartphone (please complete the following information):
- Device: Honor 20 pro
- OS: Android 10
- Version 1.7.0
Not reproducible on Huawei MRD-LX1 with Android 9
I can't reproduce this either, but it seems to be a problem with Flutter itself (flutter/flutter#44719, flutter/flutter#32164). At the moment, this isn't something i can fix.
@blockbasti Reproducible in Android 11
Reproducible with Android 10
I have tick sound enabled, the ticks works most of the time, but there are times, one or two ticks are lost, during the session. Android 9.
I observe the same behavior using stock Android 12 on a Pixel 6 Pro.
Once the screen is off, the app is suspended exactly after 20 seconds. (30 sec timer, display off, wait 60 sec, display on, 10 sec remain).
Disabling battery optimization for the app does not fix this issue.
I experience the same issue on a Zenfone8 with Android 13