Follow

Why can't I scan this barcode with the Web SDK?

The below guide concerns the recent WebSDK 6.x release. If you're still using WebSDK 5.x, please go here

 

If you can't scan a specific barcode, the following should help you resolve the issue:

  1. Install our Scandit demo app from the Apple Store or Google Play Store
  2. Open the “Any Code” mode
  3. Scan the barcode

This will give you information about the symbology (e.g., EAN 13, QR code, …) and the symbol counts (if relevant).

 

Then, check that:

  1. The symbology is enabled in your code. To enable a symbology, use the enableSymbologies method.
  2. Symbol counts: some symbologies have only certain code lengths that are enabled by default (see defaults here: symbology properties). To change it, use: activeSymbolCounts
  •  

Assuming you have already defined `scanSettings` and want to change the symbol counts for code 39 to scan from 14 to 22, you would use:

const symbologySettings = scanSettings.settingsForSymbology(Scandit.Symbology.Code39);
symbologySettings.activeSymbolCounts=[14, 15, 16, 17, 18, 19, 20, 21, 22];
  •  

When you have verified all of the above and you still can't scan the code, contact us at http://www.scandit.com/contact-us/ with details on the device you are using and a sharp image of the barcode.

 

WebSDK 5.x (Legacy)

If you can't scan a specific barcode, the following should help you resolve the issue:

  1. Install our Scandit demo app from the Apple Store or Google Play Store
  2. Open the “Any Code” mode
  3. Scan the barcode

This will give you information about the symbology (e.g., EAN 13, QR code, …) and the symbol counts (if relevant). Then, check that:

  1. The symbology is enabled in your code. To enable a symbology, use the enableSymbologies method. 
  2. Symbol counts: some symbologies have only certain code lengths that are enabled by default (see defaults here: symbologies). To change it, use: setActiveSymbolCounts method. 
  •  

Assuming you have already defined `scanSettings` and want to change the symbol counts for code 39 to scan from 14 to 22, you would use:

  •  
code39Settings = scanSettings.getSymbologySettings(ScanditSDK.Barcode.Symbology.CODE39);
code39Settings.setActiveSymbolCounts([14, 15, 16, 17, 18, 19, 20, 21, 22]);

When you have verified all of the above and you still can't scan the code, contact us at http://www.scandit.com/contact-us/ with details on the device you are using and a sharp image of the barcode.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request