This version of appery.js uses cordova.plugins.barcodeScanner instead of BarcodeScanner in JavaScript to solve issue with migrated apps.

The code also includes an empty options object used by the scan() method in the new version of the BarcodeScanner plugin.