Skip to content

Time schedule syncs don't work when device idle #83

@ChimaeraXY

Description

@ChimaeraXY

I've noticed my syncs weren't triggering when I set long cycle durations (3+ hours) and leave the device idle for long periods.

Disclaimer: I know nothing of Android development, but I suspect the issue is SystemClock.uptimeMillis() under-reporting uptime when the device is idle (/DeviceState.kt, https://developer.android.com/reference/android/os/SystemClock). I can somewhat confirm this is happening because logcat time and "Time window updated:" list a time since boot much shorter than actual uptime.

Would elapsedRealtime() work better?

Big fan of your work. Keep on keeping on.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions