Mobile browser compass not working? How to check
Check whether your phone's browser can read its compass, understand missing or jumpy headings, and fix permission, browser, or interference problems.
Your phone’s compass works in one app but not in a browser, or the direction jumps while you turn the device. The cause may be browser support, a blocked sensor permission, or magnetic interference nearby.
Use the Sensors Test to see whether the browser can read compass data from your phone. This checks the sensor in the browser, not the GPS, map, or route guidance in a navigation app.
Check the compass in your mobile browser
- Open the Sensors Test directly in Safari or Chrome on the phone or tablet you want to check. Avoid opening it inside another app’s built-in browser.
- Allow sensor access if the browser displays a permission request. If the page asks you to interact before showing readings, tap the page and follow its prompt.
- Hold the device flat and still, away from metal objects, speakers, magnetic cases, and car mounts. Wait briefly for the compass reading to settle.
- Turn the phone slowly through a full circle. Check whether the compass reading changes smoothly and follows the direction you turn.
- Repeat the check in another supported mobile browser, if available. Keep the device in the same place so you can compare results.
For a fair check, use a normal browser tab rather than a private tab, and make sure the page has finished loading. A browser may restrict sensor access in an embedded window or under some privacy settings.
What the result means
The compass reading changes smoothly as you turn
The browser is receiving compass data. If a navigation app still points the wrong way, its map, location, or calibration behavior may be the issue rather than browser access to the compass.
No compass reading appears
The phone may not provide compass data to that browser, the browser may not support the needed sensor feature, or access may be blocked. This does not by itself prove the compass hardware is broken. Try the fixes below, then compare with another browser or the device’s built-in compass app.
The reading appears but jumps or points the wrong way
Nearby magnetic material can pull the reading off course. A case, magnetic mount, speaker, metal desk, or some charging accessories can interfere. Move to a different spot and repeat the slow turn.
Location works, but the compass does not
Location and compass are separate features. Location permission lets a site request an approximate position; it does not guarantee that the browser can read the device’s direction sensor. Do not enable location just to make a compass reading appear unless the feature you are testing also needs your position.
How to fix mobile compass access
- Reload the page and grant its request. Close the tab, reopen the test in Safari or Chrome, and accept a sensor prompt if one appears. Some browsers require a tap before a page can request sensor access.
- Check Safari’s motion setting on iPhone or iPad. Open Settings › Apps › Safari › Motion & Orientation Access and turn it on if the option is available. On older iOS versions, look under Settings › Safari. Reload the test after changing the setting.
- Use a regular browser window. Open the page in Safari or Chrome instead of a link preview or an app’s built-in browser. If you are using private browsing, try a regular tab, since browser privacy controls can limit device features.
- Check site location access only if the test needs location. In Chrome on Android, open Chrome › More › Settings › Site settings › Location to review location access. On iPhone or iPad, check Settings › Privacy & Security › Location Services if you are testing a location feature. These settings control location, not compass access.
- Remove magnetic interference. Take off a magnetic case or wallet, move away from speakers and metal furniture, and hold the phone flat. Rotate it slowly again in a clear space.
- Update or restart the browser and device. An outdated browser may lack a sensor feature, and restarting can clear a stuck permission or sensor connection. Then try the test again.
Windows laptops and Mac computers usually do not have a built-in compass sensor for a browser to read. If you need to check compass support, use the phone or tablet itself rather than relying on a desktop browser setting.
When the phone’s compass may be faulty
First compare the browser result with the phone’s built-in compass app in an open area, away from magnetic accessories. If both show no direction or behave erratically after you remove the case and restart the phone, the sensor may need attention. Check the manufacturer’s troubleshooting guidance or arrange a repair. A browser test can show whether readings reach the page, but it cannot inspect or repair the sensor.
Compass direction is not the same as a complete navigation check
A compass reports the direction the device faces. A navigation app also relies on location, maps, and software that combines sensor readings. Compass direction can differ from true north because the sensor usually responds to magnetic north, and the local difference varies by place. Nearby magnets and metal can also distort it. Use the browser test to check sensor access and basic movement, not to certify route accuracy.
Sensor access depends on the phone, browser, and browser settings, so a missing reading in one browser is not enough to conclude that the phone is broken.
