mvmike / min-cal-widget

Minimal calendar widget
BSD 3-Clause "New" or "Revised" License
89 stars 15 forks source link

Updating not working #41

Closed bushrang3r closed 5 years ago

bushrang3r commented 5 years ago

The widget (1.2.2 from f-droid) isn't updating each day. If I tap on it (which opens the calendar app) and then go back to the home screen, it updates (highlights today's date). It was working fine for me in all versions before this one.

Android 9.0 Galaxy NOTE 4 Resurrection Remix Rom

mvmike commented 5 years ago

Update rate is managed by the system, not the widget itself. Although it's configured to be updated every 30mins (the minimum period according to android documentation), it is not guaranteed to occur exactly on time, so it might differ a bit.

In any case, tested in different devices and, considering this potential small delay, the widget is being updated consistently. On the other hand, update rate/config hasn't changed in the widget since the first versions, could it be something related with your OS that's limiting background processes?

bushrang3r commented 5 years ago

Yes, the widget was updating reliably before with Oreo. I'm now using 9.0 (Pie). By 'not updating' I mean it sometimes goes 4 or 5 days without updating and so it's still highlighting the date from 4-5 days ago. I have turned off battery optimization for the app but I don't think that would be stopping it from updating for that amount of time. I'll test it for a bit longer.

mvmike commented 5 years ago

Also on android 9 and i didn't notice any difference coming from 8.1

Let us know if it this persists

bushrang3r commented 5 years ago

image_2019-04-02_09-51

mvmike commented 5 years ago

Been checking how to solve this and there is no way to enforce the widget update, it's the system/OS who's handling the call to the AppWidgetProvider API, specifically the onUpdate method (the one used for updating the current date amongst other stuff).

I'd really like to be more of help, but it seems something related to your current OS that can not be tackled from our end :(

Will close the issue but feel free to reopen it if you have any idea on how to do solve this

mvdan commented 5 years ago

@bushrang3r as a random idea, try removing the widget and adding it again.

bushrang3r commented 5 years ago

Thanks @mvdan Removing and re-adding the widget seems to have fixed the problem.