Skip to content

Commit da426f6

Browse files
committed
fix(voip): use InCallManager for speaker toggle on all platforms
NativeVoipModule.setSpeakerOn does not exist in this branch's Spec; route Android speaker via InCallManager.setForceSpeakerphoneOn instead
1 parent 63026f4 commit da426f6

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

app/lib/services/voip/VoipNative.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,7 @@ class ProductionVoipNative implements VoipNativePort {
125125
RNCallKeep.setAvailable(true);
126126
},
127127
setSpeaker: async (on: boolean) => {
128-
if (Platform.OS === 'ios') {
129-
await InCallManager.setForceSpeakerphoneOn(on);
130-
} else {
131-
await NativeVoipModule.setSpeakerOn(on);
132-
}
128+
await InCallManager.setForceSpeakerphoneOn(on);
133129
},
134130
startAudio: () => {
135131
InCallManager.start({ media: 'audio' });

0 commit comments

Comments
 (0)