wrote:
Hey guys,
It looks like this barcode scanner plugin repo was updated on Oct 25th which no longer works on Cordova 6.1.2, currently employed by OutSystems.
I was able to get the plugin to continue working by tagging a specific version (version 6.0.5 was the version that worked well on both Android & iOS; save for the result.cancelled variable in function Scan was being returned as a Number in iOS.
So I commented it out:
So far, everything has gone well since then.
Just a "heads up."
Thanks.
The error caused by the result.cancelled is this:
Cannot assign a JavaScript number with value 0 to an output parameter of type Boolean Check the JavaScript node 'Scan' of the action 'ScanBarcode'.
I fixed it by setting it to:
$parameters.cancelled = typeof(result.cancelled) === "number" ? !!result.cancelled : result.cancelled;
I have only seen this in version 6.0.5, though.
Thanks.