# Check this app against App Store Review Guideline 5.5: Mobile Device Management

MDM and configuration profile apps need Apple's approval, explain their data use up front and share no data with third parties.

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.

## Device management may start before its data use is explained

Usually a rejection.

**What Apple wants:** Apps that offer MDM or configuration profiles must explain what user data they collect and how it is used, on a screen before any purchase or use (Guideline 5.5).

**How to fix it:** Add a data-use screen before enrollment or profile installation.

Steps:

1. Add a screen listing what is collected and how it is used, before purchase and before the profile is installed.
2. State in your privacy policy that you never sell or share user data.
3. Check that your developer account is allowed to offer MDM.

## A device management app may share data through third-party SDKs

Often a rejection.

**What Apple wants:** MDM apps can't pass data to third parties; third-party analytics are only allowed when they measure the app's own performance and nothing about the person or device (Guideline 5.5).

**How to fix it:** Remove ad and attribution SDKs, and limit analytics to the app's own performance.

Steps:

1. Remove ad and attribution SDKs.
2. Set up any remaining analytics to collect app performance data only.

## The device management app's policy may not promise data privacy

Often a rejection.

**What Apple wants:** Device management and configuration profile apps must commit in their privacy policy to never selling, reusing or sharing user data (Guideline 5.5).

**How to fix it:** Add a clear promise to the privacy policy that user data is never sold, reused or shared.

Steps:

1. Add a section to the privacy policy stating that data is never sold, used for other purposes, or shared with third parties.

---

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