Reputation: 8373
I am implementing an security / Help application for iPhone in which I want to add a feature of "Shake To Send Alert". I am looking for a way to handle shake gesture even if app is running in background (Clicked on Physical Home button of iPhone). I googled and searched through web but didn't found any answer. I also saw some posts on StackOverflow with similar needs but are still not solved. Do anyone have any idea of doing that? Right now I am able to handle MotionEven but only when app is in foreground.
Upvotes: 3
Views: 1131
Reputation: 164
Unfortunately this isn't possible. If your app is running in the background, it is very limited to what it can and can't do - something like detecting phone shaking is not something that can be done in the background.
Upvotes: 3