Reputation: 744
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
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
Reputation: 50727
Check out CTCallCenter Class Reference
and CTCall Class Reference
. The available states are defined as:
callEventHandler
callState
CTCallStateDialing
CTCallStateIncoming
CTCallStateConnected
CTCallStateDisconnected
Upvotes: 0