Geolocation API browser support
Published
The Geolocation API returns the device position through navigator.geolocation.getCurrentPosition() for a one-shot read or watchPosition() for continuous updates, after the user grants permission.
Support data is for the Geolocation interface in MDN browser-compat-data. Firefox uses GPSD and a network location service, as described in its row footnote.
- Legend
- Yes
- Partial
- Flag
- No
- Unknown
| Browser / Platform | Support | Versions | Confidence | Source | Notes |
|---|---|---|---|---|---|
| Chrome (Desktop)# | Yes | 5 | high | source | — |
| Chrome (Android)# | Yes | 18 | high | source | 1 |
| Edge (Desktop)# | Yes | 12 | high | source | — |
| Firefox (Desktop)# | Yes | 3.5 | high | source | 2 |
| Firefox (Android)# | Yes | 4 | high | source | — |
| Safari (macOS)# | Yes | 5 | high | source | — |
| Safari (iOS)# | Yes | 3 | high | source | 3 |
| Samsung Internet# | Yes | 1.0 | high | source | 4 |
| WebView (Android)# | Yes | 4.4 | high | source | 5 |
- Derived by browser-compat-data mirroring from Chrome.
- GPSD (https://gpsd.gitlab.io/gpsd/index.html) (GPS daemon) support added in Firefox 3.6. WiFi-based location is provided by Google (privacy (https://support.mozilla.org/en-US/kb/does-firefox-share-my-location-websites)) or a custom provider (MLS instructions (https://wiki.mozilla.org/CloudServices/Location/Software)).
- browser-compat-data records support as ≤3: present in the earliest Safari on iOS release it tracks.
- Derived by browser-compat-data mirroring from Chrome Android.
- Derived by browser-compat-data mirroring from Chrome Android.
Cite this table
Geolocation API compatibility data — OpenPWA · Verified 2026-10-03 · CC BY 4.0 · JSON
When reusing compatibility data, keep the attribution, identify your changes and check each row’s original source. This citation excludes market-share and reach figures, which use CC BY-SA 4.0.
See also
Section titled “See also”- Geolocation API: accessing the user’s location
- Geolocation API (w3.org)
- Geolocation API (developer.mozilla.org)