Camera for Scanning QR Code

1
I’m working on Mendix app where the requirement is to keep camera ON always on the home page so that the user can scan the QR codes whenever he want without need to click on any event to turn the device Camera ON.   There is one widget BarcodeScanner is available in studio pro but that requires a click on the button to trigger that widget to turn ON the camera.   Is there any other widget or way available for my use case?
asked
1 answers
0

It’s a bit hacky, but you could put a datasource nanoflow on the page. In that nanoflow, have a delay (to allow the page to fully render) then call a JavaScript action to fake a click event in the DOM node for the camera to activate it.

I hope this helps.

answered