-5

The application is running in background. I want that when someone shakes IPhone the application should come to foreground from background. Is there any way to do this programmatically.

Thanks

user1926201
  • 113
  • 3
  • 10

1 Answers1

2

No, this caanot happen. You dont have any control when your app is in BG.

JiteshW
  • 2,195
  • 4
  • 32
  • 61
  • I dont need any control but the application should just open on shake – user1926201 Mar 18 '13 at 12:43
  • In my answer 'control' means not any UI interaction control(Button/label/textField). It means your code will not interact with iOS when it is in background. You can use this feature only when your app is in foreground. – JiteshW Mar 19 '13 at 05:50
  • can we play song when app is in background by shaking? – user1926201 Mar 19 '13 at 06:13