# Check this app against App Store Review Guideline 5.1.2(iv): Contact Databases and Installed Apps

Apps may not build contact databases from personal data, or track people's other installed apps for analytics or 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 app may upload and keep people's contacts

Usually a rejection.

**What Apple wants:** Apps can't use Contacts or other personal data APIs to build their own contact database, or to sell or share one (Guideline 5.1.2(iv)).

**How to fix it:** Use contacts on the device, or only for a match the person starts, and don't store them.

Steps:

1. Stop uploading full contact lists.
2. If you match friends, send only what the match needs, then delete it on the server.

## The app may collect a list of the other apps people have

Often a rejection.

**What Apple wants:** Apps can't gather which other apps someone has installed for analytics or advertising (Guideline 5.1.2(iv)).

**How to fix it:** Remove installed-app checks used for analytics or ads.

Steps:

1. Remove the checks and the URL schemes they rely on from LSApplicationQueriesSchemes.
2. Keep only checks used to open an app the person picked.

---

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-2-iv
