Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[android] Timer does not notify while in the background #66

Closed
CurtisTD opened this issue Nov 24, 2023 · 9 comments
Closed

[android] Timer does not notify while in the background #66

CurtisTD opened this issue Nov 24, 2023 · 9 comments

Comments

@CurtisTD
Copy link

Hey there,

Recently bought premium to get the notification support in the background for the timer. Not sure why but when my screen is off or I'm in another app, the timer still doesn't update in the background. I switch back to the app and it would be say 0:45/2:00 and then it updates and dings when I come back to 3:15/2:00.

Steps to repro:

  1. Open workout, start timer
  2. Sleep phone or switch to another app
  3. Wait a few mins, past the timer set
  4. Notice no timer ding.

Expected behavior:

Timer dings/notifies in the background.

Also don't know if there is supposed to be a persistent notif for the app, but I don't see it either.

Great app so far otherwise!

@astashov
Copy link
Owner

Could you please double-check the notification permissions for the apps in Android settings? Are notifications allowed?
On my pixel, I have them there:
image000000
image000001

@CurtisTD
Copy link
Author

@astashov awesome, so this fixed the problem when I'm in a different app and it now shows the notifications. I'm not sure why they were disabled lol.

However, this still doesn't fix when my screen is asleep. I will wake my phone and it will be past time and then ding.

@columndeeply
Copy link
Contributor

@CurtisTD Maybe your phone is restricting Liftosaur to save battery? On my phone you can change the battery settings for an app by going to "Settings" -> "Battery" -> "Battery Optimisation" -> "Liftosaur" -> "Don't optimise"

@CurtisTD
Copy link
Author

@columndeeply it could be. I thought unblocking the notifications fixed it but it's still a transient issue. Sometimes it works, sometimes it fails. Will see if unrestricting battery helps!

@astashov
Copy link
Owner

astashov commented Dec 1, 2023

@CurtisTD does it still happen? The battery trick worked?

@CurtisTD
Copy link
Author

CurtisTD commented Dec 1, 2023

@CurtisTD does it still happen? The battery trick worked?

It's very transient. I'd say like 80% of the time, it seems ok maybe a few seconds late. However, the other time I do not hear a ding even 30 seconds over.

@123marvin123
Copy link
Contributor

Maybe this issue is somehow related to the premium status not getting queried reliably (for me atleast)? I am also having the same issue regarding the timer but on the iOS app.

RPReplay_Final1716314268.mov

@MangoB1
Copy link

MangoB1 commented Jun 12, 2024

Same issue here and I have set battery optimization to unrestricted on my Samsung Galaxy S21

@astashov
Copy link
Owner

I think I fixed it? It asks for one more permission (to be fired in Do Not Disturb mode), but now it should ring even in silent mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants