Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Listening to device shake event on background mode [duplicate]

I'm new to iOS development, with strong background in Android.

I know that Android gives developers much more control and power to do whatever they want, and it's pretty easy to listen to the accelerometer event if your app was closed a month ago.

I know that iOS gives a few background processing abilities, but the nature of motion events is to be handled via a view controller.

Is there any way to listen to motion event while the app is in background state?

like image 300
Chen Kinnrot Avatar asked Sep 06 '16 07:09

Chen Kinnrot


1 Answers

According to Apple's Background Execution Programming Guide, listening to motion events in the background is not supported.

like image 157
JAL Avatar answered Sep 19 '22 14:09

JAL