Skip to content

Commit 0fa1ba8

Browse files
author
Sylvain Boily
authored
Merge pull request #495 from vinh-thieu/abnormal-behavior-speaker-ios
Fix: abnormal behavior of speaker button on iOS
2 parents cd7f26e + fabfaac commit 0fa1ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNCallKeep/RNCallKeep.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ - (void)configureAudioSession
751751
AVAudioSession* audioSession = [AVAudioSession sharedInstance];
752752
[audioSession setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionAllowBluetooth error:nil];
753753

754-
[audioSession setMode:AVAudioSessionModeVoiceChat error:nil];
754+
[audioSession setMode:AVAudioSessionModeDefault error:nil];
755755

756756
double sampleRate = 44100.0;
757757
[audioSession setPreferredSampleRate:sampleRate error:nil];

0 commit comments

Comments
 (0)