2

I am trying to get the compass heading on my Android device. Therefore I tried to get the heading with the Xamarin.Mobile component, but as this thread reports the heading is always 0. Is there any other possibility to get the compass heading on my Android device?

fraherm
  • 671
  • 2
  • 11
  • 21

1 Answers1

3

Fisrt of all you need to check if you device support CompassHeading, as not all devices support it. So to check, use Xamarin.Geolocation.Geolocator.SupportsHeading, it will return true if device support heading. Also try one of the "compass" apps on the google play to make sure if you device support it.

choper
  • 1,292
  • 8
  • 10