Closed mets1985 closed 7 years ago
I am getting the same issue on iPhone SE. I believe this could be a good enhancement.
Maybe location services are not enabled on your device? As I understand location is needed to determine trueHeading.
If location updates are not enabled, the location manager returns only the magnetic heading value.
Also it might be because of external magnetic fields so the compass needs calibration, If you have the time you can try implementing locationManagerShouldDisplayHeadingCalibration(_:) and return true.
I will implement your fix in version 2.0.0 probably, thanks!
Hi,
I found that trueHeading is always -1 on iPhone 7 Plus, while the magneticHeader is valorized correctly.
I solved changing the didUpdateHeading method:
` open func locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading) {
}`