WebView is not opening camera. Showing permission denied.

Hello Team,

I have a web app which helps users to scan qr codes. It works fine with google chrome or any other web browsers.
URL: TruBuy | Customer Welcome Page

Now I have a requirement to convert it to a phone app. I used native.newWebView and everything works fine but when I try to open Scanner Page and request camera permissions, it shows me “Not Allowed, Permission Denied”. Can anybody tell me what is wrong with it?

I have already given camera permissions in build settings.

usesPermissions =
        {            
            "android.permission.INTERNET",
            "android.permission.CALL_PHONE",
            "android.permission.CAMERA",
            "android.permission.WRITE_EXTERNAL_STORAGE",
            "android.permission.ACCESS_WIFI_STATE",
            "android.permission.READ_PHONE_STATE",
            "android.permission.ACCESS_NETWORK_STATE",
            
        },
        usesFeatures =
        {           
            { name = "android.hardware.camera", required=true },
            { name = "android.hardware.location", required = false },
            { name = "android.hardware.location.gps", required = false },
            { name = "android.hardware.location.network", required = false },
        },	

Is there anything which I am missing? Any help would be highly appreciated.

Thank you,

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.