Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heading value returns 0 in GeoLocator plugin #3

Closed
2 of 13 tasks
jamesmontemagno opened this issue Jun 29, 2016 · 1 comment
Closed
2 of 13 tasks

Heading value returns 0 in GeoLocator plugin #3

jamesmontemagno opened this issue Jun 29, 2016 · 1 comment

Comments

@jamesmontemagno
Copy link
Owner

From @Nikygm on May 16, 2016 13:30

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

This is a

  • Bug
  • Feature Request

Which plugin does this impact:

  • Battery
  • Connectivity
  • Contacts
  • DeviceInfo
  • ExternalMaps
  • Geolocator
  • Media
  • Permissions
  • Settings
  • Text To Speech
  • Vibrate
  • Other:

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);

Copied from original issue: jamesmontemagno/Xamarin.Plugins#307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant