# Check this app against App Store Review Guideline 5.4: VPN Apps

VPNs use Apple's VPN APIs, come from organizations, explain their data use up front and share no data with third parties.

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 VPN may not explain its data use before people sign up

Usually a rejection.

**What Apple wants:** VPN apps must show, on a screen before any purchase or use, what user data they collect and how they use it (Guideline 5.4).

**How to fix it:** Add a data-use screen before the paywall and the first connection.

Steps:

1. Add a screen listing what the VPN collects, what it doesn't log, and how data is used.
2. Show it before the paywall and before the first connection.
3. State in your privacy policy that you never sell or share user data.

## The VPN app may share user data with third parties

Often a rejection.

**What Apple wants:** A VPN app can't hand any data to third parties for any reason, and its privacy policy has to promise that (Guideline 5.4).

**How to fix it:** Remove third-party analytics, ad and attribution SDKs from the VPN app.

Steps:

1. Remove ad and attribution SDKs.
2. Replace third-party analytics with minimal first-party crash and performance data.

## The app may offer a VPN without Apple's VPN APIs

Usually a rejection.

**What Apple wants:** VPN services must run on Apple's NEVPNManager API, and only organization developer accounts may offer them (Guideline 5.4).

**How to fix it:** Build the VPN on Network Extension, and submit from an organization account.

Steps:

1. Build the tunnel with Apple's Network Extension APIs and add the entitlement.
2. Enroll as an organization if you're an individual developer.
3. If a country you sell in requires a VPN license, put it in the App Review notes.

## The VPN may be sold in China without the license it needs

Often a rejection.

**What Apple wants:** VPN apps must follow local laws, and where a territory requires a VPN license, the license details go in the App Review notes (Guideline 5.4). China mainland requires one.

**How to fix it:** Remove China mainland from availability, or add your license details to the App Review notes.

Steps:

1. App Store Connect → Pricing and Availability → deselect China mainland.
2. If you hold a license there, put its details in App Review Information → Notes.

## The VPN's privacy policy may not promise to keep data private

Usually a rejection.

**What Apple wants:** VPN apps must commit in their privacy policy to never selling user data, using it for other purposes, or sharing it with third parties (Guideline 5.4).

**How to fix it:** Add a clear promise to the privacy policy that user data is never sold, reused or shared.

Steps:

1. Add a section to the privacy policy stating that VPN traffic and user data are never sold, used for other purposes, or shared with third parties.
2. Make sure the app and its SDKs actually keep that promise.

---

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