The BarcodeScanner plugin isn't defined as a module using cordova.define and that's why you can't access it with cordova.require. You can access it by referencing the window.plugins.barcodeScanner object.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Missed our first webinar, watch it here.
Share feedback and vote for features on our Feedback Portal.