# Check this app against App Store Review Guideline 2.5.6: WebKit for web content

Web browsing inside an app has to run on WebKit, unless Apple granted an alternative browser engine entitlement.

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.

## Web pages may be shown without WebKit

Usually a rejection.

**What Apple wants:** Web content has to be rendered with WebKit unless Apple grants a browser engine entitlement (Guideline 2.5.6). UIWebView is refused at upload.

**How to fix it:** Show web pages with react-native-webview (it uses WebKit), or open them in an in-app Safari view.

Steps for React Native, Expo and Flutter:

1. Replace the old web view, or any other engine, with react-native-webview, or open outside pages with expo-web-browser.
2. Update old web view libraries to a version built on WKWebView.

Steps for Swift:

1. Replace UIWebView or the other engine with WKWebView, or SFSafariViewController for outside pages.
2. Update libraries that still use UIWebView.

---

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