Location-Aware Mobile Web Without an App Install

Location-Aware Mobile Web Without an App Store Install

What the mobile web can and cannot do for location-aware experiences — Geolocation, installable PWA, iOS Web Push, service worker offline, and where skipping the app store falls short.

As of November 2026, the mobile web ships foreground Geolocation, the Permissions API, installable Progressive Web Apps, service worker offline caching, and Web Push — including iOS Web Push since version 16.4 in March 2023 (Add to Home Screen required on iOS). What it still cannot do is background location, iBeacon scanning, or platform geofence triggers. This guide maps what works, the iOS install gate, the permission flow patterns worth testing for acceptance, and a rollout checklist for museum, tourism, retail, and editorial teams that cannot justify a native app install.

Why skipping the app store matters for first-touch location experiences

The conversion funnel from intent to native install is brutal. App-store search, app-page review, install dialog, OS download, first launch, account setup, and only then a location prompt — each step sheds users on the way from "I saw the QR code" to "I am inside the app with location granted." A mobile-web URL behind the same QR code collapses the funnel to two steps: tap the link, grant the prompt.

The economics are most decisive for one-shot experiences. Museum visitors, tourists at a heritage site, attendees at a one-day conference, customers in a pop-up retail event — none of them want to install a dedicated app for a single visit. A native install only makes sense when the user comes back, when background context matters, or when the device hardware needs deep integration that the web platform does not expose.

This is not a stopgap framing. For a meaningful set of use cases the mobile web is the destination, not a bridge to native. We default to mobile web for first-touch and reserve native promotion for users who have already engaged — they tapped through, completed the experience, and signaled they want more. Treat install as a value-driven choice, not a permission demand.

What works on mobile web today

The foreground Geolocation API returns the device position when the page is in the foreground and the user has granted permission; through enableHighAccuracy a page can request high-accuracy position data, though the browser can ignore that request. One-time fixes via getCurrentPosition work in every major browser, but only in a secure context (such as HTTPS), where the page's Permissions Policy allows geolocation, and once the user grants permission. Watch streams via watchPosition deliver updates only while the page is fully active and visible; under the specification, updates that occur while the page is hidden are dropped, and delivery resumes once the page is fully active and visible again. The specification does not promise native-app parity in accuracy or time-to-first-fix; a working hypothesis, not a documented rule, is that they come close when the browser draws on the operating system's location services. The W3C Geolocation API specification is the canonical reference for the surface.

javascript
navigator.geolocation.getCurrentPosition(
  (position) => {
    const { latitude, longitude, accuracy } = position.coords
    renderNearbyAttractions(latitude, longitude, accuracy)
  },
  (error) => fallbackToManualRegionPicker(error.code),
  { enableHighAccuracy: true, timeout: 8000, maximumAge: 60000 }
)

The Permissions API gives non-prompting state checks before you call Geolocation. This is a useful tool for a graceful permission UX — you read the current state and branch the experience without ever triggering a permission prompt that the user has not asked for.

javascript
async function routeLocationFeature() {
  const status = await navigator.permissions.query({ name: 'geolocation' })
  if (status.state === 'granted') startLocationFeature()
  else if (status.state === 'prompt') showCustomPrimerThenRequest()
  else if (status.state === 'denied') showManualRegionPickerOnly()
}

Service workers add the offline layer. A tour or exhibition site can pre-cache audio guides, exhibition images, descriptive content, and JSON manifests on first load, then run entirely offline as the visitor walks through the venue. Web Push for alerts works on Android Chrome in regular tabs and on iOS only when the user has added the site to the home screen, which we cover in the next section.

WebXR adds augmented reality, with anchors tied to the physical space the device tracks rather than to geographic coordinates, but as of November 2026 web-features records support for the WebXR AR, hit-test, and anchors modules only in Chromium-based browsers (Chrome, Chrome for Android, and Edge), with no Safari (including iOS) or Firefox support. AR specifics live in the AR article on this topic — the headline for this guide is that anchored AR is in scope for mobile web in Chromium-based browsers, while continuous spatial anchors that survive across sessions are a native strength (as of Nov 2026, MDN browser-compat-data records no WebXR persistent-anchor support in Chrome for Android, Safari on iOS, or Firefox for Android).

iOS Web Push and the PWA install gate

iOS Web Push arrived in iOS 16.4 in March 2023, announced in the WebKit blog post on Web Push for iOS. The constraint is that the user must add the site to the home screen via the Add to Home Screen flow first, after which the Home Screen web app can request push permission in response to a direct user interaction, such as tapping a subscribe button, and iOS or iPadOS then prompts the user to allow notifications.

This changes the design problem in two ways. First, Web Push on iOS is a value-gated feature — the user already chose to install before push is even on the table, which means the population that receives push is self-selected and high-intent. Second, the Add to Home Screen step is now load-bearing for the iOS share of your audience, and the UX you build around it determines whether anyone reaches the push layer at all.

On Android, Chrome and most major browsers support Web Push in regular tabs, with no install required (as of Nov 2026, MDN browser-compat-data). In Chromium-based browsers and Samsung Internet, the non-standard, experimental beforeinstallprompt event lets a site listen for the browser's installability heuristics and surface an install option at a time that fits the user's flow, rather than letting the browser show a generic banner at an awkward moment. Firefox and Safari, including Safari on iOS, do not fire it (as of Nov 2026, MDN browser-compat-data), so on iOS the install path is the Add to Home Screen flow described above.

javascript
let deferredPrompt = null

window.addEventListener('beforeinstallprompt', (event) => {
  event.preventDefault()
  deferredPrompt = event
  showCustomInstallButton()
})

document.querySelector('#install-button').addEventListener('click', async () => {
  if (!deferredPrompt) return
  deferredPrompt.prompt()
  const choice = await deferredPrompt.userChoice
  trackInstallChoice(choice.outcome)
  deferredPrompt = null
})

Design the install button to appear after a value moment — the user finished the first attraction in a tour, scrolled through the first gallery, completed the first quiz step. An install request placed before the user knows what the experience does asks for a commitment with nothing yet to justify it.

Service worker strategies for tour and exhibition content

Tour and exhibition venues can be poor cellular environments. Underground museums, dense historic districts, stone-walled exhibition halls, mountainous heritage trails — the network can drop out at exactly the moment the visitor needs the content. Service worker caching turns this from a blocker into a non-event. The MDN Service Worker API reference is a practical reference for the API.

The pattern that works for tours is pre-cache critical, runtime-cache the rest. Critical assets — the route manifest, all attraction descriptions, the audio guide files, the offline-safe map tiles — go into the cache during the install event. The sample below keeps the fetch handler simple: it serves every GET request cache-first, falls back to the network, and does not store runtime responses. For runtime resources that change, use a network-first handler that writes successful responses into the cache and falls back to the cached copy when the network fails, so a visitor with intermittent connectivity gets fresh data when possible and cached data when not.

javascript
const PRECACHE = 'tour-precache-v3'
const PRECACHE_URLS = [
  '/', '/manifest.webmanifest', '/audio/welcome.mp3',
  '/audio/attraction-01.mp3', '/audio/attraction-02.mp3',
  '/data/route.json', '/images/map-tile-overview.webp'
]

self.addEventListener('install', (event) => {
  event.waitUntil(caches.open(PRECACHE).then((c) => c.addAll(PRECACHE_URLS)))
})

self.addEventListener('fetch', (event) => {
  if (event.request.method !== 'GET') return
  event.respondWith(caches.match(event.request).then((cached) => cached || fetch(event.request)))
})

Storage quota is large on modern browsers. MDN describes per-origin limits set as a share of total disk size: up to 60% in Chromium-based browsers such as Chrome and Edge; from iOS 17 and macOS 14, around 60% in WebKit-based browser apps such as Safari and for sites saved as web apps on the Home Screen or the Dock, and around 15% in other apps that embed web content; and in Firefox's best-effort mode, the smaller of 10% of total disk size or a 10 GiB group limit shared by all origins of the same site. MDN adds that an origin might not actually reach its quota, because the limit is calculated from total rather than available disk space, and the WHATWG Storage Standard says a browser under storage pressure should clear best-effort storage. An hour-long audio tour with images and a route manifest fits inside the budget. Two related service worker APIs are easy to conflate. Background Sync, available only in Chromium-based browsers as of November 2026, defers a task, typically a queued request, until the device has a stable connection, per the MDN Background Synchronization API reference; it does not refresh content on a schedule. Periodic Background Sync is the API for refreshing cached content at intervals, which suits venues that update exhibits or rotate seasonal content, but as of November 2026 it is experimental and limited to Chromium-based browsers. The site sets a minimum interval when it registers the task, and the browser might also weigh other factors, such as previous engagement with the site or connection to a known network, in deciding when the event fires; in Chrome, the permission is granted only to an installed web app launched as a separate application, and Chrome uses the site's engagement score to determine whether and how often to fire periodic sync events, per the MDN Periodic Background Synchronization API reference. Treat it as an enhancement and keep a refresh-on-open path for every other visitor.

Two operational patterns are worth setting up from day one. The first is cache versioning — every release should rotate the cache name (we use a date or build hash suffix) and delete the previous caches in the activate handler with caches.keys() and caches.delete(), so old assets are evicted predictably rather than lingering across deployments. The second is a foreground "Update available" affordance — when the service worker detects a new version it surfaces a non-blocking notice and lets the user refresh into the new build on their own schedule, rather than forcing a reload mid-tour. Both patterns turn the service worker from a black box into a layer the venue's content team can ship confidently.

Permission flow patterns that respect the user

Primed prompts explain the value before the OS dialog appears, in contrast to cold permission prompts — the OS dialog shown immediately on page load. Published benchmarks vary widely by vertical and platform, so treat any single figure as directional and measure your own grant rate before and after adding a primer. Priming is a change worth measuring on a location feature.

A primed prompt is a custom UI panel that names the benefit, explains what data is used, and only triggers the browser API after the user taps a "Use my location" or "Start the tour" affordance. Wait for explicit user intent — opening the map screen, tapping a "Find nearby" button, scanning a venue QR code — before calling Geolocation.

The Permissions API closes the denial fallback loop. When the state is denied, do not call the Geolocation API at all — the browser will silently fail or return a denied error and the user may not revisit a system-settings panel to flip the permission. Instead, present a manual region picker, a search-by-postal-code input, or a list of attractions with explicit distance hints calculated from a default center. The experience degrades gracefully and the user does not feel pressured.

Never re-prompt within a session. Chrome limits repeated permission prompts: its source places an origin under a seven-day embargo after three dismissed or four ignored prompts in the default prompt UI, with lower counts for some other prompt UIs (source, not documented, Chromium main; as of Nov 2026), so a site that keeps asking can end up auto-blocked for that user. Check how other browsers and the operating system handle repeated requests on each target platform. Treat denial as a state that persists for the session and recover via the manual fallback.

Patterns the museum and tourism articles on this topic expand on are the QR-code-to-tour flow (no permission needed for content, foreground location requested when the user starts navigation), and the venue-staff fallback (a member of staff hands over a beacon-equipped device for users who deny permission). Both patterns share the principle that the experience must remain valuable for denied users.

One more pattern worth testing is the explicit "Try without sharing location" entry point. Some users may grant location after they have walked through the first one or two attractions without it — the permission is a softer ask once the value is visible. Surfacing the manual path as a first-class option from the welcome screen, rather than as a fallback after a denial, is a pattern to test against your own engagement and drop-off at the OS dialog.

When skipping the app store still falls short

Background location is unavailable on the web platform (as of Nov 2026, W3C Geolocation specification). A site cannot wake up to fire a location request after the tab is in the background or the device is asleep, and this gap follows from the specification, which exposes the Geolocation interface only to windows, not to workers, and delivers positions only to fully active, visible documents. Visit attribution flows that need to track a user from ad impression through to a physical store visit need native context. The web-vs-native article on this topic covers the full capability matrix.

iBeacon scanning is unavailable (as of Nov 2026, Web Bluetooth CG registries). Web Bluetooth, an experimental API available in Chromium-based browsers (off by default on Linux, and not in Android WebView, Firefox, or Safari, as of Nov 2026), does not expose the iBeacon advertising format and cannot replace native beacon scanning for proximity-triggered experiences. For BLE-driven museum guides, QR codes at each attraction or staff-issued devices are fallbacks for users who need the precise proximity behavior. The museum article on this topic details the QR-and-staff fallback patterns.

Geofence triggers — "wake me up when the user enters this region" — are unavailable (as of Nov 2026; the W3C Geofencing API was published as a Working Group Note on May 30, 2017, and is no longer maintained). Ad-platform location targeting — in Google Ads, for example — runs inside the ad network on the platform's own signals and does not need site code; for product geofencing the choice is native or skip.

Heavy AR with persistent spatial anchors is mostly native. WebXR, in Chromium-based browsers only as of Nov 2026, ships viewable AR and handles some anchor cases, but the experience parity with ARKit and ARCore is uneven enough that a heavy AR product has reason to pick native. The AR article on this topic covers the web-versus-native AR decision in detail.

A mobile-web rollout checklist

  • Publish as an installable PWA from day one — manifest, service worker, icons, and, for Chromium-based browsers, the beforeinstallprompt handler in place even if Web Push starts as a secondary feature
  • Document a permission denial fallback (manual region picker, postal code input, or default-center distance list) before launch
  • Pre-cache critical tour or exhibition assets in the service worker install event, runtime-cache the rest
  • Verify Safari iOS, Chrome Android, Firefox Android, and Samsung Internet at minimum on real devices, not just emulators
  • Test on cellular and low-bandwidth networks — tour venues, heritage trails, and dense historic districts often have poor connectivity
  • Prime the permission with a custom panel that names the benefit, and only call Geolocation after explicit user intent
  • Read the Permissions API state before requesting position — branch the UX on granted, prompt, and denied
  • Trigger any Add to Home Screen prompt after a value moment, never before — and in Chromium-based browsers use beforeinstallprompt rather than relying on the browser's generic banner
  • Measure permission acceptance rate on a fixed recurring cadence against your own pre-primer baseline and adjust priming if the figure drops
  • Follow the web.dev Progressive Web App learning path for the installable web app pattern and the web app manifest, and the W3C Web Application Manifest for the specification itself

The mobile web surface without an app store install is real. Treat it as the default for first-touch location experiences, design native install as the second step after a value moment, and use the articles on this topic — web-versus-native for the full capability matrix, museum and tourism for the venue use cases, AR for the spatial cases — when a specific layer of the stack needs more depth.

Project Inquiry