Scan barcode via camera in a PWA

Is this possible to control the device camera in a PWA deployment vs having to build for Android and iOS in Cordova?
I want to scan barcodes using the device camera in a PWA, and I have read a couple articles about using a plug in via cdn but I am not sure if that is going to work.
Can I only use cordova plugins if I build for native cordova?

Yes, Cordova plugins require a Cordova build. You can do this using VoltBuilder.

Ok thanks. Does voltbuilder create the .ipa file for iOS?

Yes, VoltBuilder makes both Android and iOS executables.