Skip to content

Commit

Permalink
Fix crash when appName is not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc authored May 21, 2021
1 parent a542fa1 commit cc57761
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ios/Classes/CallKeep.m
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,11 @@ + (CXProviderConfiguration *)getProviderConfiguration:(NSDictionary*)settings
#ifdef DEBUG
NSLog(@"[CallKeep][getProviderConfiguration]");
#endif
CXProviderConfiguration *providerConfiguration = [[CXProviderConfiguration alloc] initWithLocalizedName:settings[@"appName"]];
NSString *appName = @"Unknown App";
if (settings != nil) {
appName = settings[@"appName"];
}
CXProviderConfiguration *providerConfiguration = [[CXProviderConfiguration alloc] initWithLocalizedName:appName];
providerConfiguration.supportsVideo = YES;
providerConfiguration.maximumCallGroups = 3;
providerConfiguration.maximumCallsPerCallGroup = 1;
Expand Down

0 comments on commit cc57761

Please sign in to comment.