Website to app, answered
Short, sourced answers to the questions people ask before and after they package a website as an Android app.
- · Guides
How do I clear the cache in an Android WebView app?
To clear cache in an Android WebView, call webView.clearCache(true). Cookies, localStorage and history each need a separate call.
- · Guides
How do I set a custom user agent in an Android WebView?
Set a custom user agent in an Android WebView with setUserAgentString before loadUrl, and append to the default so sites still see the wv token.
- · Guides
How do I make a WebView app follow Android dark mode?
WebView dark mode follows your app theme, not the phone. Flip isLightTheme at night, add the color-scheme meta tag, and allow algorithmic darkening.
- · Guides
Why does geolocation not work in my Android WebView app?
WebView geolocation fails when the app lacks location permission, never answers the WebChromeClient prompt, or loads the page over plain HTTP.
- · Guides
How do I add a website app to the Amazon Appstore?
To list a web app on the Amazon Appstore, wrap your website as an APK or AAB and submit it for Fire tablets and Fire TV. URL submission has ended.
- · Guides
How do I debug an Android WebView app with Chrome DevTools?
To debug an Android WebView in Chrome DevTools, call setWebContentsDebuggingEnabled(true), turn on USB debugging and open chrome://inspect.
- · Guides
How long does Google Play review take for a new app?
Google Play review time for a new app runs from a few hours to seven days, longer in exceptional cases. Plan at least a week before launch.
- · Guides
Why is localStorage not saved in my Android WebView app?
WebView localStorage is not saved when DOM storage is off, the page runs from file://, its origin changes, or the 5 MiB quota fills. How to fix each.
- · Guides
How do I choose a package name for my Android app?
Choose an Android app package name by reversing a domain you own, like com.yourbrand.appname, in lowercase. It cannot change once it is on Google Play.
- · Guides
Can a WebView app use cookies and stay logged in?
Yes. Android WebView cookies are on by default and can keep users logged in, as long as the site sets a persistent cookie and the app saves it to disk.
- · Guides
Why does my WebView app not play videos full screen?
WebView fullscreen video fails when the app doesn't override onShowCustomView, or the page's iframe lacks allowfullscreen. Here's how to tell which.
- · Guides
How do I handle mailto and tel links in a WebView app?
Handle WebView mailto and tel links in shouldOverrideUrlLoading: send mailto to ACTION_SENDTO, tel to ACTION_DIAL, return true and catch the exception.
- · Guides
How do I open PDF files in an Android WebView?
Android WebView can't open PDF files on its own. Show them with pdf.js, hand them to a PDF app with an intent, or use the AndroidX PDF viewer.
- · Guides
Can I update my app on Google Play without changing the website?
You can update an app on Google Play without touching your website: upload a build with the same package name, same key and a higher version code.
- · Guides
How do I make a WebView app full screen without the status bar?
Make a WebView app full screen by hiding the status bar with WindowInsetsControllerCompat, then pad the page with safe-area insets so nothing hides.
- · Guides
What is a keystore file and where do I keep it?
An Android keystore file holds the private key that signs your app. Keep two offline backups and store the passwords apart from the file.
- · Guides
How do I reset my upload key on Google Play?
Reset a lost Google Play upload key: create a new key, export its PEM certificate, then click Request upload key reset under Play app signing.
- · Guides
How do I test an APK on my phone before publishing?
To test an APK on your phone, install the signed release build by file transfer, adb or a Play internal test, then check the flows a WebView app breaks.
- · Guides
How do I add a splash screen to a WebView app?
Add a WebView splash screen with the AndroidX SplashScreen API, keep it up until the first page commits, and cap the wait for slow networks.
- · Guides
How do Android App Links work for a website app?
Android App Links open your website's links in your app after Android verifies a file on your domain. How the tap is routed and what the app must do.
- · Guides
Why was my Google Play production access rejected after closed testing?
Google Play production access is usually rejected for too few opted-in testers or weak tester engagement. Here is what Google checks and how to reapply.
- · Guides
How do I add pull to refresh to a WebView app?
Add WebView pull to refresh by wrapping the WebView in SwipeRefreshLayout, calling reload() on swipe and stopping the spinner when the page finishes.
- · Guides
Why is my WebView app showing a white screen?
A WebView white screen usually means JavaScript or DOM storage is off, an SSL or http load was blocked, or a local file was refused. How to find which.
- · Guides
Will Android block apps from unverified developers?
Android developer verification blocks unregistered apps from some stores in four countries now and goes global in 2027. Sideloading stays possible.
- · Guides
What is assetlinks.json and does my WebView app need it?
assetlinks.json proves your site and Android app belong together. A plain WebView app doesn't need it; App Links, TWAs and passkeys do.
- · Guides
What's the best way to turn a website into an app?
To turn a website into an app, install it as a web app, wrap a PWA for Play, use a WebView wrapper, or rebuild with Capacitor. Pick by store and budget.
- · Guides
How do I make the back button go to the previous page in an Android WebView app?
Fix the WebView back button with an OnBackPressedCallback that calls goBack() while canGoBack() is true. Old onBackPressed code breaks on Android 16.
- · Guides
Can I share my APK on my own website instead of Google Play?
Yes, you can share an APK on your website. Users must allow unknown installs, and Android developer verification now matters for sideloaded apps.
- · Guides
Is it legal to turn someone else's website into an app?
To turn someone else's website into an app you need the owner's permission. Google Play bans WebView apps of sites used without permission.
- · Guides
Can I put AdMob ads in a WebView app?
Yes. An AdMob WebView app can show SDK ads next to the WebView, and AdSense inside it needs the WebView API for Ads. Framing other sites is not allowed.
- · Guides
What target API level does Google Play require for new apps?
Google Play's target API level for new apps and updates is Android 16 (API level 36) since August 31, 2026. Wear OS, TV and XR apps have lower levels.
- · Guides
Should I build a native app or wrap my website in a WebView?
Native app vs WebView: wrap your site if it works well on mobile and the app adds value; build native for device features, heavy graphics or offline.
- · Guides
Is a website converted to an app slower than a native app?
A WebView app is usually a bit slower than native, mostly because the website inside it is slow. Here are the real speed budgets and how to measure yours.
- · Guides
How do I make an Android app from one HTML file without Android Studio?
Make an Android app from one HTML file without Android Studio: inline its CSS, JavaScript and images, then package it with a browser builder or SDK tools.
- · Guides
Can I turn a Google Sites page into an Android app?
Yes. Publish your Google Sites page as Public, then wrap its URL in a WebView Android app. Restricted sites fail since WebView blocks Google sign-in.
- · Guides
How do I turn an HTML5 game into an Android app?
Turn an HTML5 game into an Android app with a WebView: wrap a hosted URL or bundle the files with Capacitor. Then test audio and file loading.
- · Guides
Can I make an Android app on my phone without a computer?
Yes, you can make an Android app on your phone with an on-device IDE or a browser builder. Several popular tools still need a computer for one step.
- · Guides
How do I fill in the Google Play Data safety form for a WebView app?
Fill in the Data safety form for a WebView app by declaring what your own website collects in the app, plus any SDKs. Open-web browsing doesn't count.
- · Guides
Do I need a privacy policy for a WebView app on Google Play?
Yes. Google Play requires a privacy policy for every WebView app, even one that collects no data, linked in Play Console and inside the app.
- · Guides
Can I turn a Shopify store into an Android app?
Yes. Turn a Shopify store into an Android app by wrapping the storefront in a WebView, or build native screens with the Storefront API and Checkout Kit.
- · Guides
Can I turn a WordPress site into an Android app for free?
Yes, you can turn a WordPress site into an Android app for free with a WebView wrapper. Publishing on Google Play still costs a one-time US$25 fee.
- · Guides
What size should an Android app icon be?
Android app icon size: 512 x 512 px PNG for Google Play, and 108 x 108 dp adaptive layers with a 66 dp safe zone for the launcher icon.
- · Guides
What size is the Google Play feature graphic?
The Google Play feature graphic size is 1024 x 500 px, saved as a JPEG or 24-bit PNG with no alpha. It is required to publish a store listing.
- · Guides
What screenshots do I need for a Google Play store listing?
Google Play screenshot requirements: at least 2 screenshots, JPEG or 24-bit PNG, 320 to 3840 px, long side no more than twice the short side.
- · Guides
Does file upload work in an Android WebView?
WebView file upload works only if the app overrides onShowFileChooser. By default Android WebView cancels every file request, so the button does nothing.
- · Guides
How do I fix net::ERR_CLEARTEXT_NOT_PERMITTED in an Android WebView?
ERR_CLEARTEXT_NOT_PERMITTED in a WebView means Android blocked a plain http:// request. Move the site to HTTPS, or allow one domain in a security config.
- · Guides
How do I fix "Error 403: disallowed_useragent" in an app?
Error 403 disallowed_useragent means Google blocked sign-in from an in-app browser. Open the page in Chrome or Safari, or move login to a real browser.
- · Guides
How do I allow camera and microphone access in an Android WebView app?
WebView camera and microphone permission needs two grants: the app's CAMERA and RECORD_AUDIO runtime permissions, then onPermissionRequest for the page.
- · Guides
How do I make external links open in the browser from a WebView app?
To make a WebView open external links in the browser, override shouldOverrideUrlLoading, keep your own domain inside and send other links to an Intent.
- · Guides
Why does Google sign-in not work inside a WebView app?
Google sign-in in a WebView is blocked by Google's policy and shows disallowed_useragent. Use Custom Tabs, native Sign in with Google, or another login.
- · Guides
Can I publish a progressive web app (PWA) on Google Play?
Yes, you can publish a PWA on Google Play by wrapping it in a Trusted Web Activity, verifying your site with assetlinks.json and uploading the AAB.
- · Guides
How do I make my website work offline with a service worker?
Make a website work offline: register a service worker over HTTPS, cache key files on install, and serve an offline page when the network fails.
- · Guides
Why are file downloads not working in my Android WebView app?
WebView file download not working? A WebView needs a DownloadListener to save files, and blob links, missing cookies and storage rules break it.
- · Guides
PWA vs WebView app: which is better for Android?
PWA vs WebView app: a PWA gets Chrome's full web features and web push; a WebView app gives native control and suits sites or HTML you can't change.
- · Guides
What is a Trusted Web Activity and do I need one?
A Trusted Web Activity opens your own PWA full screen in Chrome inside an Android app. You need one only if you own the site and want browser features.
- · Guides
Can I add push notifications to a WebView app?
Yes, but not with web push. WebView app push notifications need native code such as Firebase Cloud Messaging plus the Android 13 notification permission.
- · Guides
Does a WebView app work without internet?
A WebView app works without internet only for content bundled in the app or already cached. A live website needs a connection and shows an error offline.
- · Guides
What is a version code in Android and when do I increase it?
An Android version code is a positive integer that marks each build as newer. Increase it for every release you upload or install as an update.
- · Guides
Can I change the package name of my Android app after publishing?
You can't change package name after publishing on Google Play. A new package name is a new app, so you republish and move users over.
- · Guides
What is Play App Signing and do I have to use it?
Play App Signing means Google holds your app signing key and signs your APKs. If you publish an AAB on Google Play, you have to use it.
- · Guides
What is the difference between an upload key and an app signing key?
Upload key vs app signing key: you sign uploads with the upload key; Google signs what users install with the app signing key.
- · Guides
Can I convert an APK to an AAB?
There's no official way to convert an APK to an AAB. Rebuild the AAB from your project, or rebuild the module by hand with bundletool.
- · Guides
How do I install an AAB file on my phone?
You can't install an AAB file on a phone directly. Turn it into APKs with bundletool, use an installer app, or share it through Google Play.
- · Guides
What happens if I lose my Android app signing key?
Lose your Android app signing key and you can't update the app, unless Google holds it through Play App Signing. What you can still do, by key type.
- · Guides
How do I fix "There was a problem parsing the package" on Android?
"There was a problem parsing the package" means Android can't read the APK: a broken download, an AAB, a too-new minSdk, or a bad manifest.
- · Guides
What is replacing APK files on Google Play?
The Android App Bundle (AAB) is replacing APK as Google Play's upload format. New apps need AAB since August 2021, but phones still install APKs.
- · Guides
Which apps use WebView?
Which apps use WebView? Most do: social in-app browsers, hybrid apps, website wrappers and help screens. Here's how to check any app yourself.
- · Guides
Can ChatGPT build an Android app?
ChatGPT can build an Android app's code, but you still have to compile it, sign it, test it on a device and publish it yourself.
- · Guides
Can I turn my website into an iOS app with a WebView?
You can wrap a website to iOS app form with a WebView, but Apple rejects apps that are just a repackaged website. What passes, and the free alternative.
- · Guides
What are APK signature schemes v1, v2 and v3?
APK signature scheme v1 signs the JAR entries, v2 signs the whole file (Android 7.0+), and v3 adds key rotation (Android 9+). Which ones you need.
- · Guides
How do I update Android System WebView without the Play Store?
To update Android System WebView without the Play Store, install a Google-signed WebView (or Chrome) APK, then select it under WebView implementation.
- · Guides
Can I convert HTML to APK?
Yes. Bundle the HTML, CSS and JavaScript inside an Android app and show it in a WebView. It runs offline as long as nothing loads from the internet.
- · Guides
How do I convert a website into an Android app?
Wrap the site in a WebView (or a Trusted Web Activity if it's a PWA), sign it with a key you keep, test the APK on a phone, then ship an AAB to Play.
- · Guides
How do I sign an APK from the command line?
Create a key with keytool, align the APK with zipalign, sign it with apksigner sign --ks, then check it with apksigner verify. Order matters.
- · Guides
What is the difference between a signed and an unsigned APK?
A signed APK carries a developer certificate and can be installed and updated. An unsigned APK has no signature, so Android refuses to install it.
- · Guides
Why does my APK say "App not installed"?
Usually the APK is signed with a different key than the installed app, has a lower version code, needs a newer Android, or is really an AAB.
- · Guides
What is Google Play's 12 testers, 14 days rule?
New personal Play Console accounts must keep at least 12 testers opted in to a closed test for 14 days in a row before applying for production access.
- · Guides
How much does it cost to publish an app on Google Play?
A one-time US$25 registration fee. No yearly fee and no per-app fee. Google only takes a service fee if you sell the app or things inside it.
- · Guides
Why did Google Play reject my WebView app for minimum functionality?
The reviewer saw a website in a frame, or an app that broke during review. Add real app value, fix what failed, then resubmit a new version.
- · Guides
Can I convert my website to an Android app for free?
Yes. A WebView wrapper or a Trusted Web Activity costs nothing to build. The only fee you can't avoid is Google Play's one-time US$25 registration.
- · Guides
Do WebView apps get rejected by Google Play?
Some do. Google rejects WebView apps that only mirror a website, wrap a site without permission, or break in review. WebView itself is allowed.
- · Guides
Is it safe to use an online website to APK converter?
It can be, if you control the signing key and know what code goes into the app. The real risks are a builder holding your key or injecting its own code.
- · Guides
How do I turn a website into an APK without coding?
Use a no-code WebView builder, or PWABuilder if your site is a PWA. Both give you an APK with no code. Getting into Google Play is the harder part.