# Check this app against App Store Review Guideline 5.1.1(vi): Secret Data Collection

Developers whose apps secretly harvest passwords or private data are removed from the developer program.

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 ask for another service's password

Usually a rejection.

**What Apple wants:** Apple removes developers whose apps sneakily collect people's passwords or other private information (Guideline 5.1.1(vi)). A form asking for an Apple ID or social media password looks exactly like that to a reviewer.

**How to fix it:** Remove the password form and use the service's official sign-in instead.

Steps:

1. Replace the form with the service's official sign-in (OAuth) flow.
2. Delete any stored passwords and stop sending them to your server.

## An in-app browser may capture what people type on websites

Usually a rejection.

**What Apple wants:** Apple removes developers whose apps secretly gather passwords or other private data (Guideline 5.1.1(vi)). Scripts that watch what people do on other sites inside an in-app browser do exactly that.

**How to fix it:** Remove the injected scripts, and open outside links in SFSafariViewController or Safari.

Steps for React Native, Expo and Flutter:

1. Remove scripts that read input fields, cookies or taps on third-party pages.
2. Open outside links in an in-app Safari view (expo-web-browser), which the app cannot look into.

Steps for Swift:

1. Remove scripts that read input fields, cookies or taps on third-party pages.
2. Open outside links with SFSafariViewController, which the app cannot look into.

---

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