# Check this app against App Store Review Guideline 5.1.3(ii): Health Data Accuracy and Storage

Apps write only accurate data to HealthKit and keep personal health information out of iCloud.

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.

## The app may write made-up data into Apple Health

Usually a rejection.

**What Apple wants:** Anything an app saves to HealthKit, or to other health management and research apps, has to be real and accurate (Guideline 5.1.3(ii)).

**How to fix it:** Write only values the person measured or entered, and remove sample or test writes.

Steps:

1. Remove demo, test and generated HealthKit writes.
2. Keep sample data out of release builds.

## Personal health data may be stored in iCloud

Often a rejection.

**What Apple wants:** Apple doesn't allow apps to put people's health records in iCloud (Guideline 5.1.3(ii)).

**How to fix it:** Keep health records out of iCloud; store them on the device or your own secure server.

Steps:

1. Move health records out of CloudKit and other iCloud storage.
2. Store them on the device or on your own secure server instead.

---

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-ii
