I'm integrating calls in my app. In CallKit documentation https://developer.apple.com/documentation/callkit there is a text:
After the call is connected, the system calls the provider(_:perform:) method of the provider delegate. In your implementation, the delegate is responsible for configuring an AVAudioSession and calling fulfill() on the action when finished.
And code snippet:
func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) {
// configure audio session
action.fulfill()
}
And about fulfill() method:
You should only call this method from the implementation of a CXProviderDelegate method.
So as I understood, we should call action.fulfill() immediately, after callee accepts a call.
Problem: When device is locked, call timer on native CallKit screen starts counting, but connection is not established yet.
Question: How can I call action.fulfill() or start the timer on the locked CallKit screen, when connection will be established. Can I control this timer label on locked screen somehow?