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.
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.