Post not yet marked as solved
Post marked as unsolved with 0 replies, 1,045 views
I am developing one application which has audio and video calling functionality and i m using callkit. By default it is displaying application call history in device phone book Recents tab. I want to hide callkit call history from device phone book. is there anyway to do it? setIncludesCallsInRecents = FALSE . this flag only works with iOS 12, is there any way to achieve this on iOS 13 and iOS 14 (void)config {
CXProviderConfiguration *config = [[CXProviderConfiguration alloc]
initWithLocalizedName:[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleName"]];
config.ringtoneSound = @"notes_of_the_optimistic.caf"; NSLog(@"config provider delegate");
config.supportsVideo = FALSE; //config.supportsVideo = TRUE;
[config setIncludesCallsInRecents:FALSE]; config.iconTemplateImageData = UIImagePNGRepresentation([UIImage imageNamed:@"callkit_logo"]);
//NSArray *ar = @[ [NSNumber numberWithInt:(int)CXHandleTypeGeneric] ]; NSArray *ar = @[ [NSNumber numberWithInt:(int)CXHandleTypeGeneric] ];
NSSet *handleTypes = [[NSSet alloc] initWithArray:ar];
[config setSupportedHandleTypes:handleTypes]; [config setMaximumCallsPerCallGroup:1];
// [config setMaximumCallGroups:3];
//[config setMaximumCallsPerCallGroup:2]; [self.observer setDelegate:self queue:dispatch_get_main_queue()];
}