Shipping a TWA to Google Play: asset links, then 12 testers
You wrapped your PWA as a Trusted Web Activity, uploaded the bundle to Play Console, and found out two things. The app opens with a browser URL bar on top, and production is locked behind a closed test: 12 testers, 14 da
You wrapped your PWA as a Trusted Web Activity, uploaded the bundle to Play Console, and found out two things. The app opens with a browser URL bar on top, and production is locked behind a closed test: 12 testers, 14 days.
Both have fixes. This post covers the asset links setup that causes the URL bar, the build details worth checking before the test starts, and how the closed test works for a web-wrapper app. Our own service only comes up in the last section.
Who this is for: web developers shipping a PWA to Google Play with Bubblewrap, PWABuilder or Median, on a new personal developer account.
A TWA is an Android app, so the Play rules apply
A Trusted Web Activity runs your site full screen inside Chrome (or another browser that supports TWAs), with no browser UI, as long as Android can verify that the app and the site belong to the same owner. To Google Play it is an Android app like any other: same listing, same review, same testing requirements.
That includes the closed testing rule. New personal developer accounts (created after November 13, 2023) must run a closed test with at least 12 testers opted in for 14 consecutive days before they can apply for production access. Organization accounts are exempt, and so are personal accounts created before that date.
Step 1: get Digital Asset Links right
The URL bar at the top of your app means verification failed and Chrome fell back to showing the site with its own UI. The link between app and site is a file on your domain:
https://your-domain.com/.well-known/assetlinks.json
It holds your package name and the SHA-256 fingerprint of the certificate that signs the app:
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.example.twa",
"sha256_cert_fingerprints": [
"AA:BB:CC:...:FF"
]
}
}]
The mistake we see most: the file only lists your upload key. With Play App Signing, Google re-signs the app with its own app signing key before it reaches a device, so the app your testers install carries a different fingerprint from the one on your machine. Copy the SHA-256 of the app signing key from your app's App integrity page in Play Console and add it to the array. You can keep the upload key fingerprint in there too, so local builds still verify.
Three more things that break verification:
- The file must be served over HTTPS at exactly that path, as JSON, without a redirect.
- The
package_namemust match the application ID in your build, character for character. - Every origin the app opens full screen needs its own
assetlinks.json.
With Bubblewrap, the CLI can add the fingerprint and regenerate the file for you:
bubblewrap fingerprint add <SHA-256 of the app signing key>
bubblewrap fingerprint generateAssetLinks
Deploy the new file, then reinstall the app from the testing track (not from a local APK) to check the URL bar is gone. That is the build your testers get.
Step 2: check the build before the 14 days start
Fixing things mid-test is possible, but every fix you can make before day one is a fix your testers never see.
-
Target API. New apps and updates must target API level 36. In a Bubblewrap project, check
targetSdkVersionin the generatedapp/build.gradleafter you update the tooling. - The site must stay up. In a TWA the content lives on your server. If the site goes down or a deploy breaks the start URL, testers open a broken app, and that is the engagement Google sees.
- No login wall, or demo credentials. If the app needs an account, give every tester working credentials from day one.
- Offline and error states. A TWA with no network shows whatever your service worker serves. A plain offline page beats the browser's error screen.
Step 3: run the closed test
The rules are the same as for a native app:
- Create a closed testing track in Play Console. Internal testing does not count toward the requirement.
- Add your testers' Google account emails to the track and share the opt-in link.
- The 14 days start when the 12th tester opts in. If the count drops below 12, the window rebuilds from the moment you are back at 12.
- An email on the list that never clicked the opt-in link is not a tester.
Two things are harder for TWA apps:
Engagement. Opting in is not testing. Google looks at whether testers install and use the app during the 14 days, and "testers not engaged" is the most common reason production access gets rejected. Google also measures engagement in web-wrapper apps differently from native apps, so daily use matters even more here. Ask testers to open the app every day and do something real in it, not just launch it on day one.
Finding testers. Friends are often on iPhone, and many closed testing services refuse TWA, PWA and web-wrapper apps. Ask before you pay anyone.
After the 14 days, you answer Google's production access questionnaire. Use real details: how many testers, on which devices, what they did, and what you fixed.
For anything about Play policy itself, Google's Play Console Help is the source of truth. The rules move, and it is the page that moves with them.
Where ontest.app fits
If you would rather not spend two weeks recruiting, ontest.app runs the closed test for you, and we accept TWA, PWA and web-wrapper apps. Our own team opens your app on 12 phones we own (Samsung, Xiaomi and OnePlus, running Android 11 to 16). The same 12 testers stay for 15 days, the 14 Google requires plus one buffer day, and every device takes a timestamped screenshot every day that you see on a live dashboard.
The terms for web-wrapper apps, stated plainly: $19.99 once, a full refund within 3 days for any reason, and a second full test cycle free if Google rejects the production access request. Our approval-or-money-back refund covers native apps only, because Google measures engagement in web-wrapper apps differently.
The full guide on which services accept TWA apps is here: TWA Apps and Closed Testing: Who Accepts Them.
Which wrapper did you use, and did the URL bar get you too? Tell us in the comments. Questions about your own setup are welcome, we answer either way.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.