Skip to content

Health Connector SDKOne Flutter API for every health platform.

Read, write, aggregate, and sync health data across Android Health Connect and Apple HealthKit — with one shared domain model, compile-time safety, and a zero-logging default.

Ship your first read in about ten minutes ​

Install the package, declare what your app needs on the platform you target, then call one connector.

bash
flutter pub add health_connector

Declare each data type you touch in android/app/src/main/AndroidManifest.xml, and make MainActivity extend FlutterFragmentActivity:

xml
<uses-permission android:name="android.permission.health.READ_STEPS" />
<uses-permission android:name="android.permission.health.WRITE_STEPS" />

Full Android setup →

The Dart is identical on both platforms:

dart
final connector = await HealthConnector.create();

await connector.requestPermissions([HealthDataType.steps.readPermission]);

final response = await connector.readRecords(
  HealthDataType.steps.readInTimeRange(
    startTime: DateTime.now().subtract(const Duration(days: 7)),
    endTime: DateTime.now(),
  ),
);

// Statically inferred as List<StepsRecord> — no cast required.
for (final record in response.records) {
  print('${record.count.value} steps at ${record.startTime}');
}

What the SDK covers ​

143
typed health data types
96
exercise types
112
aggregatable on device
0
bytes logged by default

In production

Built with Health Connector

See how teams use the SDK in real products.

Try it on your device

Explore the SDK in Health Connector Toolbox

Test permissions, health records, aggregations, and synchronization on a real device without first creating a Flutter project.

Available nowApp StoreiOS & iPadOS

Pick your entry point ​

Released under the MIT License.