instascan icon indicating copy to clipboard operation
instascan copied to clipboard

Unable to capture image on web view based browsers

Open girishacme opened this issue 4 years ago • 2 comments

When I load this URL in chrome, it prompts me for the permission that this website requires camera permission. After allowing it, camera starts.

But in my web view browser, there is no such prompt due to which it's not opening the camera. It shows the unknown in the cameras section when I am accessing this URL in web view.

Any help with this?

girishacme avatar Apr 08 '20 11:04 girishacme

I think, I am facing the same issue. when I open the browser then I can not see the camera preview but my camera light is on and scanning is working when I show the qrcode to camera. kindly informed me if you have solve this issue thanks.

SanjayMangrani avatar Apr 13 '20 09:04 SanjayMangrani

same issue here, maybe it's because webview-based app has the permissions set in XML. After compiled, there is no way to enable this functionality, because the webview layer does not talk directly with the device, it depends on the lowest layer where JAVA was compiled to interact directly with the device. That is, in my case, it will only work if I upload another compilation with the permissions to use active camera.

BrunoGiubilei avatar May 22 '20 18:05 BrunoGiubilei