Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Barcode Scanner Repo Updated

$
0
0

Daniel Brooks 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.


Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>