---
description: >-
  Device eMagnetometer plugin for Cordova and Ionic. Requires Cordova plugin: `cordova-plugin-magnetometer`. For more info, please see the [Device Orientation…
---

# 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](https://github.com/sdesalas/cordova-plugin-magnetometer)

## Supported Platforms

- Android
- iOS

## Further Information

- [Installation Guide](../../installation.md)
- [FAQ](../../faq.md)
