TWA app for closed testing: how to switch to a WebView or Capacitor shell
Last updated:
Short answer: Google Play accepts a Trusted Web Activity (TWA) like any app, so the 12-tester rule is the same. But some tester services will not take TWA apps, and daily use of one can be hard to measure per app. If that is your case, moving to a Capacitor (WebView) shell is a small change. This guide explains the difference and the steps.
TWA vs WebView, in plain terms
Neither is better for users on its own. The difference matters for testing because services that record daily use per app read what is in the foreground, and with a TWA the screen belongs to Chrome. We have not verified that Tester Exchange records TWA use reliably, so we recommend a WebView or Capacitor shell for the test.
- TWA: Chrome draws your site full screen. Your app is a thin launcher. It is what PWABuilder and Bubblewrap produce, and it needs Digital Asset Links to hide the address bar.
- WebView / Capacitor: your app draws the screen itself and shows your web content inside it. You can add native features and your app is the one in the foreground.
Switch from TWA to a Capacitor shell
- Keep your site. Nothing about your website changes.
- Keep the same application ID if the TWA is already on a closed track, so you do not restart the count; otherwise start the new app with the ID you will keep.
- Add Capacitor: npx cap init, npm i @capacitor/android, npx cap add android. Point server.url at your live HTTPS site, or bundle your build folder as webDir.
- Raise the version code above the TWA release, build a signed .aab in Android Studio and upload it as a new release on the same closed track.
- Testers who are already opted in keep their opt-in; they receive the update from Google Play.
I have a Trusted Web Activity app for my website. Convert my project to a Capacitor Android app that shows the same site. Use the same application ID as the TWA, add @capacitor/core, @capacitor/cli and @capacitor/android, create capacitor.config.ts, and give me the exact commands and Android Studio steps to build a signed Android App Bundle with a higher versionCode than my current release.
Run the closed test: 12 testers for 14 days
Google requires personal developer accounts created after 13 November 2023 to run a closed test with at least 12 testers who stay opted in for 14 days in a row before they can apply for production access. The requirement is the same whatever tool built TWA or WebView app.
- In Play Console, create the app (name, default language, app or game, free or paid) and fill in the declarations Google asks for.
- Open Test and release, then Testing, then Closed testing. Create a release and upload your signed .aab file.
- Under Testers, add an email list or a Google Group. If you use Tester Exchange, the group to add is testerexchange-testers@googlegroups.com and we add our testers to it.
- Check Countries / regions includes the countries your testers live in.
- Send the release for review. When the app status is Published, share the opt-in link; each tester must open it and accept.
- Keep at least 12 testers opted in for 14 consecutive days. Aim for 15 so one dropout does not move your date.
- When the Dashboard shows the Apply for production button, apply and answer the three parts of the form.
No friends with Android phones? Tester Exchange gives you real people on their own phones, each day they open your app is recorded, and dropouts are replaced. You can also test other developers' apps free at https://testerexchange.com/earn and each app you test brings a tester to yours.
Common mistakes
- Do not create a new application ID just to change shells; that restarts everything.
- Do not remove testers from the track while you switch.
- Do not skip a real-device test: a WebView app can behave differently from Chrome (for example with sign-in pop-ups).
- Keep the Digital Asset Links file in place only if you still ship a TWA.
Frequently asked questions
Does Google Play accept TWA apps for closed testing?
Yes. Google treats a TWA as an ordinary app. The 12-tester, 14-day closed test is the same.
Will switching shells restart my 14 days?
If you upload a new release to the same app and track, testers stay opted in. Creating a new app with a new application ID starts a new test.
Do I have to give up my PWA?
No. The website stays. Only the Android shell changes.
Ask your AI assistant
Copy this into ChatGPT, Claude, Gemini or any assistant that can open web pages. Fill in the bracket.
Read https://testerexchange.com/guide/twa-app-closed-testing-webview-fix/ and answer for my situation: [describe your app and where you are in Google Play closed testing]. Tell me exactly what to do next, in order, and cite the guide.
Sources
Google's own documentation, which this guide follows: