1. Home
  2. Tools
  3. WebView detector

Free tool · runs in your browser

WebView detector & in-app snippet

Open this page inside your app (or any app) to see what it reports — then copy a snippet that lets your website hide banners or footers when it's shown inside your app.

Checking…

    How to use it

    1. Open this page in your app. Visit this URL from inside your app (add a link on your site temporarily) to see what it reports.
    2. Choose how to detect. Use the standard Android WebView marker, or a custom token if your app adds one to the user agent.
    3. List what to hide. Enter CSS selectors for banners, footers or menus the app doesn't need.
    4. Paste the snippet. Copy the snippet into the head of your website.

    How detection works

    Android's WebView adds ; wv) to the user-agent string — Chrome itself never does — so /; wv\)/.test(navigator.userAgent) is a reliable test for "inside an Android app". Social apps identify their in-app browsers with their own tokens (FBAN, Instagram and so on). An installed PWA matches the display-mode: standalone media query.

    The snippet adds a class to <html> as early as possible, so your CSS can hide a "Get our app" banner, a duplicate footer menu or cookie notices without a flash of content. It's handy with a native tab bar from Web to App Creator Pro.

    Private by design: this tool runs entirely on your device. Nothing you type or add here is sent to a server.

    Create your app now — free

    No watermark, no card, no Android Studio. Pick what you're starting from:

    Frequently asked questions

    How do I detect an Android WebView in JavaScript?

    Test the user agent for "; wv)": /; wv\)/.test(navigator.userAgent). It's present in Android System WebView and absent in Chrome.

    Can I detect only my app, not other apps?

    Yes, if your app appends its own token to the user agent — choose "My own UA token" and enter it.

    Does this work on iPhone?

    iOS WebViews usually lack "Safari/" in the user agent, which this page uses as a hint; it's less definitive than Android's marker.