# Check this app against App Store Review Guideline 5.1.1(iii): Data Minimization

Apps request only the data their core features need and prefer system pickers over full library access.

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.

## Full photo, contacts or calendar access may be requested needlessly

Often a rejection.

**What Apple wants:** Apps should take only the data a task needs and prefer the system pickers or a share sheet over full access to Photos or Contacts (Guideline 5.1.1(iii)). Reviewers question full-access prompts for a simple pick.

**How to fix it:** Use the system picker, share sheet or event editor, and drop the full-access request.

Steps:

1. Open the system photo or contact picker, or the system event editor, instead of requesting access.
2. To save an image, request add-only photo access or hand it to the share sheet.
3. Remove the permission request and its purpose string if nothing else needs them.

## The app may ask for access a feature doesn't need

Often a rejection.

**What Apple wants:** Apps should only request data their features need, and can't make people grant unrelated access to use a feature (Guidelines 5.1.1(iii) and (iv)). Reviewers look for the feature behind every prompt.

**How to fix it:** Remove the request, or move it to the feature that really uses the data.

Steps:

1. Remove permission requests no feature uses, along with their purpose strings.
2. Request each remaining permission only inside the feature that needs it.

## HealthKit access may cover data the app doesn't use

Often a rejection.

**What Apple wants:** Apps should request only the health data their features use and be clear about which health data they collect (Guidelines 5.1.1(iii) and 5.1.3(i)). Reviewers check each requested type against a feature.

**How to fix it:** Request only the HealthKit types your features read or write.

Steps:

1. List the health types each feature reads or writes.
2. Remove every other type from the authorization request.

## Personal details may be sent to analytics tools

Delays review.

**What Apple wants:** Apps should collect and use only the data a task needs (Guideline 5.1.1(iii)), and sharing personal data with third parties needs disclosure and permission (Guideline 5.1.2(i)). Emails or phone numbers in analytics events rarely meet either.

**How to fix it:** Send analytics your own anonymous user ID instead of emails, names or phone numbers.

Steps:

1. Replace email, phone and name properties with your own user ID.
2. Drop precise location and contact data from analytics events.

---

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-1-iii
