Hi,
Im trying to activate the barcode scanner through javascript and i cant find the right command.
Please help.
Hi,
Im trying to activate the barcode scanner through javascript and i cant find the right command.
Please help.
nameOfBarcodeService.execute({});
Where "nameOfBarcodeService" is the name you assigned when you added the service to the screen...
David,
Here is two ways to run barcode scaner.
Use Appery.io service.
pre
//Where "barcodeScanner1" is your barcode scanner service datasource on that page.
barcodeScanner1.execute();
/pre
Use barcode plugin directly:
pre
BarcodeScanner.scan(function (result) {
console.log("scaned");
}, function (error) {
console.log("error");
}
);
/pre
More info about this approach here: https://github.com/phonegap-build/Bar...
Note: for these two ways you need to add "barcode scanner" to your app via "Create new" interface.
Regards.
Hi, is there a way to do this with AngularJS/Bootstrap at the moment?
Thanks!
Hello,
There is no build-in barcode scanner for AngularJS/Bootstrap at the moment.