# Fix Google Play 'Minimum Functionality / WebView Spam' Rejection for Capacitor, TWA & Hybrid Apps

> Exact Error: `Violation of Minimum Functionality / Spam and Minimum Functionality policy (WebView wrapper)`

- **Canonical URL**: https://gootester.com/errors/webview-spam-minimum-functionality-rejection

## Step-by-Step Resolution
1. **Bundle compiled HTML/JS/CSS assets locally inside the `.aab` via Capacitor (`webDir: "dist"`)**: Stop loading your UI shell over `https://` on cold boot! Compile your React/Vue/Svelte bundle into `android/app/src/main/assets/public` via Capacitor so screens render instantaneously at 60fps even with zero cell signal.
2. **Build a native-styled offline state & local persistence layer (`IndexedDB` / SQLite / Preferences)**: Listen to `@capacitor/network` (or `navigator.onLine`) to display a polished in-app offline banner and allow users to view cached records or queue edits offline without ever seeing a raw browser error code.
3. **Integrate native Android navigation, system bars, haptics, and share sheets**: Wire `@capacitor/app` `backButton` routing, edge-to-edge `StatusBar` / `SystemBars` safe areas (`viewport-fit=cover`), native OS share dialogs (`@capacitor/share`), and mobile touch states (`-webkit-tap-highlight-color: transparent`).
4. **Strip all web marketing headers, cookie banners, and external browser escape links**: Boot mobile builds directly into the authenticated/functional app workspace rather than a SaaS landing page, and remove website footer links or unowned third-party frames.
5. **If using TWA, verify Play App Signing SHA-256 in `assetlinks.json` via `pm get-app-links`**: For genuine offline-capable PWAs using Bubblewrap TWA, include BOTH your Play App Signing SHA-256 and Upload Key SHA-256 in `https://example.com/.well-known/assetlinks.json` (`HTTP 200`, zero redirects) so the URL bar stays 100% hidden.

```typescript
import { App } from "@capacitor/app";
import { Network } from "@capacitor/network";

// 1. Native Android Back-button route pop (prevents instant app exit from nested views):
App.addListener("backButton", ({ canGoBack }) => {
  if (canGoBack || window.history.length > 1) {
    window.history.back();
  } else {
    App.exitApp();
  }
});

// 2. Intercept connectivity loss before any raw WebView network error can appear:
Network.addListener("networkStatusChange", (status) => {
  document.documentElement.dataset.offline = String(!status.connected);
});
```

## Does Google Play Ban Capacitor, Ionic, or Cordova? (Myth vs. Reality)

Every week on developer forums, someone claims 'Google Play banned WebView apps!'. That claim is false: thousands of production banking, retail, fitness, and indie SaaS apps on Google Play run on **Capacitor, Ionic, Tauri Mobile, and TWA**. What Google Play's strengthened **Minimum Functionality** and **Webviews and Affiliate Spam** policies actually ban are **zero-effort URL bookmarks** (wrapping a third-party or static website in a 10-line `WebView.loadUrl()` shell) and **broken half-finished prototypes**.
When your hybrid app bundles its UI assets inside the APK, launches straight into interactive mobile functionality, handles Airplane Mode gracefully, respects Android's hardware Back gesture and edge-to-edge system bars, and owns the domain/content it serves, it stands on solid policy ground.

## The Airplane-Mode Acid Test Every Hybrid Developer Should Run

Before uploading `versionCode 2` to recover from a Minimum Functionality rejection, perform the exact 30-second test Google Play reviewers run: install your release `.aab` via `bundletool`, turn **Airplane Mode ON**, cold-launch your app icon, tap every bottom-navigation tab, and press the system Back gesture three times.
If you see a white screen, an infinite unlabelled spinner, Android's dead-dino `Webpage not available` error, or a Chrome Custom Tabs toolbar, do NOT submit yet — fix offline rendering and local asset packaging first!

## Demonstrating Mobile-Native Iteration Across 14-Day Closed Testing

After upgrading your hybrid shell from a thin URL wrapper to a locally bundled app, roll out the updated `versionCode` to your Closed Testing track. On GOOtester ($6 Basic, $12 Standard, $20 Premium; clock starting after verified `testers@gootester.com` setup), consented human testers catch leftover webisms (tiny tap targets, keyboard overlap, broken back-navigation) while Standard/Premium's separate ARM64 ADB QA measures real WebView RAM PSS and `gfxinfo` scroll smoothness.
