1

I know when a call is accepted applicationWillResignActive and applicationWillEnterBackground both get called. But they seem to also get called for some other cases.

Is there a way to check if the user has ANSWERED the incoming phone call rather than decline or let it ring out.

As there maybe cases when the app gets a phone call while the app is already in the background and I need to be able to get some code to execute.(Hope I havent been to vague)

Many Thanks, -Code

Black Frog
  • 11,595
  • 1
  • 35
  • 66

1 Answers1

3

Check out the Core Telephony framework, and the CTCallCenter object. I think it does what you're asking for...

https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Reference/CTCallCenter/Reference/Reference.html%23//apple_ref/doc/uid/TP40009604

peterjb
  • 3,189
  • 2
  • 17
  • 12
  • 1
    Additional information: http://stackoverflow.com/questions/3319805/detecting-call-state-in-ios4/3320212#3320212 – iwasrobbed Apr 02 '11 at 00:14