Answer
Can a PWA access the user’s location?
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.
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.