react-native-webview / react-native-webview

React Native Cross-Platform WebView
https://github.com/react-native-community/discussions-and-proposals/pull/3
MIT License
6.31k stars 2.96k forks source link

React Native WebView don't have access to camera on some android devices #3369

Open Ravshanichk opened 2 months ago

Ravshanichk commented 2 months ago

Bug description: Facing issues on some android devices with camera access. I am using webview for biometric authentication through webview with camera access. Additionally, i use react-native perission library to get access to camera, before getting to webview, all access are granted, but still camera does't appear in webview, so authentication is failed. After that api reject authentication with result "No camera detected"

Expected behavior: Working and accessed camera displayed on webview

Screenshots/Videos: no_camera

Environment:

<WebView
        onShouldStartLoadWithRequest={onShouldStartLoadWithRequest}
        geolocationEnabled
        mediaPlaybackRequiresUserAction={false}
        mediaCapturePermissionGrantType="grant"
        javaScriptEnabled
        originWhitelist={['*']}
        allowsInlineMediaPlayback
        source={{ uri: url ?? '' }}
        scalesPageToFit
        startInLoadingState
        useWebKit
      />

Maybe connected with this issue #3206

github-actions[bot] commented 4 weeks ago

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

pjcape commented 3 weeks ago

Hi did u fix the issue? Im facing the same :(

pjcape commented 3 weeks ago

@Ravshanichk , any luck ?