This plugin uses W3C Device Motion and Orientation API.
The W3C Device Motion and Orientation API now defines a way to access the compass of the device and is supported across iOS, Android and Windows devices. Hence, Cordova plugin is no longer needed.