It looks like this automatically works by virtue of having the location update background mode turned on.
Receive DeviceMotion updates while phone in background
-
03-06-2022 - |
Question
I have a navigation app that uses core motion to receive CMDeviceMotion updates. How can I continue to receive and process these updates if the phone has been put to sleep or is running in the background?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow