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
initWithLocalizedName:[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleName"]];
config.ringtoneSound = @"notes_of_the_optimistic.caf";
config.supportsVideo = FALSE;
[config setIncludesCallsInRecents:FALSE];
//NSArray *ar = @[ [NSNumber numberWithInt:(int)CXHandleTypeGeneric] ];
NSSet *handleTypes = [[NSSet alloc] initWithArray:ar];
[config setSupportedHandleTypes:handleTypes];
// [config setMaximumCallGroups:3];
//[config setMaximumCallsPerCallGroup:2];
}
(void)config {
initWithLocalizedName:[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleName"]];
config.ringtoneSound = @"notes_of_the_optimistic.caf";
Code Block NSLog(@"config provider delegate");
config.supportsVideo = FALSE;
Code Block //config.supportsVideo = TRUE;
[config setIncludesCallsInRecents:FALSE];
Code Block config.iconTemplateImageData = UIImagePNGRepresentation([UIImage imageNamed:@"callkit_logo"]);
//NSArray *ar = @[ [NSNumber numberWithInt:(int)CXHandleTypeGeneric] ];
Code Block NSArray *ar = @[ [NSNumber numberWithInt:(int)CXHandleTypeGeneric] ];
NSSet *handleTypes = [[NSSet alloc] initWithArray:ar];
[config setSupportedHandleTypes:handleTypes];
Code Block //bhoomi [config setMaximumCallGroups:2]; [config setMaximumCallsPerCallGroup:1];
// [config setMaximumCallGroups:3];
//[config setMaximumCallsPerCallGroup:2];
Code Block self.provider = [[CXProvider alloc] initWithConfiguration:config]; [self.provider setDelegate:self queue:dispatch_get_main_queue()]; [self.observer setDelegate:self queue:dispatch_get_main_queue()];
}