Skip to content

Guides

WebView App White Screen but the Website Works in Chrome? How to Find Why

A blank app screen has several causes that look identical. Here is the order to rule them out, which ones you can check yourself and what to send your developer.

8 min read

A WebView app white screen, when the same site works in Chrome, usually points to a difference between Chrome and the app: a WebView setting that is off by default, an outdated Android System WebView on that phone, blocked content, or a JavaScript error. Check whether it happens on every phone or only some. That one answer narrows the search the most.

Is the white screen on every phone or only some?

Install the app on at least two phones with different Android versions, and open your site in Chrome on the same phones. Then match what you see.

What you seeStart by checkingWho can fix it
Blank in Chrome tooThe website, hosting or domainYou or your web developer
Blank in the app on every phone, fine in ChromeApp settings, blocked content, a script errorApp builder or developer, sometimes your web developer
Blank only on some or older phonesAndroid System WebView version and newer JavaScriptPhone owner or your web developer
Blank only after signing in or on one pageThat page's scripts, redirects and stored dataWeb developer
An error code instead of a blank pageThe code itselfDepends on the code

If there is an error code, search for it directly. We cover ERR_CLEARTEXT_NOT_PERMITTED and ERR_UNKNOWN_URL_SCHEME separately.

Why does my website work in Chrome but not in a WebView?

A WebView is a component an app configures for itself, and several web features start switched off. Android's WebSettings reference lists these defaults.

SettingDocumented defaultWhat it can look like
setJavaScriptEnabledfalseA site that builds its page with JavaScript shows nothing or only a shell
setDomStorageEnabledfalseScripts that rely on local storage may fail partway
setMixedContentModeNever allow, for apps targeting Android 5.0 and laterA secure page cannot load http scripts or images

The third column describes likely effects, which vary with how your site is built. If you write the app yourself, turn on JavaScript and DOM storage when your site needs them. For mixed content, fix the http addresses on the site. Android's documentation strongly discourages the mode that allows everything.

Can an outdated Android System WebView cause a white screen?

It can. The app does not necessarily use the same browser engine version you tested with on your own phone. One app publisher's help page on updating WebView lists blank or white screens among the symptoms of an old version.

  1. 1

    Open the Play Store

    Search for Android System WebView and tap Update if the button is there. Update Google Chrome too.

  2. 2

    If it does not show up

    Samsung's support page gives this path: Settings, Apps, the three-dot menu, Show system apps, Android System WebView, then App details in Store. Names differ between phones.

  3. 3

    Restart and retest

    Close the app fully, reopen it, and try the same page.

Some devices cannot get a new enough version. One developer on the B4X forum reported a blank page after login on an Android 7 tablet, fine in Chrome, with the error "Uncaught ReferenceError: globalThis is not defined". An error like that suggests the page uses JavaScript the phone's WebView does not understand. Your web developer can lower the build target or add a polyfill.

How do I see the error behind a blank WebView?

Chrome's guide to remote debugging WebViews describes the method. There is a catch: the app itself must have WebView debugging switched on.

  1. 1Ask for a test build that calls WebView.setWebContentsDebuggingEnabled(true).
  2. 2Turn on USB debugging in the phone's developer options and connect it to your computer.
  3. 3Open the app on the blank page.
  4. 4In Chrome on the computer, go to chrome://inspect and click inspect under your app's WebView.
  5. 5Open the Console tab, reload, and copy the first red error. In the Network tab, check the status of the main page.

If your app does not appear on that page, debugging is probably not enabled in that build. Do not ship a public release with it on unless your developer has a clear reason.

What should I send my developer or app builder?

"The app is white" is hard to act on. Send these instead.

  • Phone model, Android version and Android System WebView version.
  • The exact page address, and whether you were signed in.
  • Whether the same page works in Chrome on that phone.
  • Whether it is blank from launch or turns blank after a tap.
  • The first console error, if you could get one.
  • What changed last: a site update, a plugin, a new app build or a phone update.

If the screen turned blank or stale after a site update, see why website changes may not show in your app. A page can hold on to old files that point to scripts you have since replaced.

How do I avoid this before publishing?

Test the installed app, not only the website in a mobile browser. Include an older phone, a slow connection, a signed-in session and every page your visitors rely on. Our website preparation checklist covers the layout and form checks that go with it. Google Play review also opens your app, so a blank first screen is worth fixing before you submit.

Frequently asked questions

Why is my WebView app showing a blank white page?
Common places to look are JavaScript or DOM storage being off in the app, an outdated Android System WebView, blocked http content, and a JavaScript error. Check whether Chrome on the same phone loads the page first.
Is JavaScript enabled by default in Android WebView?
No. Android's WebSettings reference gives false as the default for setJavaScriptEnabled. The app has to turn it on.
How do I debug a white screen in a WebView app?
Use a build with WebView debugging enabled, connect the phone by USB, open chrome://inspect in desktop Chrome and read the Console and Network tabs for that WebView.
Will reinstalling the app fix a white screen?
It can help if damaged or old stored data is the cause, but it will not fix a script error, a disabled setting or an outdated Android System WebView.