Health Connect integration

Health Connect data, in your own cloud

Health Connect is the shared health store on Android, where the phone and the apps a user already trusts write their data. Open Wearables reads it through a mobile SDK in your own app and lands it in the same schema as every other source, self-hosted under an MIT licence.

Built on Open Wearables

  • Heart Monitor logo
  • Hundred logo
  • JustGains logo
  • Lifelong logo
  • MoveTogether logo
  • ROXFIT logo
  • Smarter Diagnostics logo
  • Suna logo
  • Yoboo logo

Data coverage

Health Connect data we support

One permission grant reads across everything the user already connected, and the first sync can reach as far back as the store holds.

  • Time series

    Timestamped samples rather than daily totals.

  • Sleep

    Stages, efficiency, time in bed and naps.

  • Heart

    Heart rate, resting heart rate, HRV as RMSSD and blood pressure.

  • Body

    Weight, height, BMI, fat, lean and skeletal muscle mass.

  • Vitals

    SpO2, respiratory rate, body temperature and blood glucose.

  • Activity

    Steps, energy, distance, floors climbed and hydration.

  • Performance

    VO2 max, power, speed, cadence, METs and running form.

  • Workouts

    Heart rate range, energy, distance, elevation and speed.

One connection, many apps

Apps we do not connect directly still arrive here

Most fitness apps and wearables on Android write to Health Connect, which makes it a route to sources with no direct integration. A companion app usually writes a subset of what its own API exposes, so where we connect a provider directly and you need the full depth, connect it directly.

  • Watches and trackers

    Wearables that sync to Health Connect through their own app.

  • Rings and bands

    Smart rings and recovery bands that sync to Health Connect.

  • Training apps

    Running, cycling and indoor training apps that log their sessions.

  • Smart scales

    Scales that log weight and body composition through their own app.

What working with Open Wearables gives you

Two views of the same deployment. One for the people wiring it in, one for the people signing it off.

  • One schema, not one per provider

    Health Connect arrives in the same shape as every cloud source, so your code carries no Android-specific branches and adding a watch integration later does not change the call.


    • Sleep
    • Body
    • Vitals
    • Activity
  • The SDK is the integration

    Health Connect has no cloud API, so reading it means code inside your app. That code is written, maintained and open, and your backend mints a short-lived user token, so the app secret never reaches the device.


    • Kotlin
    • Flutter
    • React Native
  • Background sync that survives the OS

    WorkManager schedules it and a foreground service carries it while it runs. Each sync moves only what is new, from a first-sync depth you choose: ninety days, thirty, or everything the store holds.


    • WorkManager
    • Incremental
  • Per-app attribution kept

    Every record carries the name of the app that wrote it, along with the device model where the app reported one, so a reading from a chest strap app and one from the phone stay distinguishable.


    • Source app
    • Device model

How it works

From nothing to your first Health Connect query

  1. 01

    Bring it up

    Clone the repository and run it with Docker Compose. First API call in five minutes, before any provider is connected.

    Terminal

    git clone https://github.com/the-momentum/open-wearables.git
    cd open-wearables && docker compose up -d
  2. 02

    Add the SDK to your Android app

    Health Connect data lives on the device, so this is where the integration happens rather than in a developer portal. Add the Android SDK as a Gradle dependency, point it at your deployment and declare the Health Connect record types you need.

    Android SDK integration guide
  3. 03

    Ask the user for permission

    Android shows its own Health Connect permission screen, per data type, and the user decides what to share. Your app keeps its existing login, so there is no second account to manage.

  4. 04

    Query the user, not the provider

    Health Connect data arrives in the same schema as every other source, in your own database, so your application code carries no Android-specific branches.

    Mobile SDKs

The honest comparison

Hosted SaaS API, in-house build, or self-hosted

Where each one actually wins. If a hosted API fits your situation, use one.

Hosted SaaS APIBuild in-houseOpen Wearables, self-hosted
[01] The mobile SDKTheirs, in your appYours to write and maintainOpen source, in your app, forkable
[02] Where Android data goes firstTheir cloudYoursYour cloud account, your region
[03] Permission screenTheirs or yours, dependingYoursAndroid's own, inside your app
[04] The data modelTheirs, you build against their schemaYoursYours, in your database
[05] Per-app attributionWhatever they pass throughYours to preserveKept on every record
[06] Health Connect changesThey absorb themYour team tracks and adaptsFixed in a release you pull
[07] Cost shapeScales with monthly active usersSalaries and infrastructureFixed, flattens as you grow

What stays yours

The deployment, the data and what you build on it stay in your account, whoever runs it

Sovereignty

Android health data goes from the device to your cloud, with no aggregator in between.

Residency

It stays in the region you chose, provable by pointing at an account.

Control

What you build on top of Open Wearables is yours, and the schema and the data are in your account.

Your own reasons

No regulator forcing it. You want the data in your own account anyway.

Health Connect is one integration in the same API

You query a user rather than a provider, so somebody whose phone writes to Health Connect and somebody wearing a ring you connect through the cloud both come back in one shape. Adding either later does not change your code.

Browse all integrations

Deploy Open Wearables in your own cloud

The repository is public and the deployment is yours from the first commit. Start from the source, or bring us in to stand it up in your account with the SDK live in your app and validated on real devices.

FAQ

Do you have more questions?

What is Health Connect?

Android's shared health store. Apps write what they measured into one place on the device, and other apps read it with the user's permission, so it works as a hub rather than as one more device API. It ships with Android 14 and later, and installs from the Play Store on Android 10 to 13.

Is this the same as the Google Health API?

No, and the difference decides how much work the integration is. Health Connect is on-device, so reading it means shipping a mobile SDK inside your own app. The Google Health API is a cloud integration with OAuth and no mobile work at all. Both land in the same schema, but they are separate integrations with separate setup. See the Google Health API integration.

Do we need a developer account or an approval?

No. Health Connect access is a platform permission the user grants on their own device, so there is no application form, no review queue and no partner agreement. That is the main reason this integration can ship in the time a cloud provider spends waiting for approval.

Do we have to build a mobile app for this?

Not necessarily. Health Connect data never leaves the phone on its own, so an app has to read it. If you already have an Android app, this is an SDK addition. If you do not, the Connect App reads it for you, and the Google Health API reaches some of the same data through the cloud without any mobile work.

Which SDKs are available?

Native Android in Kotlin, plus Flutter and React Native wrappers over the same native core. The iOS SDK covers Apple Health on the other platform, so a cross-platform app uses one integration for both.

How does the data actually get to us?

The SDK reads Health Connect and pushes to your deployment. Background sync is scheduled through WorkManager, with a foreground service carrying an active sync, and each run moves only what is new. Your users do not have to open the app for data to arrive.

Can we limit how much history we pull on the first sync?

Yes. Set the depth in days, for example the last ninety, and the SDK syncs from the start of that day forward. The setting persists for later syncs. The default reads everything the store holds.

How is heart rate variability reported?

As RMSSD. That matters if you are comparing against a source that reports SDNN, such as Apple Health, because the two are different measures and should not be treated as interchangeable inside one score.

Does per-app attribution survive?

Yes. Every record keeps the name of the app that wrote it, so a reading from a chest strap app and a manual entry are distinguishable after they land in your database.

What happens when a user signs out or revokes permission?

Signing out clears the credentials on the device, and calling the disconnect endpoint before that reports it to your backend, so the connection is marked revoked rather than sitting idle. Permissions revoked in Android settings cannot be reported, because the SDK never runs again, so treat a connection that stops uploading as its own signal.

Can we combine Health Connect with other sources?

Yes, and that is the normal case. You query a user rather than a provider, so somebody with an Android phone and a connected ring returns in one shape.