Google Groups

Re: iPhone QR Barcode Reader !


Jeicko Apr 15, 2012 1:20 AM
Posted in group: phonegap
Hi,

My config is : XCode 4.3.2, Cordova 1.6, "iOS" version in github.

I have import all libraries.
I have add plugin : key "BarcodeScanner" value "CDVBarcodeScanner"
My html has cordova-1.6.0.js et barcodescanner.js

When I try on my phone or simulator "window.plugins.barcodeScanner" return "undefined" all the time on "clickScan()" function.
I have 0 error in Output console.

Have you an idea ?

################################

        function clickScan() {

            navigator.notification.alert("VAR:"+window.plugins.barcodeScanner);

            window.plugins.barcodeScanner.scan(scannerSuccess, scannerFailure);

        }

################################


Le samedi 14 avril 2012 16:05:47 UTC+2, Nn a écrit :
Just wanna say i modified and cropped a little of your script and now
its working perfectly.

You're a genius.

Thx,

On Apr 10, 10:40 pm, Libby <libby.bald...@gmail.com> wrote:
> Part 2 of my barcode scanner tutorial
> gives some ideas and code for handling successful
> scan : see here<http://www.mobiledevelopersolutions.com/home/start/twominutetutorials...>. Tutorial
> discusses, or code attached
> to page.
>
> Tutorials are for AppLaud (PhoneGap / Android), but
> it's all javascript!  Part 1 of the tutorial here<http://www.mobiledevelopersolutions.com/home/start/twominutetutorials...>
> .
>
> HTH,
> Libby
>
>
>
>
>
>
>
> On Tuesday, April 10, 2012 12:52:17 PM UTC-7, Nn wrote:
>
> > nobody successfully used zxing barcode scanner with phonegap ?