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.
The table covers the Geolocation interface as recorded in MDN browser-compat-data. Firefox’s location providers (GPSD and the network location service) are 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.
See also
Section titled “See also”- Geolocation API: accessing the user’s location
- Geolocation API (w3.org)
- Geolocation API (developer.mozilla.org)