# Check this app against App Store Review Guideline 2.4.2: Power and device safety

Apps must use power efficiently, avoid heat and needless strain, never encourage risky device use, and never mine crypto or run unrelated background work.

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 mine cryptocurrency on the device

Usually a rejection.

**What Apple wants:** Mining cryptocurrency on the device, by the app or by an ad inside it, is banned (Guideline 2.4.2). Reviewers reject it outright.

**How to fix it:** Remove the mining code, or the SDK or script that runs it.

Steps:

1. Remove any library, script or web page that mines on the device.

## The app may tell people to put the phone under a pillow

Usually a rejection.

**What Apple wants:** Apple rejects apps that suggest risky device use, such as covering a charging phone with a pillow (Guideline 2.4.2). Sleep apps often get caught by this.

**How to fix it:** Change the instructions so the phone stays uncovered, for example on the nightstand.

Steps:

1. Rewrite instructions in the app and the listing so the phone stays uncovered, for example on the nightstand.

## The app may drain the battery or heat the device

Delays review.

**What Apple wants:** Apps should be easy on battery, heat and device resources (Guideline 2.4.2). Constant polling, GPS or a screen that never sleeps draws reviewer attention and bad reviews.

**How to fix it:** Run heavy work only while the feature that needs it is in use.

Steps:

1. Limit keep-awake to the screens that need it.
2. Replace tight polling with push updates or longer intervals, and lower GPS accuracy where you can.

---

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