# Check this app against App Store Review Guideline 4.7.1: Hosted Software: Privacy, Moderation, Payments

That software must follow the privacy rules, filter objectionable content, let people report it and block abusers, and use in-app purchase for digital goods.

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.

## AI output may be shown without a content filter

Often a rejection.

**What Apple wants:** Apps offering chatbots and AI generators must filter objectionable material (Guideline 4.7.1), and Guideline 1.2 asks the same of AI content creation apps. Reviewers try to provoke harmful output and reject apps that show it unfiltered.

**How to fix it:** Filter prompts and AI output before showing them.

Steps:

1. Run prompts and replies through a moderation check (such as the AI provider's moderation endpoint), and block what it flags.
2. Keep the provider's safety settings on, and add content rules to the system prompt.

## AI results may have no way to be reported

Often a rejection.

**What Apple wants:** Apps offering chatbots and AI generators need a way for people to report objectionable output, and must respond to reports in a timely way (Guideline 4.7.1); Guideline 1.2 asks the same of AI content creation apps.

**How to fix it:** Add a Report option to AI replies and results, and make sure reports reach you.

Steps:

1. Add a Report or flag option to each AI reply or generated result.
2. Send reports, with the prompt and the result, somewhere you check every day.
3. Respond to reports quickly and tighten your filters.

## Hosted mini apps may lack report and block options

Often a rejection.

**What Apple wants:** Mini apps, games, plug-ins and bots offered in an app need a way to report content, timely answers to reports, and the ability to block abusive users (Guideline 4.7.1).

**How to fix it:** Add Report to each mini app or bot, and Block for the people behind abuse.

Steps:

1. Add a Report option to each mini app, game, plug-in or bot, and to what it shows.
2. Let people block abusive users or creators, and hide their content right away.
3. Act on reports quickly.

## Mini apps or games may sell digital items outside IAP

Usually a rejection.

**What Apple wants:** Mini apps, games and plug-ins in your app follow the same payment rules as the app, so digital goods must use In-App Purchase (Guideline 4.7.1).

**How to fix it:** Route digital purchases in mini apps and games through In-App Purchase.

Steps:

1. Replace web checkouts inside mini apps and games with In-App Purchase, handled by the main app.
2. Keep outside payments only for physical goods or real-world services.

---

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