-
Notifications
You must be signed in to change notification settings - Fork 59
Description
Description:
After upgrading to the latest version of the Twilio Voice SDK on our web page (which is also used within a React Native WebView container on both Android and iPhone), the speaker no longer works during phone calls made from the WebView. The issue is that even though the voice indicators for both the microphone and speaker are moving, no audio is heard. The same page works fine in Chrome on Android, but it fails when accessed through the WebView in the app.
The following behavior is observed:
- "Device.isSupported" returns
true, indicating the device should support the call functionality. - Audio indicators show movement (for mic and speaker) but no sound is heard during the call.
- The WebView is used within a React Native app on both Android and iOS devices.
Steps to Reproduce:
- Update the Twilio Voice SDK to the latest version.
- Embed the web page using a WebView container in a React Native app on both Android and iOS.
- Make a phone call through the WebView.
- Observe that the audio doesn't work despite the indicators moving.
Expected Behavior:
The speaker should work during a phone call made from within the WebView container, just as it does in the Chrome browser on Android.
Actual Behavior:
No audio is heard during a phone call within the WebView container, even though the audio indicators for the microphone and speaker are moving.
Additional Information:
- The issue started after upgrading from version 1.7 to the latest Twilio Voice SDK.
- The issue only occurs within the React Native WebView container; the page works fine when accessed directly via Chrome on Android.
- This problem occurs on both Android and iOS devices.
Environment:
- Twilio Voice SDK version: 2.15.0
- React Native version: 0.79.1
- WebView version: 13.13.5
Possible Solution:
Could you provide guidance or a solution to resolve this issue, particularly around audio routing in WebView containers?