-
Notifications
You must be signed in to change notification settings - Fork 7
Time schedule syncs don't work when device idle #83
Copy link
Copy link
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels