HTML to APK Builder

STEP BY STEP ON YOUR PHONE

WebView settings: navigation, background, security and engine options

What every option in the Advanced Build WebView step does: pull to refresh, back history, background sound and running, screenshots, PDFs, game mode, cache and mixed content.

Updated:

Screenshots: version 1.35 verification build on Android. Labels may vary by release.

Your app shows its pages in Android’s WebView, the same engine Chrome uses. The WebView step of Advanced Build controls how that engine behaves. The defaults suit most apps; change an option only when you know why.

Some options only appear for website (URL) projects, because they make no sense for local HTML.

Option Default What it does
Pull to refresh (URL only) on Swiping down at the top of the page reloads it. It does not trigger while an inner area is scrolled, or when the page sets CSS overscroll-behavior.
No internet dialog (URL only) on When the site cannot load because the device is offline, the app shows a message with a retry button instead of a browser error page.
Loading indicator (URL only) off A thin progress bar at the top while a page loads. Useful for slow sites.
Back button history navigation on Android’s back button goes back through visited pages first and closes the app only on the first page. Turn off if your app manages its own screens and back should always exit.
Exit confirmation dialog off Asks “exit?” before the app closes with the back button. Helps games and forms where an accidental exit loses progress.

Sound and background

Option Default What it does
Pause sound in the background off Audio and video stop when the user leaves the app and continue on return. Turn on for games and video apps. Leave off for music, radio and podcast apps that should keep playing.
Keep running in the background off The app keeps running off screen with a permanent notification, for timers, trackers or players that must not be stopped by Android. It uses more battery. On Google Play you must declare the foreground service in the Play Console. The required service and permissions are added only when this is on.

Location and sensors still pause in the background even with this option.

Security and privacy

Option Default What it does
Android API only on your own pages on Only your own content can call AndroidAPI: the local files, or your website and its subdomains in a URL project. Other websites, ads and embedded frames (such as videos) cannot read app files, location or the microphone. Turn off only if you trust every page the app can open.
Block screenshots off Screenshots and screen recordings of the app come out blank, and the app content is hidden in the recent apps list. For banking-style, exam or private content apps.

System integration

Option Default What it does
Open PDFs from other apps off (on for PDF projects) Adds your app to Android’s “Open with” list for PDF files.
Mark as game off Android treats the app as a game: it can appear in game launchers and use the system game mode and game tools. Use it for real games only.

Advanced engine settings (Pro)

These settings are locked without Pro and keep their defaults. Wrong values can break pages, so change them only for a specific reason.

Setting Default Notes
JavaScript Enabled on Almost every page needs it, and AndroidAPI requires it. Turn off only for fully static text.
DOM Storage Enabled on localStorage and sessionStorage. Many apps keep their data here; turning it off loses it.
Allow File Access off Lets the page open file:// addresses on the device. Your project files do not need it.
Allow Content Access off Lets the page open content:// addresses shared by other apps.
Universal File Access, File Access From File URLs as set Apply only to pages opened from file:// addresses. Your local project is served from a secure app address, so these do not affect it. Do not enable them to fix loading problems.
Built-in Zoom Controls on Pinch to zoom. Games and app-like layouts often turn it off; also use <meta name="viewport" content="width=device-width, initial-scale=1">.
Use Wide Viewport on Respects the page’s viewport tag instead of forcing the screen width.
Load With Overview Mode on Pages wider than the screen open zoomed out to fit.
Geolocation Enabled off Gives pages navigator.geolocation. It is turned on automatically when a location permission is selected.
Cache Mode Load Default Load Default follows normal HTTP caching. Cache Else Network prefers saved copies (good for weak connections). No Cache always downloads (for live data). Cache Only never uses the network.
Mixed Content Mode Always Allow What happens when an https page loads http images, video or scripts. Always Allow keeps older sites and HTTP media (IPTV, radio) working. Compatibility Mode allows images and media but blocks scripts. Never Allow blocks all of it and is the most secure if your site is fully https.

Common problems

  • Login with Google or Facebook does not work in a URL app. Popups open in a separate window that closes when the login finishes; keep JavaScript and DOM Storage on. Some providers block logins inside apps; that is a provider rule.
  • Data disappears after an update. Keep the same package name and signing key, and do not turn off DOM Storage.
  • The page is tiny or does not fit. Add the viewport meta tag shown above and leave Wide Viewport and Overview Mode on.
  • Audio keeps playing after leaving the app. Turn on Pause sound in the background.