blockbasti / just_another_workout_timer

A simple timer for your workouts, built with Flutter!
MIT License
130 stars 23 forks source link

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

Open krash84 opened 3 years ago

krash84 commented 3 years ago

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):

micmor commented 3 years ago

Not reproducible on Huawei MRD-LX1 with Android 9

blockbasti commented 3 years ago

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.

lamyergeier commented 3 years ago

@blockbasti Reproducible in Android 11

bastel42 commented 3 years ago

Reproducible with Android 10

zcattacz commented 2 years ago

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.

slackfan commented 2 years ago

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.

apetrynet commented 7 months ago

I experience the same issue on a Zenfone8 with Android 13