# Check this app against App Store Review Guideline 4.5.2(iii): Apple Music Data

Apps reading Apple Music data must say so in the permission text, and may not share it with third parties or use it for ads.

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 Apple Music permission text may be too vague

Often a rejection.

**What Apple wants:** Apps that read Apple Music data like playlists must say so clearly in the permission text (Guideline 4.5.2). That data also can't go to third parties or be used for ads.

**How to fix it:** Rewrite the Apple Music permission text to name the data and why the app needs it.

Steps:

1. Set NSAppleMusicUsageDescription to say what the app reads (library, playlists) and what people get from it.
2. Make sure that data isn't shared with third parties or used for ads.

## Apple Music data may go to third parties or be used for ads

Often a rejection.

**What Apple wants:** Data from people's Apple Music accounts may be shared only to support or improve the app, and never used to identify people or devices or to target ads (Guideline 4.5.2).

**How to fix it:** Keep Apple Music data out of analytics and ad tools, and use it only for the app's features.

Steps:

1. Remove library, playlist and listening data from analytics and ad events.
2. Don't combine Apple Music data with identifiers to profile people or target ads.

---

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/4-5-2-iii
