phonegap/phonegap-plugins — Issue #273: qrcode will not scan using BarcodeScanner IOS
Author: webartdesign
Created: 2011-12-06 05:10:03+00:00
State: open

xcode Version 4.1 (4B110) on Lion
Iphone 4s ios (5.0.1)
using the latest version of BarcodeScanner for IOS as of December 05 2011

using this plugin with test files under phonegap-app, i have followed the below instructions and I cant scan qrcodes, i have tried testing by making qrcodes on different sites, printing or scanning from the screen, I have also tested on various product packaging that have printed qrcodes on them.

there seems to be no error at the time of scanning as it does not receive any data or complete a scan when pointed at a qrcode.

Copy the .h, .cpp and .mm files to the Plugins directory in your project.
Copy the .js file to your www directory and reference it from your html file(s).
In the Supporting Files directory of your project, add a new plugin by editing the file PhoneGap.plist and in the Plugins dictionary adding the following key/value pair:
key: com.phonegap.barcodeScanner
value: PGBarcodeScanner
Add the following libraries to your Xcode project, if not already there:

AVFoundation.framework
AssetsLibrary.framework
CoreVideo.framework
libiconv.dylib

Regards,

Aaron