startAutomaticBackgroundSync

abstract fun startAutomaticBackgroundSync(timeOutInSeconds: Long, repeatDelayInSeconds: Long)

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.