Help centre

Answer

Can a PWA access the user’s location?

Short answer

Yes. The Geolocation API, available via navigator.geolocation.getCurrentPosition() and watchPosition(), lets a PWA request the device’s location on any major browser, but only after the user grants an explicit permission prompt and only over HTTPS. Accuracy depends on the device — GPS on mobile, Wi-Fi/IP triangulation on desktop.

By InstantPWA engineering·Reviewed July 25, 2026

One-time vs continuous

getCurrentPosition() returns a single reading; watchPosition() keeps calling back as the device moves, until you call clearWatch().

Permission and security

Requires a secure context (HTTPS) and a user gesture is not strictly required, but browsers always show a permission prompt before the first read.

Accuracy

Mobile devices typically use GPS/GNSS for high accuracy outdoors; desktops usually rely on Wi-Fi and IP-based estimates, which are far less precise.

Related
Can a PWA access the camera?
Yes. A PWA can access the camera, microphone, geolocation and file system through the same Web APIs a regular website uses (getUserMedia, showOpenFilePicker, Geolocation). Every capability requires explicit user permission and works cross-platform, though a few APIs (Bluetooth, USB, NFC) are still Chromium-only.
What is a PWA?
A PWA (Progressive Web App) is a regular website that meets three technical criteria — HTTPS, a Web App Manifest and a service worker — so browsers let visitors install it on their home screen. Once installed, it launches like a native app, works offline and can send push notifications.
Can a PWA read and write the clipboard?
Yes. The asynchronous Clipboard API (navigator.clipboard.writeText() / readText(), plus write()/read() for images and other types) lets a PWA copy to and paste from the system clipboard. Writing generally requires a user gesture like a click; reading is more restricted and, on most browsers, requires either a user gesture, a permission prompt, or both, to prevent silent clipboard snooping.
Can a PWA record the screen?
Yes, on desktop browsers. navigator.mediaDevices.getDisplayMedia() lets a page request permission to capture a tab, an application window or the entire screen — the user explicitly chooses which one from a native OS picker every time. Combined with the MediaRecorder API, a PWA can record and save screen video entirely client-side. Mobile browser support is more limited than desktop.
Do you have to submit a PWA to an app store?
No. A PWA installs directly from the browser with no app store involved at all — that is one of its core advantages. Submitting to the Google Play Store, Microsoft Store or Apple App Store is entirely optional and is done purely for extra discoverability, using wrappers like a Trusted Web Activity (Android) or PWABuilder-generated packages (Windows, and a WKWebView-based wrapper for iOS).