How to integrate and trigger Callkit in ios Objective c

左心房为你撑大大i 提交于 2019-12-12 05:30:01

问题


Now, I want to integrate CallKit Framework iOS(10.0) to this application, but my existing code is in Objective-C language. I have searched many forums, but all of them are in Swift language. I am also try to integrate with speaker box which is in iOS Swift

https://developer.apple.com/library/content/samplecode/Speakerbox/Introduction/Intro.html.

But i tried to do bridging the swift files into my project like #import "productname-Swift.h" into my .m files wherever i need, and i placed the #import "AudioController.h" into my productname-Bridging-Header.h these and all working fine, and whats my problem was call method not triggered i used the below method to trigger the call in voip push didReceiveIncomingPushWith

providerDelegate?.reportIncomingCall(uuid: uuid, handle: handle, hasVideo: hasVideo, completion: completion)

and when the app was inactive and in background state it cannot able to get into that mathod, if it was in active state it won't worry bcz i trigger the separate viewcontroller.

please tell any one!!!!

来源:https://stackoverflow.com/questions/42854568/how-to-integrate-and-trigger-callkit-in-ios-objective-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!