I'm currently developing a mobile barcode scanning app using Ionic 3, targeting Android and iOS devices. However, I've encountered a roadblock. Originally, the app was designed to scan and display one product barcode. Now, a new requirement has been introduced where the app should allow users to scan multiple barcodes at once, returning to the screen when scanning is complete and storing the results in an existing array. I've successfully implemented the code to display the scan result for a single product using the following code:
scan()
{
this.options = {
prompt : "Scan your barcode"
}
this.barcodeScanner.scan(this.options).then((barcodeData) => {
console.log(barcodeData);
this.scanData = barcodeData.text;
},(err) => {
console.log("Error occurred : " + err);
});
}
I would greatly appreciate any assistance on how to modify the code to scan multiple barcodes simultaneously.