> For the complete documentation index, see [llms.txt](https://danielsogl.gitbook.io/awesome-cordova-plugins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/plugins/magnetometer.md).

# Device eMagnetometer

Requires Cordova plugin: `cordova-plugin-magnetometer`. For more info, please see the [Device Orientation docs](https://github.com/sdesalas/cordova-plugin-magnetometer).

## Installation

```bash
ionic cordova plugin add cordova-plugin-magnetometer
npm install @awesome-cordova-plugins/magnetometer
```

**Plugin Repo:** <https://github.com/sdesalas/cordova-plugin-magnetometer>

## Supported Platforms

* Android
* iOS

## Further Information

* [Installation Guide](/awesome-cordova-plugins/installation.md)
* [FAQ](/awesome-cordova-plugins/faq.md)
