Posts

Post not yet marked as solved
0 Replies
638 Views
I'm trying to record call history in an application using CallKit.If update.hasVideo of CXCallUpdate is set to False, call history will be recorded, but if it is set to True, it will not.Is it not possible to make it True and record call history?The source code is as follows.// Call information settings-(CXCallUpdate *)newCallUpdateWithHandle:(NSString *)callName { CXCallUpdate *update = [[CXCallUpdate alloc] init]; update.remoteHandle = [[CXHandle alloc] initWithType:CXHandleTypeGeneric value:callName]; update.supportsGrouping = NO; // Do not support group calls update.supportsHolding = NO; // Do not support holding calls update.hasVideo = true; return update;}
Posted
by gzoe.
Last updated
.
Post not yet marked as solved
0 Replies
814 Views
The callback 'provider: performEndCallAction' will be executed if the call is rejected using CallKit.Using this callback, I am trying to launch my app by the URL scheme.First, for testing, I tried to launch the Photos app as follows:- (void)provider:(CXProvider *)provider performEndCallAction:(CXEndCallAction *)action { NSLog(@"CXProvider provider:performEndCallAction:"); // Launch Photos app NSURL *url = [NSURL URLWithString:@"photos-redirect://"]; if(floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_9_x_Max){ // iOS10 or later if([[UIApplication sharedApplication] canOpenURL:url]){ [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil]; } }else{ // iOS9 or earlier if([[UIApplication sharedApplication] canOpenURL:url]){ [[UIApplication sharedApplication] openURL:url]; } } }If my app has launched, the Photos app will launch when the call is rejected. However, if my app has not launched and received a PushKit notification, the Photos app will not launch when the call is rejected.Is there any way to launch my app when the call is rejected if the app has not been launched?
Posted
by gzoe.
Last updated
.