I am wondering how I can get the values โโof motion sensors when the application is in the background. I understand that there are already several messages. For example, I tried. How does Nike + GPS on iPhone get accelerometer updates in the background? which does not work for me.
I also turned on background modes (location updates at the moment) in my App-Info.plist.
Are there working examples there? Also, if possible, I would not want to implement some of the hacks, for example. play a quiet sound or get the user's location. Applications like SleepCycle may have achieved this without any workarounds.
I would be grateful for any help.
source share