Problem with device orientation watch functionality


Hello, in the Ionic 2 plugin docs native the watchHeading function does not work, nothing appears in the console.log

var subscription = DeviceOrientation.watchHeading().subscribe(
(data: CompassHeading) => console.log(data)

Is there any update of the plugin or some other way of applying this function?

However the getCurrentHeading () functionality is working normally.