# Check this app against App Store Review Guideline 5.0: Legal

Apps must follow the law in every country they are sold in, and may not promote or enable crime; apps found to facilitate human trafficking or the exploitation of children are removed and blocked from alternative distribution.

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.

## CallKit may get the app rejected if it is offered in China

Often a rejection.

**What Apple wants:** China's rules don't allow CallKit, so Apple rejects apps that use it while China mainland is in their availability (Guideline 5.0).

**How to fix it:** Remove China mainland from the app's availability in App Store Connect.

Steps:

1. App Store Connect → your app → Pricing and Availability → deselect China mainland.

## Generative AI may get the app rejected if it is sold in China

Often a rejection.

**What Apple wants:** China mainland requires a government license for generative AI services, so Apple won't approve apps with these features there without one (Guideline 5.0).

**How to fix it:** Remove China mainland from the app's availability, or get the license before selling there.

Steps:

1. App Store Connect → your app → Pricing and Availability → deselect China mainland.
2. To stay in China, first obtain the license Chinese regulators require for generative AI services, and keep it ready for App Review.

## The app may help people break the law

Usually a rejection.

**What Apple wants:** Apps must follow the law everywhere they are sold, and Apple rejects apps that solicit, promote or encourage crime or plainly reckless acts, and reports the worst cases to the authorities (Guideline 5.0).

**How to fix it:** Remove the features that enable illegal use, or rebuild them around consent.

Steps:

1. Remove the feature, or make it work only with the other person's knowledge and consent.
2. Reword the app text and listing so nothing promotes illegal use.

## Strangers may be able to privately contact children

Usually a rejection.

**What Apple wants:** Apps found to facilitate the exploitation of children are removed from the App Store and blocked from alternative distribution, and Apple notifies the authorities (Guideline 5.0). An app where strangers can privately reach children, with no age check, parental control, report or block, is the kind Apple acts on.

**How to fix it:** Keep strangers from privately reaching children: check age, limit who can make contact, and let people report and block.

Steps:

1. Ask people's age (or use Apple's Declared Age Range), and turn off messages from strangers for children and teens.
2. Let children message only people they or a parent approved.
3. Add Report and Block to every conversation, filter shared photos and videos, and act on reports quickly.

---

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