I wanted to bring my application to the foreground during a phone call. I know I have this
call.callState==CTCallStateConnected
but I wanted to run some commands when a call state is considered active.
So when a phone call is detected (connected state), I want my application to popup from the background and appear in the foreground. I’m just not sure how to get the application to register that CallConnectedState
when running in the background (and reopen once that is activated?)
Thanks!
Michael is correct, but I just wanted to add that this is not possible in any iOS version, which includes iOS 5. You simply cannot force your app to the foreground when a phone call is active.
There may be some way to accomplish this with a jailbroken phone, but I have no idea how. That is outside the scope of this question.