Location not available? How to fix GPS and browser location errors
"Location not available." "Permission denied." "Your location could not be determined." These errors appear at the most inconvenient moments — when you actually need to know where you are. The frustrating part is that the cause is rarely obvious from the error message alone. Here's a systematic guide to diagnosing and fixing location errors across every major browser and platform.
The three root causes of location errors
Almost every location error falls into one of three categories:
- Permission denied — the browser or operating system has blocked this site from accessing your location, either because you said "Block" at some point, or because a system setting is preventing it.
- Position unavailable — the device or location provider cannot supply a position, possibly because signals or required services are unavailable.
- Timeout — the location request started but the device couldn't get a fix within the allowed time window.
Each has a different fix. Knowing which one you're hitting is step one.
Fix: permission denied in Chrome (desktop and Android)
If you previously clicked "Block" for a site, Chrome remembers that decision and won't prompt you again.
- Desktop: Click the site-controls icon in the address bar → select Site settings → find Location → change from Block to Allow. Reload the page and try again.
- Android Chrome: Tap the three-dot menu → Settings → Site settings → Location → find the site in the blocked list → tap it → change to Allow.
- Alternatively, go to Chrome settings → Privacy and security → Site settings → Location and look for the site under "Not allowed."
Fix: permission denied in Safari (macOS and iOS)
Safari handles location permissions at both the browser and OS level, which is why it can be trickier to fix.
- macOS: Safari menu → Settings → Websites → Location → find the site and change it to Allow or Ask. Also check: System Settings → Privacy & Security → Location Services → enable access for Safari if listed.
- iOS: Settings → Privacy & Security → Location Services → Safari Websites → change to While Using the App. Then in Safari, you may also need to: open the page menu beside the address bar and review this website’s location permission. Menu names vary by iOS version.
Fix: permission denied in Firefox
- Click the permissions icon beside the address bar, clear the remembered Location permission, then reload and request location again.
- Or open Firefox Settings, search for location, and open Location Settings under Permissions. Review the site’s entry and the option to block new requests.
Fix: OS-level location services disabled
Even with browser permissions granted, location won't work if location services are turned off at the operating system level.
- Windows: Settings → Privacy & security → Location → turn on Location services and check the available app and desktop-app location access controls.
- macOS: System Settings → Privacy & Security → Location Services → enable it and ensure your browser is checked.
- Android: Pull down the notification shade → tap the Location quick-tile to enable it. Or Settings → Location → turn on.
- iOS: Settings → Privacy & Security → Location Services → make sure the master toggle is on.
Fix: GPS has no fix (hardware unavailable or timeout)
If you get a "position unavailable" error rather than a "permission denied" error, the page has permission but the device or location provider could not supply a position. This does not identify one specific hardware fault.
- Go outdoors or near a window. GPS satellites require a reasonably clear line of sight. Dense buildings, basements, and parking garages block signals. Then request location again; the time needed varies.
- On Android: check Settings → Location → Location services → Location Accuracy, where available, and enable Improve Location Accuracy. Also check the browser’s precise-location permission. Menu names vary by manufacturer and Android version.
- Wait longer. If a device hasn't used GPS recently, it needs a "cold start" to download fresh satellite data — the time needed depends on reception, cached satellite data and available assistance.
- Check airplane mode. GPS itself works without internet, but assisted GPS (A-GPS) uses a network connection to speed up the initial fix. Airplane mode without Wi-Fi can slow down the first fix significantly.
Fix: location is available but inaccurate
Sometimes location works but the position shown is clearly wrong — a few kilometers off, or in the wrong city entirely.
- IP fallback: If GPS failed silently and the browser fell back to IP geolocation, the position can be the city your ISP routes through, not where you are. Reload and try the location request again.
- VPN: If you're using a VPN, your IP-derived location will be the VPN server's location. Try the device location request and check precise permission. A VPN changes IP-derived location; it does not directly change the phone’s satellite coordinates.
- Cached position: Browsers sometimes return a cached position that's hours old. Request your location again, keep the page active and check whether the reading updates. A hard reload alone does not guarantee a fresh GPS fix.
Does the site need to be on HTTPS?
Yes — this is a browser security requirement, not something we control. The Geolocation API is only available on secure origins (HTTPS or localhost). If you're visiting a site over plain HTTP, location will be blocked by the browser regardless of your permission settings. My Location is served over HTTPS, so this doesn't affect it — but if you're testing on a local development server, you'll need localhost (not your LAN IP) for location to work.
Still stuck?
Compare with another map app or website that has location permission. If several fail, check device settings and reception; if only one fails, review its site permission, connectivity and any displayed service error. A difference is a clue, not proof of a single cause. For official instructions, see Firefox location permissions, Android Location Accuracy and Apple Location Services. Once location is working, open My Location to view your position.