I’m creating an app that uses CMDeviceMotion to collect gyroscope and accelerometer data from the watch and phone respectively. The data collection should be able to last continuously for about 10 minutes. Problem is, the collection stops whenever the screen goes black. What would be…