Skip to content Skip to sidebar Skip to footer

How To Get Absolute Compass Heading On Cordova Android Platform

I am developping an hybrid App using Cordova on Android platform. I would like to get the compass heading between my device orientation and the true North. However the 'deviceorien

Solution 1:

This behaviour was apparently caused by a problem of compass calibration on my device. After calibrating the compass, it worked fine.

What troubles me is that the event "needs calibration" was not fired. It gave me the compass relative value instead which is probably a misbehaviour from the Chrome or Android API.

Post a Comment for "How To Get Absolute Compass Heading On Cordova Android Platform"