Thanks for responding … I have tried the solution … i did not get any error but when I try to run the application on the browser it gives the below error : Native: tried calling BarcodeScanner.scan, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
I am new to Ionic and I am trying to solve the same problem for a PWA app. I don’t understand why a PWA app should require a cordova plug-in since a PWA is supposed to use the camera on any device. I found a few posts which demonstrate how to access the camera on desktop and mobile, eventually this works on IOS only since 11.2. Assuming that camera access works on the latest devices, would a QR or bar code scanner require anything else than camera access?