Back to blog
twadigital-asset-linksassetlinksgoogle-playpwawebsite-to-app

Why Your TWA Shows the Address Bar (and How to Fix It)

A URL bar at the top of your TWA means Chrome could not match your website to your app. This checklist walks website owners through the six usual causes, from the wrong SHA-256 fingerprint to a blocked .well-known folder, and how to check each one.

Turgay Ulutaş··12 min read
Why Your TWA Shows the Address Bar (and How to Fix It)

TL;DR: Your TWA shows an address bar because Chrome could not confirm that your website and your app belong to the same owner, so it opened your site in "Custom Tab" mode instead of full screen. The check happens through a small file on your site, assetlinks.json. The most common cause is the wrong SHA-256 fingerprint: with Play App Signing, Google signs the app your users install, so the file needs Google's fingerprint, not only yours. After that, check that the file is reachable at the exact address, on the exact domain the app opens, with the right package name. Fix the file, then clear Chrome's data on your test phone before you judge the result.


What the address bar is telling you

A TWA (Trusted Web Activity) is an Android app that opens your website full screen inside Chrome's engine. I explain it in more depth in what a TWA app is.

The "trusted" part is a two-way handshake called Digital Asset Links:

  1. The app says "I belong to example.com."
  2. The website says "this app, with this package name and this signing key, belongs to me." It says that in a file at https://example.com/.well-known/assetlinks.json.

When the app starts, Chrome checks both sides. If they match, your site fills the screen. If anything does not match, Chrome still opens the app but falls back to a Custom Tab, which is Chrome's in-app browser, and Custom Tabs show the address bar. Google's TWA quick start guide describes exactly this: without verified Digital Asset Links the app opens as a Custom Tab "with browser UI at the top of the page."

So the bar is not a bug in Bubblewrap or PWABuilder. It is a symptom: one detail between the app and the file is off.

Why it matters beyond looks

A URL bar makes a website app look unfinished. Users notice it at once, and Google's reviewers see the same screen. I see this often in website apps that reach Google Play's closed test: the site is fine, but the bar is still there. Fix it before your testers open the app.

The checklist, most common cause first

Work through these in order. Most people find the problem in the first two.

#CauseHow to check
1Wrong SHA-256 fingerprintCompare the file with the fingerprint in Play Console
2File not reachableOpen the URL in a private browser window
3Wrong origin (www, subdomain, http)Compare the app's start URL with where the file lives
4Package name typoCompare with the package name in Play Console
5Old result cached on the phoneClear Chrome's data or reinstall the app
6You left your domainWatch when the bar appears

1. The wrong SHA-256 fingerprint

A SHA-256 fingerprint is a long string of letters and numbers separated by colons that identifies the key that signed your app. Your file must list the fingerprint of the key that signed the copy on the phone.

Here is the trap. When you build with Bubblewrap or PWABuilder, you create your own key, called the upload key. The tool usually puts that key's fingerprint into assetlinks.json for you. Then you upload to Google Play, and with Play App Signing (the default for new apps), Google signs the app again with its own key before it reaches anyone's phone. Your file still lists your key, so Chrome finds no match and shows the bar.

Google's App Links troubleshooting page says to "use the one from the Play Console if you use Play App Signing." PWABuilder's Android docs say the same.

How to fix it:

  1. Open Play Console and select your app.
  2. Find the app signing page. Google moves this menu from time to time, and its own documents do not agree right now. Older guides say Setup, then App integrity, then App signing. Google's current Play App Signing help article goes through Protected with Play. If you cannot find it, type "app signing" into Play Console's search.
  3. In the app signing key section, copy the SHA-256 fingerprint.
  4. Add it to your file. Keep your upload key's fingerprint as well if you ever install builds directly from your computer to test. The field is a list, and Google's assetlinks guide confirms it accepts more than one fingerprint.

Write the fingerprint in uppercase, as Google asks, with the colons exactly as shown. Bubblewrap users can add the second fingerprint with its fingerprint command.

2. The file is not reachable

Chrome has to download the file from one exact address, with no detours. Google's requirements for assetlinks.json are:

  • The address is https://yourdomain.com/.well-known/assetlinks.json. Not in a subfolder, not with another name.
  • It is served over HTTPS.
  • It answers with HTTP status 200, without any 301 or 302 redirect.
  • It is served with the content type application/json.

How to check: open the address in a private browser window. You should see raw JSON, not your homepage or a 404 page. Any free "HTTP header checker" website will show the status code and content type: look for 200 and application/json.

Common reasons the file goes missing:

  • The host blocks folders that start with a dot. Some hosting panels and CMS platforms hide or refuse paths like .well-known. The fix is usually a static file rule or a rewrite that serves that one path directly; search your host's help pages for ".well-known".
  • A single-page app catches the route. Sites built with React or similar tools often send every unknown path to the homepage. The "file" then returns your homepage with status 200, which is not JSON.
  • A redirect sits in front of it. A rule that sends everyone to a language folder, a cookie wall or a "coming soon" page will break the check.
  • A firewall or bot protection challenges the request. The verification request cannot click through a challenge page.

3. The wrong origin

An origin is the combination of scheme, domain and subdomain: https://example.com and https://www.example.com are two different origins to Chrome. So is https://shop.example.com.

The file must live on the exact origin the app opens. If the app opens https://www.example.com but your file only exists at https://example.com/.well-known/assetlinks.json, verification fails. A redirect between them does not help: Google's troubleshooting page lists non-www to www and http to https redirects as causes of failure.

How to check: look at the start URL you entered in Bubblewrap or PWABuilder. Copy its domain exactly, add /.well-known/assetlinks.json, and open that address. If your site uses both www and non-www, serve the file on both without redirects.

Each origin needs its own file, and the app must be told about every extra origin too. Google's guide to multiple origins in a TWA covers the app side. In Bubblewrap, it is a setting for additional trusted origins.

4. A typo in the package name

The package name is the app's permanent ID on Google Play, like com.example.myapp. The one in assetlinks.json must match the one in the app character for character.

How to check: in Play Console, the package name is shown under your app's name. Compare it with the package_name line in your file.

5. An old result cached on the phone

You fixed the file and the bar is still there. In my experience this is usually caching: the phone does not always check the file again the moment you change it, and your host or CDN may keep serving the old copy for a while.

How to check:

  1. Open the file's URL in a private window and confirm the new version is live.
  2. On your test phone, go to Settings, Apps, Chrome, Storage, and clear Chrome's storage. Or uninstall and reinstall your app.
  3. Open the app again.

If the bar is gone, you were looking at an old result. Also make sure Chrome on the phone is up to date, since the full screen mode depends on it.

6. You navigated to another domain

This one is not a fault. If your app links to a page on a domain you do not own, such as a payment page, a booking widget or a social login, Chrome shows the bar while the user is there. Google's multi-origin guide explains why: the bar shows the user they have left your app, with an X button to return.

The bar disappears when they come back. If the other domain is yours, list it as an extra origin and give it its own assetlinks.json, as in step 3. If it belongs to someone else, the bar is expected and you cannot remove it.

A working assetlinks.json example

This is the shape of a correct file. It lists two fingerprints: Google's app signing key and your own upload key.

[
  {
    "relation": ["delegate_permission/common.handle_all_urls"],
    "target": {
      "namespace": "android_app",
      "package_name": "com.example.myapp",
      "sha256_cert_fingerprints": [
        "AA:BB:CC:...:PLAY_APP_SIGNING_FINGERPRINT",
        "11:22:33:...:YOUR_UPLOAD_KEY_FINGERPRINT"
      ]
    }
  }
]

Use your real package name and fingerprints; real fingerprints are much longer.

How to test without Android tools

You do not need Android Studio or adb (the developer's command-line connection to a phone) for most of this.

  1. Open the file in a private window. You should see your JSON. This covers cause 2.
  2. Use Google's Statement List Generator and Tester. Go to Google's Digital Asset Links tool. Enter your domain under "Hosting site domain", your package name, and the SHA-256 fingerprint from Play Console, then press "Test statement". It reads your live file and says whether that exact combination is accepted. Run it per fingerprint and per origin. This covers causes 1, 3 and 4.
  3. Install the real Play build. A build installed from your computer carries your upload key; the one from Google Play carries Google's. Install through your testing link to see what users see.
  4. Clear Chrome's data and open the app. This covers cause 5.

If all four pass and the bar still appears only on certain pages, you are looking at cause 6.

Prefer one package for the whole path?
The onTWA package includes your app, built with our own build process, made for Google Play's closed test, plus the 12 testers for 14 days and the production access application. You follow every step in your onTWA dashboard.
Start your app →

Where this fits in the bigger path

The address bar is one item on a longer list. A website app on Google Play also needs a privacy policy, a decent store listing and, for personal developer accounts created after November 13, 2023, a closed test with at least 12 testers opted in for 14 continuous days before you can apply for production access. I wrote the whole path in how to turn your website into an Android app.

If your TWA is already in a closed test, check the bar on a phone that installed from Google Play before your testing days start counting. Our sister service onTest has a guide on TWA apps and Google Play closed testing that covers what testers see.

If you would rather not set this up yourself, the onTWA package is $99.99 one-time and includes the app, the store listing, an app website on onStart, Play Console setup, the closed test with 12 testers for 14 days run by onTest on real Android devices, and the production access application, with every step in your onTWA dashboard. If Google refuses production access, you get a free second test, and if it is refused again, a full refund under our refund policy. Details are in our pricing section.

FAQ

Why does my TWA show the address bar?

Chrome could not verify that your website and your app belong together, so it opened your site as a Custom Tab, which shows a URL bar. The check uses the assetlinks.json file on your site. The most common cause is a missing Play App Signing fingerprint in that file.

Which SHA-256 fingerprint do I put in assetlinks.json?

Use the app signing key fingerprint shown in Play Console on the app signing page, because Google signs the app your users install. If you also install test builds directly from your computer, add your upload key's fingerprint too. The file accepts a list of fingerprints.

Where does the assetlinks.json file go?

It must be at https://yourdomain.com/.well-known/assetlinks.json on the exact domain your app opens. It must load over HTTPS with status 200, with no redirect, and be served as application/json.

I fixed assetlinks.json but the URL bar is still there. Why?

The phone may still be using an old verification result, or your host may still serve the old file. Confirm the new file is live in a private browser window, then clear Chrome's storage on the phone or reinstall the app and try again.

Does www versus non-www matter for a TWA?

Yes. https://example.com and https://www.example.com are different origins, and the file must be on the one your app opens. A redirect between them makes verification fail, so serve the file directly on both if you use both.

Is the address bar normal on payment or login pages?

Yes, if those pages are on a domain you do not own. Chrome shows the bar so users know they have left your app, and it disappears when they return. If the domain is yours, add it as an extra origin with its own assetlinks.json.

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