disable Auto Sync
Disables automatic background step synchronization.
Tears down the HealthKit background delivery observer (iOS/watchOS) or cancels the WorkManager periodic task (Android). Updates the persisted preference so auto-sync is not re-enabled on next app launch.
Idempotency: If auto-sync is already disabled, this is a no-op.
Kotlin
AFCore.smartWalking().disableAutoSync()
Log.i("SmartWalking", "Background sync disabled")Content copied to clipboard
Swift
try await AFCore.shared.smartWalking().disableAutoSync()Content copied to clipboard