Mukesh
Mukesh

Reputation: 797

Is it possible to access camera in WKWebView on iOS?

WKWebView is not asking permission for camera in the app. When I load the same url in safari browser it asks the permission for camera, and face recognition works perfectly. But when I embed this in WKWebView permission is not asked even I have given both camera and microphone permission in plist file. The same thing is not working even in UIWebView and safari view controller.

Upvotes: 1

Views: 3423

Answers (1)

Mircea Dragota
Mircea Dragota

Reputation: 754

This is a known limitation for WKWebView, WebRTC is only supported in Safari, not even in SFSafariViewController.

The only way would be to open the redirect URL in Safari.

Upvotes: 4

Related Questions