-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Sunset/Sunrise widget does not updates automatically #806
Comments
Thanks for the report. I think this is caused by aggressive battery optimization by your specific device. Unfortunately Xiaomi devices have a reputation for this. It might be possible to fix it by following these recommendations, or one of the solutions at https://dontkillmyapp.com/.
Very likely. If widgets fail to update, I'm also betting that alarms/notifications fail too (since both rely on the same underlying AlarmManager). |
This comment was marked as off-topic.
This comment was marked as off-topic.
Hello, I have the same issue on the Samsung Galaxy a34 5g and not in my old a7(2018), probably the economy battery mode. |
I have the same problem with the clock widget, on a Pixel 7 Pro, using GrapheneOS. It was updating fine until just recently. Allow background battery usage is enabled. |
@ericjs When you say recent, is this something you would attribute to the The targetSdk was bumped from 25 to 28 recently, while api26 introduces additional background restrictions. I am thinking that the update broadcast itself might actually be blocked (in which case I'm very sorry, I should have caught it sooner). |
@forrestguice I wish I could tell you, but I haven't paid close enough attention to updates and don't know if I realized it wasn't updating right away. I can't rule out it having been a GrapheneOS update. Would anything in the logs suggest whether it was or wasn't the update broadcast being blocked? |
(When I said the logs, I was thinking there were some logs I'd seen in Suntimes, but I think I the logs I was remembering were in a different app. I spent some time thinking my clock widget was from another Clock app before I figured out it was from Suntimes. So my question about logs probably wasn't very helpful, sorry.) |
I suppose I should at least clarify that I am running 0.16.0. And that by "recent" I mean I noticed in the last couple days. I'm just not sure when I got the Suntimes update. |
@ericjs Thanks for the reply. |
assign widget `updateInterval` so that in addition to the normal update loop, the system sends a broadcast every ~6 hours, restoring exact widget update alarms (that may have been killed due to battery opt) (#806)
detect stale widgets (and perform an update) whenever the `ACTION_APPWIDGET_UPDATE` broadcast occurs (#806)
assign package name to widget update intents (so they are explicit) (#806)
assigns `updateInterval` to trigger recovery of stale widgets (#806). * 1 hour: clock, alarm, and sun position widgets * 6 hours: sun and moon widgets * 24 hours: date and solstice widgets
@forrestguice Thank you! |
Thank you for the job! |
Describe the bug
Sunset/Sunrise widget does not update automatically. I need to click it in order to display up-to-date values (I've set to update widget on click).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The widget should display proper values at real time. Like no one expects that a clock requires click on its widget to display correct time...
Screenshots
Version Info:
My question regarding this is whether this affects sunset/sunrise notifications time?
The text was updated successfully, but these errors were encountered: