PWABuilder PWA to Capacitor with Capgo
Copy a setup prompt with the install steps and the full markdown guide for this plugin.
PWABuilder is a free, open-source Microsoft tool that scores your PWA and generates store packages for Microsoft Store, Google Play (Trusted Web Activity via Bubblewrap), and iOS. Store listings load your hosted PWA, so deploying the website updates installed apps without a new store submission.
Capacitor bundles your production web build inside native iOS and Android projects. With Capgo Build and live updates, you can request signed native binaries from any OS and ship staged web updates with rollback. For an honest comparison, see PWABuilder vs Capgo on the marketing site.
When PWABuilder is enough
Section titled “When PWABuilder is enough”PWABuilder fits when:
- Your PWA already has a complete manifest and is served over HTTPS at a public URL
- You need free store packaging and your UI works as a hosted or TWA experience
- You do not need Capacitor native plugins, offline asset bundles, or Capgo channel rollouts
Microsoft Store packaging is a first-class PWABuilder path. Android uses a Bubblewrap TWA. PWABuilder documentation notes that iOS packaging is more limited and that App Store acceptance depends on your UI and native capability use.
When to add Capacitor and Capgo
Section titled “When to add Capacitor and Capgo”Move to Capacitor with Capgo when you need:
- Native APIs (push, camera, biometrics, file system, and Capgo plugins from the plugin directory)
- Offline bundles that do not depend on your server being reachable at launch
- Cloud iOS builds without maintaining a Mac (see Capgo Cloud Build)
- Live updates with channels, staged rollout, and rollback (live updates)
The PWABuilder to iOS and Android solution summarizes the marketing workflow. This doc is the implementation reference.
Get started
Section titled “Get started”-
Confirm PWABuilder prerequisites (optional audit). Your app should be on HTTPS, expose a web manifest, and meet the baseline PWA checks described in PWABuilder quick start. If you already packaged successfully, you can skip re-running PWABuilder.
-
Open the web project that builds your PWA. PWABuilder does not replace your framework repo. Clone your app, install dependencies, and run your production build. Note the output folder (
dist,build,out, orwww). -
Adapt browser-only behavior. Remove or guard install prompts, and avoid assuming a browser tab context. See Transform your PWA to a native app for WebView-specific checks.
-
Add Capacitor with the same
webDiras your build output:Terminal window npm install @capacitor/core @capacitor/cli @capacitor/ios @capacitor/androidnpx cap init "Your App" com.company.app --web-dir distnpx cap add ios && npx cap add androidnpm run build && npx cap sync -
Register Capgo and enable live updates using CLI onboarding or
npx @capgo/cli@latest init. Install@capgo/capacitor-updaterbefore your first store release if you plan to ship web changes without waiting for review, then runnpm run build && npx cap syncbefore requesting native builds. -
Build native binaries in Capgo Cloud (no Mac required for iOS on the main path):
Terminal window npx @capgo/cli@latest build initnpx @capgo/cli@latest build request --platform iosnpx @capgo/cli@latest build request --platform android -
Upload web bundles after each production build:
Terminal window npm run buildnpx @capgo/cli@latest bundle upload --channel=production --auto-bump
PWABuilder package vs Capacitor project
Section titled “PWABuilder package vs Capacitor project”- Wraps a live URL (TWA on Android, WebView projects on iOS)
- Updates when users are online and your server serves new content
- Little or no native plugin surface beyond what the platform wrapper exposes
- iOS output requires Xcode on a Mac per PWABuilder App Store docs
- Ships a static web build inside
ios/andandroid/projects - Works offline with bundled assets (configure
server.urlonly when you intend a hosted shell) - Adds native features through Capacitor and Capgo plugins
- Capgo Build can sign iOS and Android binaries in the cloud
Replacing a Play TWA listing later
Section titled “Replacing a Play TWA listing later”If you already published a Bubblewrap TWA from PWABuilder, you can ship a Capacitor Android app to the same Play listing when you reuse the signing key and application ID. Plan the migration before changing package names. Push notifications and other native features require a new native build after you add plugins.
AI-assisted setup
Section titled “AI-assisted setup”If you use Claude Code, Cursor, or Codex, the hosted Capgo MCP server and Web app to mobile app guide follow the same phases: plan, static build, Capacitor, plugins, readiness check, cloud build, and live updates.