Hi Laurens,
I assume it would work without using the Phonegap framework. Someone else recently created a camera widget that does work without it: https://appstore.home.mendix.com/link/app/107943/
Based on that, you could probably create a new version of the Barcode Scanner widget, that also uses HTML5 to access the camera, instead of Phonegap.