- Reproducible on iOS 17.4.1 (maybe before) & iOS 17.5. Maybe iOS 17.4 but I can't test it.
- NSMotionUsageDescription is correctly set (and has always been)
- Fitness activity & motion authorization are correctly enabled
The delivery for absolute altitude changes became super slow, and might be inaccurate. The only value I get is exactly the same as the GPS altitude. The accelerometer data does not seem to be taken into account anymore.
This critical bug has broken two apps of mine.
How could I quickly solve this?
Thank you!
PS: code is dead simple
let operationQueue = OperationQueue()
self.altimeter.startAbsoluteAltitudeUpdates(to: operationQueue) { [weak self] (data, error) in
guard let self = self else { return }
guard let data else { return }
DispatchQueue.main.async { // Use this value for display
self.altitude = Measurement(value: data.altitude, unit: UnitLength.meters)
/* DEBUG VIEW */
self.updateDebugView(with: data.altitude)
}
}