I'm looking to integrate some sort of barcode scanner into a phonegap application. I just need to find out whether it is possible on all of the major platforms (iOS/Android/Blackberry/WP7)?
EDIT: By barcode scanning, I mean scanning a barcode through the camera.
Thanks!
We have made BarcodeScanner plugins available for:
Android
https://github.com/phonegap/phonegap-plugins/tree/master/Android/BarcodeScanner
iOS
https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/BarcodeScanner
BlackBerry
https://github.com/phonegap/phonegap-plugins/tree/master/BlackBerry/BarcodeScanner
We don't have a plugin for WP7 yet but I'll drop an email to Jesse and maybe he'll get to it as WP7 support is growing fast.
Windows Phone Barcode Scanner Plugin in PhoneGap We have now the phonegap plugin for barcode scanner. You can check it here: https://github.com/phonegap/phonegap-plugins/tree/master/WindowsPhone/BarcodeScanner
Another option would be the Scandit barcode scanner SDK. Scandit comes with a PhoneGap plugin for iOS and Android (WP and Blackberry are not supported at this time), and there is a free community edition. Tutorials and demo apps are available here:
Scandit also decodes blurry images, which is important if an app needs to run on lower-end phones (such as many Android phones) or devices without an autofocus camera (iPad 2, iPod Touch, ...).
(Disclaimer: I'm one of the Scandit developers.)
In case this helps anyone:
https://github.com/zeroasterisk/PhoneGap-BarcodeScanner-Example-iOS
Specifically:
Installed the plugin (in a handful of paths) but kept the one which worked. Implemented a basic JS scanner code to demonstrate functionality: auto-runs on load, auto-reloads on error, alerts on success/failure/cancel.
NOTE: the comments on the barcodescanner.js and index.js, both mention my customization of the define/require object paths. I could not get the demo/example paths to work, after several permutations.
(this is iOS only atm, but I plan on making an Android example too)
The Manatee Works Barcode Scanner SDK PhoneGap plugin can be found here: https://github.com/manateeworks/phonegap-mwbarcodescanner
The plugin supports Android, iOS, and Windows. UPC and EAN are free. Other symbologies can be evaluated for free. Our price is better than Scandit for the same quality (sometimes better). Our company is financially stable and not having to borrow money to survive.
(Disclaimer: I am a member of the Manatee Works team.)