In IOS 11, DeviceMotion in background stopped working
My app reports and records location, altitude, rotation and accelerometer data (DeviceMotion) while in the background. This works fine on ios 10.3.3. On IOS 11, I no longer have access motion data while the device is locked. Altitude data and location data is still streaming to the console, though. Has something changed in IOS 11 that prevents me from accessing motion data or am I doing trying to access it in a way that Apple now blocks like OperationQueue.main Here is how I'm starting motion updates. If the phone is unlocked, all works fine. If I locking the phone, no more updates.: let