# Check this app against App Store Review Guideline 5.1.3(i): Health Data Use

Health and fitness data is never used for ads, marketing or data mining, and apps say which health data they collect.

Go through this codebase for each problem below. For each one that applies, fix it on a new git branch with the steps for this app's stack (React Native and Expo, Swift, or Flutter). If none apply, say so and why.

## Health data may be sent to analytics or ad tools

Usually a rejection.

**What Apple wants:** Health and fitness data can't be used or shared for ads, marketing or data mining; only for health management or research, with permission (Guideline 5.1.3(i)).

**How to fix it:** Strip health values from analytics and ad events.

Steps:

1. Remove health values from analytics events, user properties and ad SDK calls.
2. Keep only plain usage events that reveal nothing about anyone’s health.

## Health data may earn rewards from another company

Often a rejection.

**What Apple wants:** Apps may use health or fitness data to give people a direct benefit, like a lower insurance premium, only when the app comes from the company giving that benefit and the data isn't shared with a third party (Guideline 5.1.3(i)).

**How to fix it:** Have the company that gives the benefit submit the app, and keep the health data in-house.

Steps:

1. Submit the app from the developer account of the insurer, employer or company that gives the benefit.
2. Stop sharing health or fitness data with partner companies.

## The app may not say which health data it collects

Often a rejection.

**What Apple wants:** Apps must disclose the specific health data they collect from the device (Guideline 5.1.3(i)). Reviewers compare the Health permission text with the data types the app requests.

**How to fix it:** Name each type of health data the app reads, in the purpose strings and in the app.

Steps:

1. List the HealthKit and motion types the app reads.
2. Name them, and what the app does with them, in NSHealthShareUsageDescription (and NSMotionUsageDescription).

---

AppScend checks an app against every guideline at once, on the developer's Mac: `npx appscend scan --json` in the app's root folder (docs: https://appscend.ai/docs).

Source: https://appscend.ai/guidelines/5-1-3-i
