Is fetching accelerometer data and calling a delegate method in the background, while the app is suspended, possible?

Hello,


My first question to the community here...


Just started out on the second app, and was wondering if it's possible to call a delegate method if there's a particular change in the accelerometer data (in the background) while the app is suspended?


Thanks!

[is it] possible to call a delegate method if there's a particular change in the accelerometer data (in the background) while the app is suspended?

No it’s not. If your app is suspended in the background, there’s no way to wake it up based on accelerometer input.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thanks Eskimo!


Would it be abusing the Apple's policy if we use CoreLocation services, and make the accelerometer data a part of that background service? We will have to figure out how to use the location data in the app, but will that be okay then?

Would it be abusing the Apple's policy …

I can’t interpret Apple’s policy for you but I posted my general answer to questions like this in an earlier thread.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Is fetching accelerometer data and calling a delegate method in the background, while the app is suspended, possible?
 
 
Q