I need to load my net app inside my iOS software utilizing WKWebView. My net app constructed with react and has a function to take a photograph inside my app. I’m utilizing https://github.com/purple-technology/react-camera-pro for the digital camera libray.
So when opening the digital camera web page from the net app, I requested digital camera entry with
AVCaptureDevice.requestAccess(for: .video) { [weak self] granted in
// ship JSBridge occasion
}
That can present a popup for requesting digital camera permission for my app
However after that one other comparable popup will seem.
That is how I create my WKWebView
let config = WKWebViewConfiguration()
config.websiteDataStore = WKWebsiteDataStore.default()
let webView = WKWebView(body: CGRect.zero, configuration: config)
I need to take away the second request permission popup as a result of it simply really feel ineffective as a result of I already approve the primary permission. Is there any manner to do that?