Home / Insights / Mobile App Development

Mobile App Development

Health Connect on Android: Integrating Fitness and Health Data Safely

Health Connect is becoming the standard way for Android apps to share fitness and health data, and Google has stopped new sign-ups for the Google Fit APIs. This guide explains how Health Connect works, the design decisions that matter, and how to integrate it without creating privacy, policy or data-quality problems.

TopicsMobile App Development

Key takeaways

  • Health Connect stores health and fitness data on the device and lets users decide, per data type, which apps can read or write it; it is built into Android 14 and available as an app on Android 9 to 13.
  • Google stopped new sign-ups for the Google Fit APIs on 1 May 2024 and says they will be deprecated in 2026, so new Android integrations should target Health Connect.
  • Read access is limited by default: apps can read other apps’ data from up to 30 days before permission was first granted, unless they obtain additional history access where supported.
  • Google Play requires a declaration and justification for each Health Connect permission and prohibits uses such as advertising or selling health data.
  • Design for partial permissions, duplicate sources and offline gaps: use aggregation for totals, keep a clear sync model with your backend, and test across Android versions.

If you run a fitness, coaching or wellness app on Android, your users expect it to pick up their steps, workouts, sleep and heart rate from the watch or other apps they already use, and to write their workouts back so other apps can see them. For years, Google Fit was the default route. That is changing. Google has closed the Google Fit APIs to new developers and is directing Android apps to Health Connect.

This guide is for product leads, CTOs and founders of fitness and wellness products who need to plan an Android integration, or migrate an existing one, as of September 2024. It covers how Health Connect works, the decisions that shape the architecture, Google Play’s policy requirements, and the risks we watch for. We build these integrations as part of our fitness and wellness app work, alongside Apple Health on iOS, and the guidance below reflects Google’s documentation and the questions our clients ask most.

What Health Connect is and why it matters now

Google’s Health Connect developer guide describes it as an Android platform where, with the user’s permission, apps can share and combine health and fitness data. It stores and structures that data and accounts for how different types are measured: an instantaneous heart rate reading, a step count over an interval, or a sleep session with stages. Health Connect is compatible with Android 9 (API level 28) and higher. On Android 14 it is part of the operating system; on Android 13 and lower, users install it as an app from Google Play, and your app should check availability and guide the user if it is missing.

Why the timing matters

The Google Fit developer page states that the Google Fit APIs, including the REST API, will be deprecated in 2026, and that since 1 May 2024 developers cannot sign up to use them. Google recommends Health Connect for step tracking and mobile-first Android apps. If your app already uses Google Fit, you have time, but not unlimited time. If you are building now, there is no reason to start on Google Fit.

What changes for your architecture

AspectGoogle Fit APIsHealth Connect
Where data livesGoogle’s cloudOn the user’s device
AuthorisationOAuth scopes via a Google accountAndroid permissions granted per data type in Health Connect
RegistrationGoogle Cloud Console projectGoogle Play Console declaration of health permissions
Server accessREST API from your backendNone; your app reads on device and syncs to your backend itself
StatusClosed to new sign-ups; deprecation planned for 2026Recommended path for Android apps

The biggest shift is the last-but-one row. With Health Connect, there is no server-side API to call. If your coaching dashboard or analytics need the data, the Android app must read it and send it to your backend, which makes sync design a core part of the project.

Data types and the permission model

Health Connect organises data into categories. Google’s data types reference covers activity (steps, distance, exercise sessions, calories burned, speed, power), body measurements (weight, height, body fat), cycle tracking, nutrition and hydration, sleep sessions with stages, and vitals such as heart rate, resting heart rate, blood pressure, blood glucose, oxygen saturation and respiratory rate.

Permissions are granular. Your app declares read and write permissions per data type in its manifest, requests them at runtime, and the user can grant some, all or none, and revoke them later in Health Connect’s settings. That has product consequences:

  • Ask for less. Request only the types a feature needs, at the moment the user turns that feature on. A running app does not need blood glucose.
  • Explain first. Show your own short explanation before the system dialog, tied to a visible benefit.
  • Handle partial grants. If a user grants steps but not heart rate, the feature should degrade gracefully, not fail.
  • Check on every session. Permissions can be revoked at any time; check before reading and handle the denial path.

Cycle tracking and other sensitive types

Some categories carry more risk: reproductive health, clinical vitals and anything that could reveal a condition. Google Play applies heightened scrutiny to these, and so should your own privacy review. If the feature does not clearly need them, leave them out.

Reading, writing and syncing data correctly

Read limits you must design around

Google’s guide to reading data from Health Connect sets out the default limits. By default, apps can read data from up to 30 days before any permission was first granted. On Android 14 and higher, an app has no historical limit on reading data it wrote itself, but a 30-day limit applies to data from other apps; on Android 13 and lower, the 30-day limit applies to all data. Reading older records requires an additional history permission where the platform supports it; without it, the attempt returns an error. Reads normally happen while the app is in the foreground, and reading in the background needs a further permission and a feature availability check.

For product owners, this means a new user will not see years of history imported on day one unless the extra permission is supported and granted. Set expectations in onboarding and design charts that look sensible with a month of data.

Getting totals right

When a user has a phone and a watch both counting steps, naive reads double-count. Google recommends using the aggregation API for cumulative values such as steps, because it handles duplicate records from multiple sources and reduces the chance of rate limiting. Use record-level reads when you need the detail, such as individual workout sessions, and filter by data origin when you need data from one specific app.

Writing data back

If your app records workouts, writing them to Health Connect makes your app a good citizen in the user’s ecosystem. Write complete records with accurate start and end times, time zones and metadata identifying your app, and avoid writing the same session twice after a retry.

A sync model that holds up

  1. Read on device after permission is granted, paginating through large result sets.
  2. Store a sync checkpoint so the next read fetches only changes since the last successful sync.
  3. Send data to your backend in idempotent batches, keyed so retries do not create duplicates.
  4. Record the source app for each record so coaches and users can see where numbers came from.
  5. Handle revocation: stop syncing new data, and decide with your privacy lead what happens to data already on your servers.

Google Play policy: what you must declare and what you must not do

Health Connect permissions are not just a technical setting. Google Play’s Health Connect permissions policy requires you to declare use cases in Play Console that match what your app actually does, request only the specific permissions your features need, and justify each one. Requests are reviewed, and Google lists weak justifications, misalignment with approved use cases and bulk permission requests among common reasons for denial.

Permitted examplesProhibited examples
Fitness, wellness and coachingSelling or transferring health data to third parties, including data brokers
Rewards programmes tied to healthy habitsUsing health data for advertising, including personalised ads
Corporate wellness programmesUsing health data for credit, insurance, employment or lending decisions
Medical care, such as condition or medication managementSharing data with third parties without explicit consent
Human-subjects research with consent and ethics approvalMedical-device uses without the required regulatory clearance

The policy also expects a clear, accessible privacy policy covering what health data you collect, how you use, store and share it, retention and deletion, and security. It requires encryption at rest and in transit, access controls, and compliance with laws in every region you distribute to, such as GDPR. For example, a corporate wellness app serving UK and Australian employers would need its Play declaration, in-app disclosures and employer contracts to say the same thing about who can see which data.

Plan the declaration early. Submitting it in the final week before launch is a common cause of avoidable delays.

Migrating an existing Google Fit integration

Migration is rarely a like-for-like swap, because Google Fit was cloud-centric and Health Connect is device-centric. Google’s migration guidance describes the differences: registration moves from Google Cloud Console to a Play Console declaration, OAuth is replaced by on-device permissions, and storage moves from the cloud to the device. It also advises offering the new integration to existing users as an option, rather than forcing them to disconnect from Google Fit abruptly.

A phased approach

  1. Inventory which Fit APIs you use: recording, history, sessions, sensors or goals, and which features depend on each.
  2. Map data types to Health Connect records and note gaps or differences in units and granularity.
  3. Redesign server access. Anything your backend pulled from the Fit REST API must now come from the app’s sync.
  4. Run both in parallel for a period, with Health Connect offered to new and existing users, and compare totals for consistency.
  5. Retire Fit once usage has moved and well ahead of the 2026 deprecation.

Expect some numbers to differ between the two integrations because of deduplication and source differences. Decide in advance how you will explain that to users and coaches.

Risks, testing and cost drivers

Risks to manage

  • Privacy exposure on your servers. Health Connect protects data on the device; once you sync it, protection is your job. Minimise what you store, encrypt it, restrict access and set retention periods.
  • Medical claims. Wellness apps are generally not medical devices. Avoid diagnostic language unless you have gone through the relevant regulatory process.
  • Data quality. Different sources measure differently. Show sources, use aggregation, and avoid presenting precise-looking numbers you cannot stand behind.
  • Availability. On Android 13 and lower, Health Connect may not be installed or may need an update. Build the install and update prompts into onboarding.
  • Policy change. Google updates Health Connect features and Play policy; budget for periodic review.

Test matrix essentials

ScenarioWhat to verify
Android 14 vs Android 13 and lowerAvailability checks, install prompts, read limits
Partial and revoked permissionsGraceful degradation, no crashes, clear messages
Phone plus watch sourcesNo double counting in totals
Offline and retriesNo duplicate records written or synced
New user with no historyCharts and insights that make sense with little data

Our guide to building a mobile test matrix you can afford explains how to choose devices and OS versions, and our article on planning for Google Play target API levels covers the platform deadlines that will affect this integration over time.

Cost drivers

The effort depends on the number of data types, whether you write as well as read, how much backend sync and deduplication you need, whether you are migrating from Google Fit, and whether you must match an existing iOS integration. If you are building both platforms, our guide to HealthKit permissions, data rules and architecture covers the iOS side, and designing one shared data model for both saves rework.

Integration checklist

  1. List the features that need health data and the minimum data types for each.
  2. Draft the Play Console declaration and privacy policy text before development starts.
  3. Design the permission flow with explanations and partial-grant behaviour.
  4. Define the sync model, checkpoints, idempotency and retention on the backend.
  5. Use aggregation for totals and record sources for every record.
  6. Test across Android versions, sources, permission states and offline conditions.
  7. Plan the Google Fit retirement if you have an existing integration.

Frequently asked questions

Does Health Connect send data to Google’s servers?

Health Connect stores data on the user’s device, and access is controlled by permissions the user grants per data type. If your app needs the data on a server, your app reads it and sends it to your own backend, and you are responsible for protecting it there.

Which Android versions does Health Connect support?

Google’s documentation says Health Connect is compatible with Android 9 (API level 28) and higher. It is built into Android 14; on Android 13 and lower, users install it from Google Play, so your app should check availability and prompt the user if needed.

Can we import a user’s full history when they first connect?

Not by default. Apps can read data from up to 30 days before permission was first granted, and reading older records requires an additional history permission where supported. Design onboarding and charts to work with a month of data.

Do we still need Google Fit if users wear a smartwatch?

Google stopped new sign-ups for the Google Fit APIs in May 2024 and plans to deprecate them in 2026. Many watch and fitness apps write to Health Connect, so reading from Health Connect covers data from multiple sources without a separate Fit integration.

Can we use health data to personalise advertising or offers from partners?

No. Google Play’s Health Connect policy prohibits using health data for advertising, including personalised ads, and prohibits selling or transferring it to third parties such as data brokers.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. Android Developers: Health Connect guide — accessed 9 November 2026. What Health Connect is, how it structures measurements, and compatibility with Android 9 (API level 28) and higher.
  2. Google for Developers: Google Fit — accessed 9 November 2026. Google Fit APIs closed to new sign-ups from 1 May 2024 and planned deprecation in 2026; Health Connect recommended for mobile-first Android apps.
  3. Android Developers: Read data from Health Connect — accessed 9 November 2026. 30-day default read window, Android 14 versus 13 behaviour, history and background read permissions, aggregation and pagination.
  4. Android Developers: Health Connect data types — accessed 9 November 2026. Data categories including activity, body measurement, cycle tracking, nutrition, sleep and vitals.
  5. Google Play Console Help: Health Connect permissions policy — accessed 9 November 2026. Declaration and justification requirements, permitted and prohibited uses, privacy policy and security expectations.
  6. Android Developers: Google Fit to Health Connect migration guide — accessed 9 November 2026. Differences in registration, authorisation and storage, and advice to offer the new integration to existing users.

Planning a Health Connect integration or a move off Google Fit?

We can map your data types, Play declaration and sync design, and build the integration alongside Apple Health so both platforms share one data model.