Have you tried the Barcode widget? https://appstore.home.mendix.com/link/app/1469/
Place it on a mobile specific page and use a microflow with split on $currentdevice to navigate to the correct page.
**Update**
Nevermind, just doublechecked it, the app will tell you ‘Unable to detect camera’.
My bad..