Keymaster
5 years, 10 months ago
#17295
::
Hello,
if you don’t know the scan type you have to do this with a script.
var config = {
“preferFrontCamera”: false,
“showFlipCameraButton”: false,
“prompt”: “”,
};var cbForscanBarcode = function(data) {
this.setItemValue(“Main”, “Input_Result”, “value”, data.text);
this.setItemValue(“Main”, “Input_Type”, “value”, data.format);}.bind(this);
var fail = function() {
console.log(“fail”);
};cordova.plugins.barcodeScanner.scan(cbForscanBarcode, fail, config);
If you want to scan for more than one type. for example QR_CODE and CODE_128 you can do this with the mobile action by giving the types seperated by , as contant in the input mapping.