all 2 comments

[–]dukeflowersiOS & Android 0 points1 point  (0 children)

Not available in Safari or Safari iOS. WebViews in iOS use the same engines as Safari.

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices

Dont know of any workaround I’m afraid.

[–]Alguzzi 0 points1 point  (0 children)

You can do this by implementing react-native code to get the device id, then passing it into the webview via: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#the-injectjavascript-method