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

Alarms/Timer not working on Android 9 Pie #125

Closed
tomturbu opened this issue Jan 11, 2019 · 8 comments
Closed

Alarms/Timer not working on Android 9 Pie #125

tomturbu opened this issue Jan 11, 2019 · 8 comments
Labels

Comments

@tomturbu
Copy link

Hi,

first of all, many thanks for these really great apps!

I have a Motorola One with Android Pie and SimpleClock. There seems to be an issue with alarms and also with timers, once the display gets locked, or the phone goes to sleep.

I've read a similar issue with the app clock+, and it seems that with Android 9 they changed a few things regarding running applications in the background.

I've already disabled battery optimization settings for SimpleClock.

How to reproduce?

Alarm:
Create an alarm for 5 minutes in the future, lock/sleep your phone, wait for the alarm to notify you, which will not happen.

Timer:
Create a timer for i.e. 1 minute, lock/sleep your phone, wait one minute, nothing will happen...

best regards!

@tibbi tibbi added the bug label Jan 11, 2019
@dietercastel
Copy link

There seems to be similar bugs in other Alarm Clock apps e.g. philliphsu/ClockPlus#53
It might be either an Android or Settings problem? Maybe try to whitelist the app in do not disturb mode?

@tibbi
Copy link
Member

tibbi commented Mar 18, 2019

there are so many system related things that can break reminders and alarms, that Im not even trying to get it right. Just check Google Clock reviews, how many people are complaining about it being unreliable at https://play.google.com/store/apps/details?id=com.google.android.deskclock&showAllReviews=true . If they cannot make it reliable, I cannot do it either.

@zoj613
Copy link

zoj613 commented May 1, 2019

I suggest adding clock to the unoptimized apps list. That fixed it for me.

@genodeftest
Copy link

Probably a duplicate of #118.

@dietercastel
Copy link

I suggest adding clock to the unoptimized apps list. That fixed it for me.

You mean going to "Settings" -> "Battery Optimisation" -> "All Apps" -> "Clock" (with the orange icon) -> Change to "Not Optimised"?

I did that now, hope it helps. But haven't been missing alarms lately though.

Does someone know whether an app can request that permission from code in Android? That might be a useful (optional) addition I'd like to look into.

@zoj613
Copy link

zoj613 commented Oct 16, 2019

I suggest adding clock to the unoptimized apps list. That fixed it for me.

You mean going to "Settings" -> "Battery Optimisation" -> "All Apps" -> "Clock" (with the orange icon) -> Change to "Not Optimised"?

I did that now, hope it helps. But haven't been missing alarms lately though.

Does someone know whether an app can request that permission from code in Android? That might be a useful (optional) addition I'd like to look into.

yes. That option is supposed to protect the app from being dozed by the aggressive battery management of the system. I haven't had to do it at all now that im using a custom rom (AOSP and dotOS). It was an issue with the OEM's battery management software.

@anat0lius
Copy link

anat0lius commented Feb 18, 2020

On Android 10 too :(

Disabling battery optimization doesn't work

@tibbi
Copy link
Member

tibbi commented Apr 24, 2022

Android 9 wont be supported anymore, retry again with 5.7.0

@tibbi tibbi closed this as completed Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants