cordova

11 thoughts
last posted Feb. 20, 2017, 12:04 a.m.
0

It turns out that the cordova barcode scanner plugin supports different sets of barcode formats, depending on the host platform.

Specifically, android vs iOS:

Android:

  • QR_CODE
  • DATA_MATRIX
  • UPC_E
  • UPC_A
  • EAN_8
  • EAN_13
  • CODE_128
  • CODE_39
  • CODE_93
  • CODABAR
  • ITF
  • RSS14
  • PDF417
  • RSS_EXPANDED

iOS:

  • QR_CODE
  • DATA_MATRIX
  • UPC_E
  • UPC_A
  • EAN_8
  • EAN_13
  • CODE_128
  • CODE_39
  • ITF

The project I've inherited: meant to read CODABAR labels on Android and iOS...

It seems this difference in formats stems from the way the android version uses the official java ZXing library.

The iOS version uses an ancient C++ port of ZXing, which didn't yet include these formats.

10 later thoughts