# HealthKit data export: what an app gets back and what it doesn't

By The Optimized Team (Product). Published: 2026-09-13T10:00:00+00:00. Updated: 2026-10-30T23:47:28.739548+00:00.
Canonical: https://optimizedtracker.com/blog/what-healthkit-will-and-will-not-hand-back

An app sees only the Health data you let it read, and it cannot always tell when it was refused. Here is how to read the gaps in your log.

A HealthKit data export from an app covers only the categories you allowed that app to read, and the app often cannot tell a refusal from an empty record. So a blank stretch in an imported timeline means "unknown," not "zero." This article walks through what Apple documents about read permission, where you change it, what travels with sync and backups, and how to keep your own dated notes so the gaps are visible.

## Read and write are separate grants

Apple's platform security guide says apps [are granted separate access for reading and writing data, as well as separate access for each type of health data](https://support.apple.com/guide/security/protecting-access-to-users-health-data-sec88be9900f/web). That is three layers: which app, read or write, and which data type.

In practice, an app can be allowed to save a weight entry without being allowed to read any weight history. It can read heart rate and nothing else. Each combination is its own switch.

Apple's developer documentation also tells developers to [request authorization only for the data the app needs](https://developer.apple.com/documentation/healthkit/authorizing-access-to-health-data). A tracker that asks for a short list is behaving as intended. A long list is worth a second look before you tap Allow.

## Why an empty result is not an answer

Here is the part that surprises people. The same security guide says that when an app doesn't have read access, [all queries return no data, the same response that an empty database would return](https://support.apple.com/guide/security/protecting-access-to-users-health-data-sec88be9900f/web). The guide adds that apps can't conclusively tell whether they have been granted read access.

Apple gives its reason: the design stops apps from inferring a person's health status. If an app could see which categories you refused, the refusal itself would tell it something.

### What that means for your log

An imported timeline can have a hole for three different reasons:

- You never recorded anything in that category.
- A device or source did not write it.
- You refused the app read access, and it sees nothing.

From the app's side, those can look identical. When you review an import, write down which of the three you believe applies. If you cannot tell, write "unknown." The same reasoning is behind [using Apple Health as a second source of truth](/blog/apple-health-as-a-second-source-of-truth): it checks your own entries, and your entries check it.

## Where you change access and sources

You can review and revoke app permissions in Health under Privacy and Apps, or in Settings under Health and Data Access & Devices. Apple's support page says to [tap an app and turn on the health categories you want that app to track](https://support.apple.com/en-us/108779). The change takes effect on the spot, and the app isn't consulted. Access can shift at any time.

The same page covers Data Sources & Access. There you can reorder sources or turn off a third-party source for a category. Apple notes that a newly added data source appears above the apps and devices already contributing data.

Two things follow for a record you plan to audit later:

- Source order can change which numbers an app sees first for a category. Note the date you reorder anything.
- Turning off a source changes what the timeline can show from that day forward. Note that date too.

A short log line is enough: date, what you changed, which app or source.

## Sync, deletion and backups

Health data can sync through iCloud. Apple's support page warns that if it does, [deleting data on one device removes it from all synced devices](https://support.apple.com/en-us/108779) connected to the same iCloud account. Assume a delete is account-wide.

Backups have their own rule. The security guide states that encrypted backups are required for Health data to be included in a Finder or iTunes backup. If your backups are not encrypted, your Health history may not be in them.

None of this is cause for worry. It is cause to keep a copy you control. The article on [backing up and exporting your log](/blog/backing-up-and-exporting-your-log) covers keeping a copy that outlives your phone, and [where your tracking data actually lives](/blog/peptide-tracking-and-your-data) maps the places a record can sit.

## The Apple Health export, and what it is for

Separate from any app, the Health app has its own export. Apple's guide describes [sharing your Health data](https://support.apple.com/guide/iphone/share-your-health-data-iph5ede58c3d/ios) from the profile menu, using Export All Health Data and then choosing a sharing method. The result is an XML file. Menu labels vary a little by iOS version and region, so look for the option rather than a fixed path.

What the sources I checked do not say is whether that export depends on any individual app's read grant, or what it does with a source you turned off. Check those points on your own device before you rely on a file as complete.

The practical use is simple: a dated snapshot that you hold yourself. A file named with its export date, stored with your other records, gives you something to compare against later.

## Keeping your own dated log alongside Health

Your own entries are the record. Health is a second timeline that can confirm, contradict or fill in around them. If you use OptimizedTracker, the Apple Health timeline sits next to your protocol entries; the piece on [one timeline](/blog/apple-health-and-your-protocol-log-one-timeline) shows how the two line up.

Whichever tool you use, a short list of what to record keeps the gaps honest:

| What to record | Why it matters later |
|---|---|
| Date you granted or revoked an app's read access | Explains a sudden start or stop in imported data |
| Date you changed source order or turned a source off | Explains a change in which numbers appear |
| Date and file name of each Health export | Lets you tell which snapshot a figure came from |
| Date of any delete you ran with iCloud sync on | Delete is account-wide, so it affects every device |
| A line marking "unknown" for any blank stretch | Keeps a blank from being read as zero |

## What to take from this

An app can only hand back what it was allowed to read, and Apple built the system so that a refusal and an empty store look the same. Read a blank as unknown. Date every permission, source and export change in your own log, keep an export you control, and the gaps in your record stay visible instead of silent.
