Is it possible to run accelerometer of iPhone in background?

newbie picture newbie · Feb 19, 2010 · Viewed 8.3k times · Source

I want to use accelerometer of iPhone to get the log file of accelerometer value (maybe for 24 hours). Is it possible to let accelerometer runs in background while other applications are running?

Answer

sounder_michael picture sounder_michael · Apr 27, 2012

You can do it now, if your app is allowed to run in the background for other reasons. See the Core Motion API's startAccelerometerUpdatesToQueue:withHandler: method here.