kakashy
kakashy

Reputation: 744

How to detect outgoing calls when app is in the background on iphone sdk

I need to detect the state of a call in an iPhone app, when my app is in the background. I need to do something when the state of the call is outgoing.

Is this possible? If this is possible how can I do it?

Upvotes: 1

Views: 423

Answers (2)

onnoweb
onnoweb

Reputation: 3038

This is not really possible. CTCallCenter gives some info in the state of a call but you'll only get those notifications when your app is active.

Upvotes: 1

WrightsCS
WrightsCS

Reputation: 50727

Check out CTCallCenter Class Reference and CTCall Class Reference. The available states are defined as:

CTCallCenter

callEventHandler

CTCall

callState

Cellular Call States

CTCallStateDialing  
CTCallStateIncoming  
CTCallStateConnected  
CTCallStateDisconnected  

Upvotes: 0

Related Questions