Skip to content

Add setting for including calls in recents #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -60,6 +60,8 @@ RNCallKeep.setup(options);
- 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)
- `android`: object
- `alertTitle`: string (required)
When asking for _phone account_ permission, we need to provider a title for the `Alert` to ask the user for it
5 changes: 5 additions & 0 deletions ios/RNCallKeep/RNCallKeep.m
Original file line number Diff line number Diff line change
@@ -307,6 +307,11 @@ - (CXProviderConfiguration *)getProviderConfiguration
if (_settings[@"ringtoneSound"]) {
providerConfiguration.ringtoneSound = _settings[@"ringtoneSound"];
}
if (@available(iOS 11.0, *)) {
if (_settings[@"includesCallsInRecents"]) {
providerConfiguration.includesCallsInRecents = [_settings[@"includesCallsInRecents"] boolValue];
}
}
return providerConfiguration;
}