Accelerometer, running in background even the app is terminated.

Hi,


Is it possible to detect fall activity with Accelerometer, even though the app is running in background or app is terminated. If fall activity is detected, it will create a local notification that can fire to call an API.


Is there are ways to do this to make it possible. Thank you.

Accepted Reply

Is it possible to detect fall activity with Accelerometer, even though the app is running in background or app is terminated.

No. For this to work there would have to be some system service that monitored the accelerometer and resumed (or relaunched) your app in the background if some specific event occurs. This feature is available in other subsystems (

NSURLSession
, CoreBluetooth, and so on) but not for the accelerometer. You should feel free to file an enhancement request for it.

Share and Enjoy

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

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

Replies

Is it possible to detect fall activity with Accelerometer, even though the app is running in background or app is terminated.

No. For this to work there would have to be some system service that monitored the accelerometer and resumed (or relaunched) your app in the background if some specific event occurs. This feature is available in other subsystems (

NSURLSession
, CoreBluetooth, and so on) but not for the accelerometer. You should feel free to file an enhancement request for it.

Share and Enjoy

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

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