Search code examples
androidreactjsreact-nativereact-native-webview

Unable to join live video session react-native-webview android


I'm working on a live video session app. I have used the BigBlueButton API to develop the web version, which is working properly on the web. I'm trying to use that web app URL in my react native app using react-native-webview. In ios app, I'm able to join the session but I'm not able to join the session in android and while joining getting the following message

It looks like you're using an older version of a supported browser. Please upgrade your browser for full support.

My dependency versions:

react: 16.9.0

react-native: 0.61.5

react-native-webview: 8.2.1

Message while joining an online session in react native android app

Thanks in advance.


Solution

  • add userAgent prop in webview

    <WebView
        userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"
    
      ...otherProps
    />
    

    and also add MODIFY_AUDIO_SETTINGS permission into androidManifest.xml