Skip to content

Commit 867013e

Browse files
authored
Merge pull request #100 from react-native-webrtc/fix_outgoing_native_samsung
Fix outgoing native samsung
2 parents dcc39f0 + 3ad5345 commit 867013e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,12 @@ private Connection makeOutgoingCall(ConnectionRequest request, String uuid, Bool
178178
outgoingCallConnection.setDialing();
179179
outgoingCallConnection.setAudioModeIsVoip(true);
180180
outgoingCallConnection.setCallerDisplayName(displayName, TelecomManager.PRESENTATION_ALLOWED);
181-
outgoingCallConnection.setInitialized();
181+
182+
// ‍️Weirdly on some Samsung phones (A50, S9...) using `setInitialized` will not display the native UI ...
183+
// when making a call from the native Phone application. The call will still be displayed correctly without it.
184+
if (!Build.MANUFACTURER.equalsIgnoreCase("Samsung")) {
185+
outgoingCallConnection.setInitialized();
186+
}
182187

183188
HashMap<String, String> extrasMap = this.bundleToMap(extras);
184189

0 commit comments

Comments
 (0)