Web platform features explorer

Magnetometer

The Magnetometer API reads magnetic field sensor data from the device's magnetometer.

Status

Limited availability

MDN documentation

Specifications

Browser support

  • Chrome
  • Chrome Android
  • Edge
  • Firefox
  • Firefox for Android
  • Safari
  • Safari on iOS