Repository navigation
DescriptionI am experiencing a camera access issue when using Webview Kiosk with the Indonesian government's All Indonesia Arrival Card website. Camera access works correctly in Webview Kiosk on other websites, but the camera fails specifically when the All Indonesia website launches its MRZ/passport scanning page. The website displays the following message:
I would like to determine whether this is a WebView compatibility or permission-handling issue, or whether the website's MRZ implementation is incompatible with Android WebView. Environment
WebsiteMain website: https://allindonesia.imigrasi.go.id/ MRZ service: https://mrz.imigrasi.go.id:8088 The MRZ service is opened as part of the All Indonesia Arrival Card workflow. Webview Kiosk configurationRelevant settings:
Whitelist entries used: ^https://allindonesia\.imigrasi\.go\.id(/.*)?$
^https://mrz\.imigrasi\.go\.id:8088(/.*)?$The MRZ website permission is also explicitly configured to allow Camera in Webview Kiosk. Steps to reproduce
Additional testingI performed several tests to isolate the problem. 1. Android camera permissionCamera permission for Webview Kiosk is enabled. Android's privacy/activity information also shows that Webview Kiosk accessed the camera when the MRZ camera function was attempted. 2. Camera hardwareThe camera works correctly in other Android applications, including Zoom. 3. WebView camera functionalityI tested Webview Kiosk with: The website successfully accessed the camera. This indicates that Webview Kiosk is capable of granting camera access to a web page in general. 4. ChromeThe same tablet can access the camera using Chrome. The camera also works with the same hardware in Chrome. 5. User-AgentI also tested changing the User-Agent in Webview Kiosk, but this did not resolve the issue. 6. Site permissionThe site permission entry for: https://mrz.imigrasi.go.id:8088 was explicitly configured to allow Camera access. The problem still occurs. Expected behaviorThe MRZ page should be able to request and access the device camera through Android WebView when Android and website camera permissions have been granted. Actual behaviorThe MRZ page reports that camera access is blocked even though:
QuestionCould this be related to how Webview Kiosk handles camera Alternatively, could this be related to one of the following WebView behaviors?
I have not confirmed which of these is responsible, so I would appreciate any guidance on what additional logs or debugging information would help identify the cause. Additional informationThe website is an Indonesian government service used for the All Indonesia Arrival Card. The MRZ scanner is an important part of the workflow, so compatibility with this website would be useful for deploying Webview Kiosk on dedicated kiosk tablets. I can provide additional screenshots, Thank you! |
Replies: 1 comment 3 replies
|
Hey @sprk4456, I can't reproduce your issue on this website because it requires a passport to proceed. Are you able to record a short video or take some screenshots showing the error? Also, do you experience the same issue when using other Webview-based browsers? For example,
A few more here: |
Hey @sprk4456,
I figured it out. Could you try going to:
and changing it to
false, then scan again?As for what happened - the camera itself was working correctly.
The issue was that the MRZ page successfully opened the camera, but WebView blocked the video preview from starting automatically because it was waiting for a user interaction.
The website then incorrectly reported this as a camera permission problem. The error
was unfortunately misleading.