In case folks didn't realize, there are two different versions of the
iOS BarcodeScanner in the github repo:
iOS:
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/BarcodeScanner
iPhone:
https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/BarcodeScanner
The names "iOS" and "iPhone" are ... a little vague. My understanding
is that the "iOS" version is for >= Cordova 1.5, and that the "iPhone"
version is for <= Cordova 1.5 (including PhoneGap 1.x).
Make sure you're using the appropriate one.
And then read the appropriate README.md (embedded in the pages linked to
above), and make sure you're following all the instructions.
Ah crap. Got that wrong.
correction:
My understanding is that the "iOS" version is for >= Cordova 1.5, and
that the "iPhone" version is for <= Cordova 1.4 (including PhoneGap 1.x).
So, the iPhone version will not work on 1.5. For Cordova >= 1.5, you
need to use the "iOS" version.
Pretty sure I tried the "iOS" version on 1.5, but haven't tried it on
1.6, and suspect it may not work there.
function clickScan() {
navigator.notification.alert("VAR:"+window.plugins.barcodeScanner);
window.plugins.barcodeScanner.scan(scannerSuccess, scannerFailure);
}
################################
Hi,Could any one give me a working copy of JS files for iOS Barcode scanner [iPad]. I tried all different combination of JS files but still its giving some error like Object #<Object> has no method 'exec' :(Thanks,Praveen KH
On Thursday, June 14, 2012 11:35:27 PM UTC+5:30, Son Pham wrote:Hi NnCould you help me to run BarCodeScanner PhoneGap on Devices ? I run it but when I click to Scan, nothing to display.... :-s I tried to fix but nothing to show.I followed tutorial at:but not successful :(Thank & Best Regards,Kevin