Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

How do I use MediaDevices.getUserMedia() to access camera in Ionic ios wkwebview?

$
0
0

I want to use getUserMedia api to access camera in wkwebview, api working fine on android webview but ios is not, below is what i tried

ionic cordova plugin add cordova-plugin-camera
<plugin name="cordova-plugin-camera" spec="^6.0.0" />
<edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
    <string>Used to take pictures</string>
</edit-config>

also manually add the string in Info.plist file
but it only works on safari, on ionic app it shows no error but no response nor asking for camera permission
Thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>