Using barcode scanner (like Grabba) from with-in my iOS application -


my objective simple: read data barcode scanner.

i know there's option scanning barcode using camera, in experience results not accurate in less ideal situation i.e. bad lighting. so, i'm exploring if external device can connected iphone/ipad , can provide barcode data external keyboard.

so, can read barcode, scanned using external device? if so, can without writing code, or have add kind of support in application?

answer

any ios compatible bluetooth scanner supports hid mode. instance, socket chs. once connected, behave said "just external keyboard".

hid vs sdk

hid: using scanner keyboard, limited inputting scanned data open input fields user can modify scanned data , there limited options post-processing , validation.

because scanner appears ios keyboard, ios hides onscreen keyboard - makes sense... if scanner actual keyboard. scanners (incl. socket chs 7ci & 7xi) provide mechanism force keyboard (on our chs double-click power button) or app can force keyboard (see: related stackoverflow questions)

sdk: developing app using sdk provides more robust setup , handles more complex use cases: scan application if input field not active, enforce particular scan order (scan upc followed vin number, not vice versa), or parse scanned data (breaking timedate stamp year, month, day, time).

conclusion: personally, i'd use hid mode quick , dirty way started, switch sdk final product. obviously, depends on how control need/want.

disclaimer: work socket mobile


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -