isBackgroundSyncEnabled top-level property

Future<bool> isBackgroundSyncEnabled

Experimental API On iOS, this property always returns true. iOS HealthKit Background Delivery is an app-level entitlement, and does not require explicit user consent.

Overview

Whether Background Sync on Android is enabled at the moment.

Implementation

Future<bool> get isBackgroundSyncEnabled async {
  if (!Platform.isAndroid) {
    return true;
  }

  return VitalHealthPlatform.instance.isBackgroundSyncEnabled();
}