When my application is in the foreground it needs to easily detect the call event like call connected, call disconnected but when my application goes into background it does not detect any call events.
So how can I detect call events like incoming call and outgoing call in background?
I am working on CallKit
framework with iOS 10
and XCode 8
. I found that core telephony framework has been deprecated in iOS 10.
I am using the CXCallObserverDelegate
Pattern for observing the call.
I want to calculate the call duration of incoming and outgoing calls during calling.