start Automatic Background Sync
abstract fun startAutomaticBackgroundSync(timeOutInSeconds: Long, repeatDelayInSeconds: Long)
Content copied to clipboard
Launches infinite self rescheduling background syncs via the WorkManager.
While dozing, syncs will only occur during maintenance windows. For reliability it's recommended to also start a long running foreground service along with disabling battery optimizations.