How to scan a barcode using a phone call

I need to scan a barcode using phonegap on Android and iPhone. Is there any way to do this?

+71
android iphone cordova barcode-scanner
Oct 08 '10 at 7:12
source share
5 answers

This link leads you to a page where you can learn how to implement the Scanner PhoneGap Barcode Scanner plugin in your application

+11
Apr 04 '12 at 18:50
source share

Chris Erickson is right, the Zxing and Phonegap projects have already taken care of the hard climb for you. (My current SO reputation forbids me to comment, but I would.)

I just made a Phonegap / Android application that scans a QR barcode using a plugin here . Follow the instructions and you must be successful. It is possible that the plugin was written from the moment Chris answered.

Javascript is simple, taken straight from https://github.com/phonegap/phonegap-plugins/

var scanBarcode = function() { window.plugins.barcodeScanner.scan( BarcodeScanner.Type.QR_CODE,function(result) { alert("We got a barcode: " + result); }, function(error) { alert("Scanning failed: " + error); }, {yesString: "Install"} ); } 
+46
Dec 01 '10 at 1:20
source share

You will have the built-in Phonegap plugin but the hard work is already done for you zxing .

+10
Oct 09 2018-10-10
source share

I recently used the ZBar plugin + PhoneGap plugin to access ZBar. More details here - http://blog.infoentropy.com/Use_ZBar_barcode_reader_with_PhoneGap .

+1
Jan 27 '11 at 5:52
source share
0
Sep 20 '13 at 5:39 on
source share



All Articles