0

I want to write an app that does something whenever the iPhone vibrates (receives phone call, text on vibrate mode). Is there anyway to detect whether the iPhone is vibrating (i.e. handle a "vibrate" event)? Thanks for the help!

Niru Mukund Shah
  • 4,637
  • 2
  • 20
  • 34

2 Answers2

1

Well i don't think so that Apple give so much liberty but still you can look here for a good discussion on this topic Detecting the iPhone's Ring / Silent / Mute switch using AVAudioPlayer not working?

Community
  • 1
  • 1
spider1983
  • 1,098
  • 1
  • 7
  • 14
0

No. You don't have access to any API that does this. Out of interest, why would you want to?

Max Woolf
  • 3,988
  • 1
  • 26
  • 39
  • I want to be able to detect when the phone vibrates due to incoming message or phone call. – user1837877 Nov 26 '12 at 18:19
  • Yeah, but I'm curious what application this would have? Either way, iOS apps are sandboxed and your app has no access to this sort of system information. – Max Woolf Nov 27 '12 at 16:04