Back to blog
twawebviewpwawebsite-to-appgoogle-playcapacitor

TWA vs WebView vs Native Wrapper: Which Fits Your Website?

There are three common ways to turn a website into an Android app: a Trusted Web Activity, a WebView app, or a hybrid wrapper like Capacitor. Here is an honest comparison for website owners, including what each means for Google Play's closed test.

Turgay Ulutaş··12 min read
TWA vs WebView vs Native Wrapper: Which Fits Your Website?

TL;DR: If your website works well on a phone and you own the domain, a TWA (Trusted Web Activity) is usually the simplest route: it runs your site in Chrome's engine, shares Chrome's logins, supports web push, and updates whenever your site does. A WebView app gives app code more control, but it keeps separate storage, lacks some web features, and Google blocks its own sign-in inside embedded WebViews. A hybrid wrapper like Capacitor makes sense when you need native device features and have a developer. Google Play's 12 testers for 14 days rule applies to all of them, and the build technology alone does not decide approval.


The three routes

I run onTWA, a one-time package that takes website owners from their site to a TWA app on Google Play. I also run onTest, a Google Play closed-testing service, so I have watched many website apps go through Google's closed test: TWAs, WebView apps and hybrid apps. This is the comparison I wish people read before picking a route, including the cases where a TWA is the wrong answer.

TWA (Trusted Web Activity)

A TWA opens your website full screen inside Chrome's engine, with no browser bar. Android checks that you own the site through Digital Asset Links: a file called assetlinks.json on your domain that names the app. If the check passes, the address bar disappears. If it fails, the app shows a URL bar like a browser tab. I explain it fully in what a TWA app is.

The app is small, because it mostly points at your site and lets the browser do the work. That is also its dependency: it needs a browser that supports TWAs, which in practice is almost always Chrome.

WebView app

A WebView is a component built into Android that shows web pages inside an app. A WebView app is a native app whose main screen is that component, loading your website. The app's code can watch and change the page: intercept links, inject scripts, add its own menus. The catch is that a WebView is not Chrome. It has its own cookies and storage, and some web features work differently.

Hybrid wrapper (Capacitor, Cordova and similar)

Capacitor (by Ionic) and Apache Cordova also run web code in a WebView, but add a bridge to native plugins: camera, native push, biometrics, in-app purchases. The web code is usually bundled inside the app instead of loaded from your live site. This is a software project that needs a developer for its whole life.

Full native, written for Android in Kotlin, is the reference point: best performance, full device access, highest cost. Most website owners do not need it.

The comparison table

TWAWebView appHybrid wrapperFull native
Setup effortLow: a build tool plus one file on your siteMedium: Android project, WebView settings, link handlingHigh: web code adapted, plugins configuredHighest: a new app
CostFree tools or a one-time serviceFree templates or developer timeDeveloper time, ongoingDeveloper or agency, ongoing
UpdatesChange the website, the app shows itSite changes show, wrapper needs its own updatesUsually a new releaseA new release every time
PerformanceSame as your site in ChromeClose to ChromeGood, depends on the web codeBest
Web featuresSame as Chrome, including web pushSome limited, no web pushNative plugins fill the gapsNot web based
LoginsShares Chrome's cookies, Google sign-in worksSeparate cookies, Google sign-in blockedNative sign-in pluginsNative sign-in
PaymentsWeb checkout as in ChromeWeb checkout, some redirects need careNative billing pluginsNative billing
OfflineThrough your site's service workerPossible with extra workStrong, files bundledStrong
Play policy fitFine if you own the site and the app is usefulFine with the site owner's permission and a useful appFine if usefulFine if useful
Who maintains itYou maintain the websiteYou or a developer maintain the wrapperA developerA developer

On payments: Google Play's payments policy covers digital goods sold inside apps on every route. Physical goods and real-world services can use your normal web checkout. The build technology does not change which rule applies.

Where a TWA is strong

  • Users are already logged in. A TWA uses Chrome's storage, so someone signed in to your site in Chrome is usually signed in inside the app. Password managers, saved cards and Google sign-in work as in the browser.
  • Web push and updates come with the site. If your site sends web push, a TWA shows it as the app's notifications. Publish a change to the website and the app shows it next time it opens, with no new Play release.
  • Little to maintain. There is very little app code, and the browser engine gets security updates through Chrome's own updates.

What it needs from you: a website you own, where you can place assetlinks.json at https://yourdomain/.well-known/assetlinks.json, and a site that already works well on a phone. A TWA shows your site exactly as it is. If you use Play App Signing, the file must contain the SHA-256 fingerprint Google shows in Play Console, not your upload key's. That mix-up is the most common reason the address bar stays visible.

Where a WebView app is the better choice

A WebView app is the honest answer when:

  • you need app code to control or rewrite the page;
  • many of your users have phones without a browser that supports TWAs, where a TWA falls back to a simpler mode;
  • you have the site owner's written permission but cannot place a file on the domain.

The costs are real.

Sign-in. In 2016 Google announced it would stop allowing OAuth sign-in requests to Google from embedded WebViews, and from April 20, 2017 it blocked them for all clients on platforms with an alternative (Google Developers Blog). A "Sign in with Google" button on your site will not work in a plain WebView. You need a native sign-in flow or a browser tab for that step.

Separate storage. A user signed in to your site in Chrome has to log in again inside your WebView app.

Missing features. Web push does not work in a plain WebView, so push needs its own native setup. File uploads, downloads and camera access need extra code.

Security is yours. The WebView engine updates through the Play Store, but your wrapper code does not. JavaScript bridges, file access and link handling are your responsibility, and Google has warned developers about unsafe WebView settings in the past.

Permission. Google Play's spam policy does not allow apps whose main purpose is showing someone else's website in a WebView without the owner's permission. More on that in can you put your website on Google Play.

Where a hybrid wrapper or native app is the better choice

Pick Capacitor, Cordova or similar when you need device features the web does not offer well (background location, Bluetooth, deep file access), full offline use with bundled files, or native Play Billing for digital goods, and you have a developer for the long run. Go fully native when the app is the product and performance really matters, such as games or heavy media. Otherwise, a hybrid wrapper often means paying for complexity you will not use.

What about Google Play's closed test?

The closed testing rule does not care how your app was built. If your personal developer account was created after November 13, 2023, you must run a closed test with at least 12 testers opted in for 14 continuous days before you can apply for production access. It started at 20 testers and was lowered to 12 in December 2024. Organization accounts verified with a D-U-N-S number are exempt. onTest has the rule explained in detail.

That applies equally to TWAs, WebView apps, Capacitor apps and native apps. After the 14 days you answer Google's questions about the test in Play Console, Google reviews the application, which can take days, and it can refuse it.

"Switch to WebView to get approved"

You will find advice, sometimes from services that build apps, saying TWAs get refused and you should rebuild as a WebView app. I understand why: people see a refusal and look for one thing to blame.

My view, from watching many website apps go through the closed test: the build technology alone does not decide approval. I have seen TWAs approved and refused, and WebView apps approved and refused. What matters to Google is whether the app is useful to the people who install it and works well. A thin app that adds nothing over the website can be refused whatever it is built with. Switching to WebView does not fix that, and it adds the sign-in and storage problems above.

The preparation Google itself documents is worth doing on any route: no address bar, sensible back button behaviour, an offline page instead of an error, a working privacy policy, and an honest store listing with real screenshots. onTest has more on TWA apps and closed testing.

onTWA apps are TWAs built with our own build process, made for Google Play's closed test. If Google refuses production access, you get a free second test. If it is refused again, you get a full refund, under the conditions in our refund policy, such as keeping your website online and answering our messages.

Which should you pick

Stop at the first line that fits.

  1. You sell digital goods that need native billing, or need device features the web cannot reach. A hybrid wrapper or native app, with a developer.
  2. The app is your product and must feel native everywhere. Native.
  3. You need app code to control the page, or many users have no Chrome. A WebView app, with a developer who keeps the wrapper secure.
  4. You own the website, it works well on a phone, and you want it on Google Play with little ongoing work. A TWA.

Most website owners I talk to land on line 4. If that is you, the full path from website to Android app covers every step, whether you build it yourself with Bubblewrap or PWABuilder or use the onTWA package.

onTWA is $99.99 one-time, the same for every customer. It includes the signed TWA, the store listing, a website for your app with privacy policy, terms and support page on onStart (first year included), Play Console setup, the closed test with 12 testers for 14 days run by onTest on real Android devices, and the production access application. You need a website you own and a Google Play developer account ($25 one-time, with identity verification only you can do). No code. You order in a few minutes and follow every step in your onTWA dashboard. Full refund for any reason before work starts.

If your site needs a WebView or native build instead, onTWA is not the right fit, and I would rather say so now.

Turn your website into a TWA
The onTWA package includes the signed app, the store listing and the 12-tester closed test, and you follow every step in your onTWA dashboard.
Start your app →

FAQ

What is the main difference between a TWA and a WebView app?

A TWA runs your website in Chrome's engine and shares Chrome's cookies, logins and web features, verified through Digital Asset Links on your domain. A WebView app runs the site in Android's embedded WebView, which gives app code more control but keeps separate storage and lacks features such as web push.

Is a PWA the same as a TWA?

No. A PWA (progressive web app) is a website built to behave like an app, with a manifest and usually a service worker. A TWA is the Android app that puts a website, often a PWA, on Google Play and opens it full screen in Chrome's engine.

Does Google sign-in work in a WebView app?

Not in a plain embedded WebView. Google has blocked OAuth sign-in requests from embedded WebViews since April 20, 2017, so a WebView app needs a native sign-in flow or a browser tab. In a TWA, Google sign-in works as it does in Chrome.

Should I use Capacitor or a TWA?

Use a TWA if your website already works well on a phone and you mainly want it on Google Play with little upkeep. Use Capacitor if you need native device features, bundled offline files or native billing, and have a developer to maintain the app.

Will switching from a TWA to a WebView app help me pass Google Play's closed test?

Not by itself. The 12 testers for 14 days rule applies to every app type, and Google's production access review looks at whether the app is useful and works well, not at the build technology alone. Switching can also break Google sign-in and shared logins.

Do I need a new app release when my website changes?

Not with a TWA: website changes show up in the app without a new release. A WebView app also shows site changes, but its wrapper code needs its own updates, and hybrid or native apps usually need a new release.

Related guides

Ready to put your website on Google Play?

Your website as an Android app on Google Play: the app, its store listing and website, and the closed test in one package, tracked step by step in your dashboard.

Get Started