IOS 7.1: get basic motion data (accelerometer, gyroscope) while the app is in the background

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.

+6
source share

All Articles