Device eMagnetometer
1
$ ionic cordova plugin add cordova-plugin-magnetometer
2
$ npm install @awesome-cordova-plugins/magnetometer
Copied!
Requires Cordova plugin: cordova-plugin-magnetometer. For more info, please see the Device Orientation docs.

Supported platforms

  • Android
    • iOS