How to read barcodes using Android Phonegap?

2019-02-02 18:32发布

问题:

I want to scan barcodes using Android Phonegap. How can I do this ?

回答1:

Check out the PhoneGap barcode tutorial here. It will take you step by step to creating a sample app with zxing via the PhoneGap plugin from purplecabbage.



回答2:

  • You would have to build a Phonegap plugin which implements the zxing library.
  • Or use the pre existing BarcodeScanner plugin which is MUCH easier.