diff --git a/README.md b/README.md index ef125d8a..8117b460 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,8 @@ RNCallKeep.setup(options).then(accepted => {}); If provided, it will be displayed on system UI during the call - `ringtoneSound`: string (optional) If provided, it will be played when incoming calls received; the system will use the default ringtone if this is not provided + - `includesCallsInRecents`: boolean (optional) + If provided, calls will be shown in the recent calls when true and not when false (ios 11 and above) - `maximumCallGroups`: string (optional) If provided, the maximum number of call groups supported by this application (Default: 3) - `maximumCallsPerCallGroup`: string (optional) diff --git a/ios/RNCallKeep/RNCallKeep.m b/ios/RNCallKeep/RNCallKeep.m index d5247cc2..2fff367a 100644 --- a/ios/RNCallKeep/RNCallKeep.m +++ b/ios/RNCallKeep/RNCallKeep.m @@ -429,6 +429,11 @@ + (CXProviderConfiguration *)getProviderConfiguration:(NSDictionary*)settings if (settings[@"ringtoneSound"]) { providerConfiguration.ringtoneSound = settings[@"ringtoneSound"]; } + if (@available(iOS 11.0, *)) { + if (settings[@"includesCallsInRecents"]) { + providerConfiguration.includesCallsInRecents = [settings[@"includesCallsInRecents"] boolValue]; + } + } return providerConfiguration; }