Blog

    Google Fit to Health Connect Migration

    By GauravNovember 14, 202610 mins read
    On this page

    Many health and wellness apps on Android read steps, heart rate, weight or sleep through the Google Fit APIs. Those APIs are ending. Google's migration guidance says the Google Fit Android and REST APIs are scheduled for end of service by the end of 2026, and apps that have not moved will lose the data they depend on.

    This guide is for teams running health apps, remote monitoring programs and wellness products that still use Google Fit. It covers what is ending, which replacement path fits your app, how to map data types and permissions, what to do about historical data and backend services, how to test, and how to communicate the change to users.

    What does moving from Google Fit to Health Connect involve?

    Still reading health data through Google Fit?

    Agnotic migrates Android health apps to Health Connect and cloud integrations to their replacement APIs.

    Moving from Google Fit to Health Connect means replacing your app's Google Fit API calls with Health Connect's on-device data store and permissions, mapping each Fit data type to its Health Connect record type, asking users for new permissions, and changing any backend that relied on Fit's cloud data. Cloud-based integrations may need a different replacement altogether.

    The work is more than swapping one library for another. Health Connect stores data on the device and gives users fine-grained control, so how and when your app reads data changes along with the code.

    Treat it as a small product release with its own plan: an owner, a mapping document, a test plan and a user communication schedule. Teams that run it as a background refactor tend to discover the permission and history changes only when users report missing data.

    What is ending, and when?

    Google's Fit migration guide states that the Google Fit Android and REST APIs are officially scheduled for end of service by the end of 2026, and its FAQ says the APIs will not be available after the migration period. Developers have not been able to sign up for these APIs since May 1, 2024.

    • Android APIs: Recording, History, Sessions and related Fit APIs used inside apps.
    • REST API: Server-side access to Fit data stored in Google's cloud.
    • No new projects: New apps cannot start on Fit, so any new work should target the replacements.
    • Some features without replacements: Google notes that the Goals API has no replacement; apps manage goals in their own logic.

    With the end of service close, prioritize the features users rely on most, and make sure the app fails gracefully, with a clear message, if any Fit call stops working before your migration is complete.

    Which replacement path fits your app?

    The replacement depends on where your integration lives. Google recommends Health Connect for mobile-first Android apps and step tracking, and the Google Health API for cloud-based integrations, and its migration guide maps each Fit API to its path.

    • Mobile app reading device data: Health Connect, read on the phone with the user's permission.
    • Mobile app recording steps: Health Connect for step tracking on Android.
    • Server reading cloud data: The Google Health API, following Google's mapping for history and session data.
    • Mixed apps: Often both, with the phone reading Health Connect and syncing to your backend.

    Many health apps that read Fit data on a server will need to redesign the flow: read on the device through Health Connect, then sync to their own backend with the user's consent, instead of pulling from Google's cloud.

    How do you map Google Fit data to Health Connect?

    Map every Fit data type your app uses to its Health Connect record type, including units, time handling and how the data is grouped. Do it as a written table before anyone writes code.

    • 1. Inventory: List every Fit data type, read and write, and the features that use each.
    • 2. Map types: Find the Health Connect record type for each, using Google's comparison guide.
    • 3. Check units and time: Confirm units, time zones and whether records are instants or intervals.
    • 4. Note gaps: Mark data types or features with no direct equivalent, such as goals.
    • 5. Plan aggregation: Decide whether to use Health Connect's aggregate queries or your own calculations.

    Pay special attention to totals such as daily steps. Different sources can record overlapping data, and how totals are combined affects the numbers users and clinicians see every day in the app.

    Health Connect asks users to grant permission for each data type, read and write separately, and users can change those choices at any time. The app must request only what it needs and keep working sensibly when some permissions are refused.

    • Ask in context: Request each permission when the related feature is first used, with a short explanation.
    • Minimum set: Request only the data types your features actually read or write.
    • Partial grants: Design screens that still work, with a clear prompt, when some types are not allowed.
    • Revocation: Detect when permissions are removed and stop syncing those types.
    • Privacy policy: Update the policy and in-app disclosures to describe Health Connect use.

    What happens to historical data and your backend?

    Decide how much history your app needs after migration and how it will get it. Health Connect has its own rules about how far back an app can read, so check them against your features.

    • Keep what you have: Data already synced to your backend stays there; mark its source.
    • Backfill: Read the history Health Connect allows after the user grants permission.
    • Source tags: Record which app or device each record came from, to avoid double counting.
    • Backend changes: Replace Fit REST calls with device sync or the recommended cloud API.
    • Clinical programs: For remote monitoring, confirm that day counts and trends stay consistent across the switch.

    How do you test the migration?

    Test with real devices, real source apps and realistic permission choices made by real people, comparing the numbers before and after the switch.

    • Parallel comparison: For test users, compare daily totals from Fit and Health Connect for the same days.
    • Permission paths: Full grant, partial grant, denial and later revocation.
    • Multiple sources: Phones with a wearable and the phone's own sensor both writing data.
    • Android versions: Test across the versions your users run, including older ones.
    • Backend sync: Confirm records arrive once, with correct times and sources.

    How should you tell users about the change?

    Tell users before the switch what will change, why new permissions are needed and what they need to do. A clear message prevents support tickets and lost data.

    • In-app notice: A short explanation and a single button to grant the new permissions.
    • Step-by-step help: Screens showing how to install or enable Health Connect where needed.
    • Support readiness: Prepared answers for common questions about missing data after the switch.

    For clinical programs, tell care teams too. If patients' data stops for a few days while they grant new permissions, clinicians should know that the gap is a technical change and not a patient who has stopped monitoring.

    What are the common Google Fit migration mistakes?

    The common mistakes come from treating the migration as a library swap.

    • Server-only thinking: Expecting a cloud API to replace on-device Health Connect reads.
    • Asking for everything: Requesting every data type at once and losing users at the permission screen.
    • Double counting: Combining overlapping sources without source tags.
    • No partial-grant handling: Screens that break when one permission is missing.
    • Late start: Leaving migration until Fit calls start failing.

    What are best practices for moving from Google Fit to Health Connect?

    The practices that hold up treat the migration as a product change with data, permissions and communication planned together.

    • Write the mapping first: Every data type, unit and gap documented.
    • Choose the path per feature: Health Connect for device data, the recommended cloud API for server needs.
    • Request minimal permissions in context: And handle partial grants.
    • Tag sources: Avoid double counting across apps and devices.
    • Compare before switching: Parallel totals for test users.

    How Agnotic can help

    Agnotic Technologies migrates Android health apps off Google Fit: data type mapping, Health Connect integration with contextual permissions and partial-grant handling, backend sync redesign, history backfill with source tagging, parallel comparison testing and user communication flows. For remote monitoring programs, we keep day counts and trends consistent through the switch.

    If your end-of-service deadline is close, we start with the features your users and clinicians rely on most, and add graceful fallbacks so nothing fails silently.

    Move off Google Fit before it ends

    Plan your Health Connect migration with our engineers, or read more wearable and device articles in the hub.

    Related reading on Agnotic

    See how wearable APIs and apps are built, how BLE devices connect in React Native, and how RPM programs collect device data.

    Sources

    Frequently Asked Questions

    Google's migration guide says the Google Fit Android and REST APIs are scheduled for end of service by the end of 2026, and will not be available after the migration period.

    Talk to an engineer about your project

    We migrate health apps from Google Fit to Health Connect and the recommended cloud APIs, with consistent data through the switch.