# Check this app against App Store Review Guideline 2.5.3: Harmful code

Apps must not spread malware or code that disrupts the system or features like push notifications and Game Center.

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 flood people with notifications

Often a rejection.

**What Apple wants:** Apps must not disrupt system features such as push notifications (Guideline 2.5.3). Floods of alerts or constant silent pushes lead to rejections and to people turning notifications off.

**How to fix it:** Cap how often notifications fire, and send only meaningful ones.

Steps:

1. Remove per-minute repeats and bursts of alerts.
2. Send silent pushes only when there is new data.

## The app may share content built to crash or harm devices

Usually a rejection.

**What Apple wants:** Apps that pass on viruses, files or code that harm or disrupt the system or hardware are rejected, and repeat cases lose their developer account (Guideline 2.5.3).

**How to fix it:** Remove the harmful content and the features that send it.

Steps:

1. Remove crash texts, malicious files and scripts, and any feature that sends them to other people.

## Game Center may be fed fake or repeated scores

Often a rejection.

**What Apple wants:** Apps must not disrupt Game Center (Guideline 2.5.3). Fake or repeated score and achievement reports corrupt leaderboards for every player, and reviewers reject them.

**How to fix it:** Report only scores and achievements people earned, once each.

Steps:

1. Remove test, random or hard-coded score reports and any loop that reports repeatedly.
2. Report a score or achievement once, from the moment the player earns it.

---

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/2-5-3
