Phonegap Barcode Scanner

独自空忆成欢 提交于 2019-11-27 01:02:24

问题


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!


回答1:


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.




回答2:


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




回答3:


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:

  • iOS: http://www.scandit.com/support/getting-started-with-the-scandit-phonegap-plugin-for-ios/

  • Android: http://www.scandit.com/support/getting-started-with-the-scandit-phonegap-plugin-for-android/

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.)




回答4:


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)




回答5:


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.)



来源:https://stackoverflow.com/questions/8311380/phonegap-barcode-scanner

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!