# Check this app against App Store Review Guideline 5.1.1(ii): Permission

Collecting data needs consent, paid features cannot depend on granting data access, and purpose strings must describe the real use.

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.

## A purpose string may not match how the app uses the data

Often a rejection.

**What Apple wants:** Purpose strings must fully and plainly explain what the app does with the data (Guideline 5.1.1(ii)). Reviewers compare each prompt with the feature behind it and reject mismatches.

**How to fix it:** Rewrite the purpose string to say what the app really does with the data.

Steps:

1. For each permission, note what the code does with the data, including uploads.
2. Rewrite the purpose string to match, with a concrete example.

## Paid features may require sharing personal data first

Often a rejection.

**What Apple wants:** People who pay can't be made to grant access to their data to get what they bought (Guideline 5.1.1(ii)). Reviewers reject purchase flows that ask for tracking, contacts or similar first.

**How to fix it:** Let people buy and use paid features without granting unrelated access.

Steps:

1. Remove permission steps from the purchase flow.
2. Ask for a permission only inside the feature that needs it, and keep the rest working if it is declined.

## A permission may be requested right at launch

Delays review.

**What Apple wants:** Apple expects apps to ask for access at the moment a feature needs it, with context (Guideline 5.1.1(ii) and the permission guidance it links to). Prompts at launch get denied more often and draw reviewer questions.

**How to fix it:** Ask for each permission right before the feature that uses it.

Steps:

1. Move the request from app start-up to the screen or action that needs it.

## Screen sessions may be recorded without consent

Often a rejection.

**What Apple wants:** Collecting usage data needs people's consent, and Apple has told developers that recording what people do on screen needs explicit consent (Guideline 5.1.1(ii)).

**How to fix it:** Turn session replay off, or ask for consent before recording.

Steps:

1. Switch session replay off by default.
2. If you need it, ask for consent first, mask text fields, and mention it in your privacy policy.

## People may have no way to withdraw consent they gave

Often a rejection.

**What Apple wants:** Apps must give people an easy, understandable way to withdraw their consent (Guideline 5.1.1(ii)). A one-time opt-in with no setting to undo it falls short.

**How to fix it:** Add a setting where people can review and withdraw each consent.

Steps:

1. Add a Privacy section in settings with a switch for each optional consent.
2. When someone switches one off, stop that collection or sharing right away.

## A privacy setting may not actually stop data collection

Often a rejection.

**What Apple wants:** Apps must respect people's privacy choices and let them withdraw consent (Guidelines 5.1.1(ii) and 5.1.1(iv)). A switch that changes nothing misleads people.

**How to fix it:** Make each privacy switch turn the matching collection or sharing off.

Steps:

1. Read the setting before starting analytics, ad personalization or AI sharing.
2. When it's off, call the SDK's opt-out (most have one) and stop sending the data.

## The app may read the clipboard without being asked

Often a rejection.

**What Apple wants:** Collecting data needs people's consent (Guideline 5.1.1(ii)). Reading the clipboard unprompted takes whatever people copied in other apps, and iOS shows a paste alert that reviewers notice.

**How to fix it:** Read the clipboard only when the person taps Paste.

Steps:

1. Remove automatic clipboard reads at launch or when the app becomes active.
2. Use the system paste button, or read the clipboard only after a Paste tap.
3. Turn off clipboard-based deep link matching in attribution SDK settings.

---

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