Auto-oppdater widget ved posisjonsendring #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olemd/tilfluktsrom#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Update the widget to refresh automatically when the device moves significantly, using WorkManager.
Implementation
androidx.work:work-runtime-ktxdependencyPeriodicWorkRequest(minimum 15 minutes) that:ShelterWidgetProvider.onEnabled(), cancel inonDisabled()Why
The current widget only updates on manual tap. If the user commutes or travels, the widget shows stale data. A 15-minute background check keeps it useful without meaningful battery impact.