react-native-webview icon indicating copy to clipboard operation
react-native-webview copied to clipboard

Camera for iOS is not working in webvieww

Open lukaskai opened this issue 7 years ago • 9 comments

Hello,

I am using lastest version of webview and want to access iOS camera from within webview. Everything works great on Safari (e.g. page: https://davidwalsh.name/demo/camera.php), however, nothing happens inside webview. I granted needed permissions like camera or audio, however, it still does not work.

Any ideas?

lukaskai avatar Nov 14 '19 11:11 lukaskai

@lukaskai Have you found any solution?

skdev24 avatar Nov 27 '19 12:11 skdev24

That's weird, cause I definitely can use camera for input fields. 🙁

Titozzz avatar Nov 28 '19 08:11 Titozzz

@Titozzz Maybe you can give some example how it works? Add permissions to Info.plist (NSMicrophoneUsageDescription, NSCameraUsageDescription), ask permissions after load webview, but nothing https://github.com/react-native-community/react-native-webview/issues/1045

TchernyavskyDaniil avatar Nov 28 '19 08:11 TchernyavskyDaniil

@Titozzz I believe react native webview is blocking permission alert, even though you give permission from the app, I found a work around using the lib https://github.com/proyecto26/react-native-inappbrowser, which doesn't block the alert when you view that above web page you will get the camera permission alert, which is blocked in react native webview.

skdev24 avatar Nov 29 '19 03:11 skdev24

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

github-actions[bot] avatar Jan 29 '20 00:01 github-actions[bot]

@lukaskai did you find any solution?

kaissaroj avatar Apr 17 '20 07:04 kaissaroj

Hey @lukaskai any update on this issue?

fhenri42 avatar Apr 30 '20 10:04 fhenri42

no solution yet? thanks

gordomo avatar Aug 25 '20 16:08 gordomo

Having this issue too on ios, did you find any solutions ?

LucasLpr avatar Oct 01 '20 05:10 LucasLpr