Zxing for iphone using HTML5 / javascript

I am new to ios development.

Can someone tell me. can I use Zxing lib to scan bar / qr code on iPhone for webapp (HTML5 / javascript)?

i means my webapp should use Zxing, is this possible?

+4
source share
2 answers

Scanning barcodes requires the use of a camera on your phone, this device is not available in webapp, and therefore you can not scan barcodes from webapp, regardless of the library that you would like to use.

Also, I don’t think you can use the C, C ++, Objective-C libraries from your javascript / html5, these libraries should be on the phone where your code cannot reach it, and your browser certainly cannot run it.

One of the alternatives would be PhoneGap, I'm not very familiar with it, but it is the iOS (or Android) shell around the webapp, which works as a native application. Perhaps you can get camera support and maybe use the Zxing lib. You should have a look at this, but then you won’t have a β€œreally” more Webapp.

EDIT: for phone and Zxing see also: how to scan a barcode using a phone saver

+3
source

These days, you can get it to work with the HTML5 API and this little beauty; https://github.com/LazarSoft

to use.

+2
source

All Articles