Barcode Scanner not scanning the barcode correctly

Barcode Scanner not scanning the barcode correctly



I installed the Barcode Scanner Plugin (  and I tried to use it my app. 

I could implement it and I can actually use it to scan bar codes but the bar code result that it returns is seldom accurate. It often gets a few of the digits on the barcode incorrect, which means that is actually quite useless.

I would like to know if I am the only one having this issue and any recommendations on how to fix it will be great.

I also tried the Barcode Scanner Plugin posted on the forge. That component is working perfectly and is 100% accurate in its results but every once in a while it returns an error "cannot set property value of undefined" which I also don't know how to solve so I cannot use that one either.

I am not a java script expert so I dont know how to fix the scripts.

Any other suggestions?


Hi Vonnelize,

What type of barcodes are you trying to scan? Does it make a difference if you're scanning different types of barcodes? Does this behaviour occur on different devices?

Hi Kilian

I am mostly scanning normal EAN and UPC types of code as well as Code 39 and 128. I am getting incorrect readings on a Samsung S7, iPad Pro and iphone s6. Unfortunately I dont have more devices than these to test. Ideally I want the bar code result to be accurate regardless of the device that I use and the type that I am scanning.

Not sure if that will help you at all?

Well, the strange thing is that EANs at least have a check digit, so it shouldn't be possible to have inaccurate readings. And since you get these results on both Android [i]and[/i] iOS, I'm starting to wonder whether the codes you scan are correct at all... Where do they come from? And what kind of incorrect are we talking about? Random sequences, or always the same kind of incorrect? Can you post some images of these barcodes?

Hi Kilian

I am scanning all kinds of stuff that are sold in normal grocery stores. The idea is to be able to scan something and then know what it is called on the ERP system.

So, I am attaching a few pictures, one of the item I am scanning and screen shots of the various results I get while scanning this item. I used a Samsung S7 to scan.



I assume that if you use a random barcode scanning app on the Samsung the results are better? Most of the wrong results you're getting are 1 or 2 bit errors per numeral, and the check digit is ignored completely (instead recalculated). This doesn't look good for the barcode plug-in, but I can hardly imagine it being this broken...