diff --git a/ios/RNCallKeep/RNCallKeep.m b/ios/RNCallKeep/RNCallKeep.m index 5b180568..c3e8e35a 100644 --- a/ios/RNCallKeep/RNCallKeep.m +++ b/ios/RNCallKeep/RNCallKeep.m @@ -545,7 +545,12 @@ + (void)setup:(NSDictionary *)options { BOOL isSetted = [myAudioSession setPreferredInput:(AVAudioSessionPortDescription *)port error:&err]; if (isSetted) { - _shouldForceBluetooth = FALSE; + if ([port.portType isEqualToString:AVAudioSessionPortBluetoothHFP] || + [port.portType isEqualToString:AVAudioSessionPortBluetoothA2DP]) { + _shouldForceBluetooth = TRUE; + } else { + _shouldForceBluetooth = FALSE; + } } if(!isSetted){