jamesmontemagno / Xamarin.Plugins

Cross-platform Native API Access from Shared Code!
MIT License
1.3k stars 380 forks source link

Heading value returns 0 in GeoLocator plugin #307

Closed Nikygm closed 8 years ago

Nikygm commented 8 years ago

Please take a moment to fill out the following (change to preview to check or place x in []):

This is a

Which plugin does this impact:

Version Number of Plugin: 3.0.4 Device Tested On: Wiko kite (API 19) Simulator Tested On:

Expected Behavior

It is supposed to return the heading value where the device heads at compared to the north

Actual Behavior

It returns 0

Steps to reproduce the Behavior

I'm calling the method like so :

var position = await CrossGeolocator.Current.GetPositionAsync(10000,null,true); Latitude = position.Latitude.ToString(); Longitude = position.Longitude.ToString(); Heading = position.Heading;

        System.Diagnostics.Debug.WriteLine("Position Status: " + position.Timestamp);
        System.Diagnostics.Debug.WriteLine("Position Latitude: " + position.Latitude);
        System.Diagnostics.Debug.WriteLine("Position Longitude: " + position.Longitude);
        System.Diagnostics.Debug.WriteLine("Position Heading: " + position.Heading);
jamesmontemagno commented 8 years ago

Please checkout: https://github.com/jamesmontemagno/Xamarin.Plugins/issues/140

jamesmontemagno commented 8 years ago

This issue was moved to jamesmontemagno/GeolocatorPlugin#3