A Trusted Web Activity (TWA) is an Android app that opens your PWA full-screen in Chrome (or another supporting browser) with no browser UI. Because it uses the real browser, your service worker, storage, push and payments all work as they do on the web.
What you need
- A PWA that meets the install criteria and loads fast on mobile.
- A Google Play developer account.
- Node.js and a JDK (Bubblewrap can download one for you), or just a browser if you use PWABuilder.
Option A: PWABuilder (no command line)
- Go to PWABuilder, enter your URL, and choose Package for stores > Android.
- Download the generated package: a signed
.aabfor Play, an.apkfor testing, your signing key and anassetlinks.jsonfile. - Keep the signing key safe. You need it for every update.
Option B: Bubblewrap (command line)
npm i -g @bubblewrap/cli
bubblewrap init --manifest=https://example.com/manifest.webmanifest
bubblewrap build
Bubblewrap asks a few questions (package name, colours, signing key) and produces app-release-bundle.aab and a test APK.
Prove you own the site: Digital Asset Links
Chrome only hides the address bar if your site confirms the app is yours. Publish this file at https://example.com/.well-known/assetlinks.json:
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.example.app",
"sha256_cert_fingerprints": ["AA:BB:CC:..."]
}
}]
If you use Play App Signing (the default), add the app signing key fingerprint from the Play Console (Setup > App signing), not only your upload key. If the address bar still shows in your installed app, this file is the reason nine times out of ten.
Publish
Upload the .aab in the Play Console, fill in the store listing (screenshots, description, privacy policy, data safety form), and submit for review.
Updating
Web changes go live immediately for everyone: there is nothing to resubmit. Rebuild the TWA only to change its own settings (icon, name, splash, version, target SDK). Play requires apps to target a recent Android API level each year, so plan a small rebuild yearly.
Good to know
- Push notifications from your site work in the TWA (Android may ask for notification permission).
- Digital goods sold inside a Play-distributed app must follow Play's billing policies; the Digital Goods API connects your web checkout to Play Billing.
- Check that your app works well offline: thin, broken wrappers are rejected.