Skip to content
This repository was archived by the owner on May 26, 2019. It is now read-only.

Commit 0424e00

Browse files
authored
Merge pull request #29 from sujameslin/master
accept all handleTypes for call action from native Call History
2 parents 79e4009 + 65ab288 commit 0424e00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ios/RNCallKit/RNCallKit.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ - (CXProviderConfiguration *)getProviderConfiguration
232232
providerConfiguration.supportsVideo = YES;
233233
providerConfiguration.maximumCallGroups = 1;
234234
providerConfiguration.maximumCallsPerCallGroup = 1;
235-
providerConfiguration.supportedHandleTypes = [NSSet setWithObjects:[NSNumber numberWithInteger:CXHandleTypePhoneNumber], nil];
235+
providerConfiguration.supportedHandleTypes = [NSSet setWithObjects:[NSNumber numberWithInteger:CXHandleTypePhoneNumber], [NSNumber numberWithInteger:CXHandleTypeEmailAddress], [NSNumber numberWithInteger:CXHandleTypeGeneric], nil];
236236
if (_settings[@"imageName"]) {
237237
providerConfiguration.iconTemplateImageData = UIImagePNGRepresentation([UIImage imageNamed:_settings[@"imageName"]]);
238238
}
@@ -250,12 +250,12 @@ - (void)configureAudioSession
250250

251251
AVAudioSession* audioSession = [AVAudioSession sharedInstance];
252252
[audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];
253-
253+
254254
[audioSession setMode:AVAudioSessionModeVoiceChat error:nil];
255-
255+
256256
double sampleRate = 44100.0;
257257
[audioSession setPreferredSampleRate:sampleRate error:nil];
258-
258+
259259
NSTimeInterval bufferDuration = .005;
260260
[audioSession setPreferredIOBufferDuration:bufferDuration error:nil];
261261
[audioSession setActive:TRUE error:nil];

0 commit comments

Comments
 (0)