just_another_workout_timer icon indicating copy to clipboard operation
just_another_workout_timer copied to clipboard

Timer is not ticking (or ticking slowly than real time goes) if the screen is turned off

Open krash84 opened this issue 3 years ago • 7 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:

  1. Configure a set and an exercise (2 minutes)
  2. Click on the Start button
  3. Turn off the screen (I am pressing the "power" button on the smartphone)
  4. Wait for 40 seconds
  5. Turn on the screen
  6. 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

krash84 avatar Jun 04 '21 09:06 krash84

Not reproducible on Huawei MRD-LX1 with Android 9

micmor avatar Jun 11 '21 19:06 micmor

I can't reproduce this either, but it seems to be a problem with Flutter itself (https://github.com/flutter/flutter/issues/44719, https://github.com/flutter/flutter/issues/32164). At the moment, this isn't something i can fix.

blockbasti avatar Jul 08 '21 05:07 blockbasti

@blockbasti Reproducible in Android 11

lamyergeier avatar Aug 24 '21 22:08 lamyergeier

Reproducible with Android 10

bastel42 avatar Sep 13 '21 08:09 bastel42

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.

zcattacz avatar Nov 23 '21 23:11 zcattacz

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.

slackfan avatar Jun 05 '22 09:06 slackfan

I experience the same issue on a Zenfone8 with Android 13

apetrynet avatar Jan 24 '24 15:01 apetrynet