Followed description with Xcode 8.3. Getting an error in CallViewController.swift unwindForNewCall in line:
AppDelegate.shared.displayIncomingCall(uuid: UUID(), handle: handle, hasVideo: videoEnabled) { _ in
Compiler telling:
Value of type âAppDelegateâ has no member âdisplayIncomingCallâ
In AppDelegate.swift in class there is
func displayIncommingCall(uuid: UUID, handle: String, hasVideo: Bool = false, completion: ((NSError?) â Void)?) {
providerDelegate.reportIncomingCall(uuid: uuid, handle: handle, hasVideo: hasVideo, completion: completion)
}
This tutorial only covers CallKit, not making VoIP calls. There is no VoIP backend in place, so all the calls are dummy operations. You wonât be able to use the sample app to communicate between two phones.
You would need a VoIP server in place, and instead of the dummy operations, your app would have to communicate with this server. That was not in the scope of this tutorial however.
So are we saying that I would be able to detect an incoming call, and if it is not in the contacts, I could check another âmy ownâ directory of numbers and if found, display that users name?
About outgoing call, I enter a real number, how make app go to native outgoing call UI and do that call.
I know it just a dummy operation but in recents call in my phone, that number still display there.
Could u pls give a hint or topic to do that.
Is it possible to tie-in to an existing call with the CallKit code you provided and use my app? Can I use the functionality of the CallKit code? Or is it just an example? If it is actual, usable code, how do I tie-in to an existing call?
Hey, awesome project! It would be interesting to see this work with WebRTC (or AppRTC as seen on some swift projects on Github). Any chance this happens as one of your future tutorials?
This tutorial is more than six months old so questions regarding it are no longer supported for the moment. We will update it as soon as possible. Thank you! :]