callkit

Detecting GSM Call States in IOS 10 (Swift 3, Xcode 8) and Notification from Background state

梦想的初衷 提交于 2019-12-20 12:38:27
问题 TLDR: Detect call end event from background Please see update to the question below: Is it possible to detect/get an event for call state in IOS 10 using Swift from background state . In the earlier versions there was a CORE Telephony api but this seems to be deprecated now. I have seen the CallKit Api but it says that it is for VOIP based calls. I need to get the state of normal CDMA/GSM calls, not VOIP based calls and when the call ends just fire a notification to server. I do not need to

How to end a call in CallKit

六月ゝ 毕业季﹏ 提交于 2019-12-19 06:19:27
问题 This is not a give-me-code question, this is a feasibility question. If I initiate a phone call using CallKit, is it also possible to programmatically end it? 回答1: Yes, we can do programmatically, but we have to keep the UUID for that call, CXEndCallAction *endaction = [[CXEndCallAction alloc] initWithCallUUID:callUUID]; [cxcallcontrollerobject requestTransaction:[CXTransaction transactionWithActions:@[action]] completion:completion]; + (CXTransaction *)transactionWithActions:(NSArray

iOS 13 Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP callback

家住魔仙堡 提交于 2019-12-17 23:47:19
问题 After upgrading to iOS beta 13 I've noticed an unpleasant thing: my app crashes sometimes on incoming VoIP pushes. In the crash report I see the following: iOS 13 Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP callback Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x1af21b9f0 __exceptionPreprocess 1 libobjc.A.dylib 0x1af7284fc objc_exception_throw 2 CoreFoundation 0x1af11efec + [_CFXNotificationTokenRegistration

iOS Audio not working during call answered when phone is locked. WebRTC used for calling

孤人 提交于 2019-12-13 14:14:47
问题 I am facing a problem with Audio When using Callkit with WebRTC for VOIP call, While answering the call from Lock Screen. General Functionality : My app activates the audioSession when it's launched. For an incoming call, SDP Offer & Answer are generated and exchanged. Peer Connection is set up. Both audio and video streams are generated, whether it's audio call or video call. Then Call is reported to callkit by using the following code: callProvider.reportNewIncomingCall(with:

Custom incoming call screen like Truecaller IOS

蓝咒 提交于 2019-12-12 17:11:09
问题 Is it possible to have a functionality to show customized incoming call screen when an incoming call arrives just like truecaller app does. I have referred this, which says its not possible. I wonder how truecaller show a custom view . Any idea regarding the same would be appreciated. Thanks 回答1: The answer is "NO" , you can't customise the incoming call screen. As for Truecaller, i think you are mistaken to get the concept.I used to think the same and found the below objective while

Siri is not working in existing project

安稳与你 提交于 2019-12-12 08:43:12
问题 I have to initiate a voip call through my app using Siri. It is working in demo project but when I am adding the Intents Extension into my existing project then Siri is not working anymore. In system settings the my app is not showing in App Support section. Plist configuration is like: Also see the plist configuration of extension: Whenever i am giving any voice command it's saying "I wish I could, but < app > hasn't set that up with me yet." I have also tried by enabling Siri from

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

blocking phone number in call kit

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 17:00:44
问题 I'm trying to using CallKit to add a feature to my app to add some phone numbers to blacklist! the code below is my whole view!! class BlacklistViewController: UIViewController ,UITableViewDataSource, UITableViewDelegate { var phoneNumbersArrCoreData = [BlockedPhoneNumbers]() var listPhoneNumbers:[CXCallDirectoryPhoneNumber] = [] @IBOutlet weak var TableView: UITableView! @IBOutlet weak var BtnAddO: UIButton! @IBOutlet weak var EntPhonenumber: UITextField! @IBAction func BtnAddA(_ sender: Any

CallKit with two incoming calls

前提是你 提交于 2019-12-11 06:13:20
问题 I develop a VoIP app with CallKit. In the case that the user receives two incoming calls and he/she accepts one of them the other one will be closed. For example report both incoming calls: reportInComingCall uuid: 70D506FB-6A9D-4111-8828-35DB8F330A26 reportInComingCall uuid: 129A6D67-AC6A-480E-BCD7-ED14F7961CE5 When the user accepts one of them I get this actions from CallKit: perform action: CXEndCallAction uuid: 129A6D67-AC6A-480E-BCD7-ED14F7961CE5 perform action: CXAnswerCallAction uuid:

Method didInvalidatePushTokenForType is not calling on token expired using Twilio

不想你离开。 提交于 2019-12-11 05:35:45
问题 I am using Twilio Voice Objective-C Quickstart for iOS . I am able to register TwilioVoice after creating access token as mentioned below:- #pragma mark - PKPushRegistryDelegate - (void)pushRegistry:(PKPushRegistry *)registry didUpdatePushCredentials:(PKPushCredentials *)credentials forType:(NSString *)type { NSLog(@"pushRegistry:didUpdatePushCredentials:forType:"); if ([type isEqualToString:PKPushTypeVoIP]) { self.deviceTokenString = [credentials.token description]; [[PhoneCallModel