Closed mjorrens closed 6 years ago
It is possible, It is whatever iOS tells us :(
For heading you have to ensure you turn it on and it is only supported on iOS
For heading checkout Xamarin.Essentials and the compass.
Thanks James. Have you seen the timestamp on iOS/Android return milliseconds?
Bug Information
Version Number of Plugin: 4.5.0.6 Device Tested On: iPhone 6S with OS 11.4 Simulator Tested On: Version of VS: 2017 For PC Version of Xamarin: 3.0.0.550 Versions of other things you are using:
Steps to reproduce the Behavior
I am using the sample code that you published for the plug-in. When I go to the tab "Track Movement" on an iOS device (physical iPhone 6S), I get steady position updates but the position.heading and position.speed are always 0. On an Android, these values are correct and non zero based upon my movement.
Also, I am noticing the timestamp for the readings does not have the granularity down to milliseconds.
Expected Behavior_
I would expect to see the heading and speed value be non-zero on iOS as with Android.
I would expect the milliseconds in the timestamp to be non-zero as well (iOS and Android)
Actual Behavior
See above. I can certainly calculate speed based upon long/lat calculations but it would be nice for iOS to mimic how Android is returning these values.
Code snippet
Screenshots