ok. I tried to deploy a test on Android using native webview to load the AR.JS sample page. But it said “Webcam Error” when I open the app on android.
here is code on my testapp
local web = native.newWebView( display.contentWidth \* 0.5, display.contentHeight \* 0.5, display.contentWidth, display.contentHeight ) web:request('https://jeromeetienne.github.io/AR.js/three.js/examples/mobile-performance.html')
Permission added to the build.settings
android = { usesPermissions = { "android.permission.INTERNET", -- WebView "android.permission.CAMERA", -- Camera "android.permission.WRITE\_EXTERNAL\_STORAGE", -- Camera }, },
Error show when I open the app on Android
The page at "https://jeromeetienne.github.io" says: Webcam Error Name: PermissionDeniedError Message:
So, this can not be fixed due to limitation?