Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Based on various sources, I have implemented CallKit like below, but my app is not dialing. Any ideas? No errors are being reported, my phone has wifi calling enabled, and my provider supports it.

What I have tried:

Here is what I have:
Swift
let provider = CXProvider(configuration: CXProviderConfiguration(localizedName: "My App"))
provider.setDelegate(self, queue: nil)
let controller = CXCallController()
let transaction = CXTransaction(action: CXStartCallAction(call: UUID(), handle: CXHandle(type: .phoneNumber, value: "5555555555")))
self.controller.request(self.transaction, completion: { error in
    if(error != nil){
        print(error)
    }

My Extension:
Swift
extension ViewController : CXProviderDelegate {
    
   func providerDidReset(_ provider: CXProvider) {
        }
    
   
    
   func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) {
            action.fulfill()
        }
    
    func provider(_ provider: CXProvider, perform action: CXEndCallAction) {
            action.fulfill()
        }
    
}
Posted
Updated 21-Sep-20 7:57am
v2

1 solution

You're probably going to have to ask your question on the Apple Developer Forums[^].

The chances of anyone here with experience on that library are very low.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900