BarcodeScanner throwing undefined error in Cordova 1.7.0 #84

Open
patrickomeara opened this Issue May 23, 2012 · 4 comments

Projects

None yet

4 participants

@patrickomeara

Hi!

I am using iOS BarcodeScanner with 1.7.0
https://github.com/purplecabbage/phonegap-plugins/tree/master/iOS/B...

I have followed the instructions completely but when running the tests I get the following error
BarcodeScanner failure: exception scanning: TypeError: 'undefined' is not an object

All I have done is run "make build" in the test directory, copied those files over to www, changed the 1.5.0 to 1.7.0 and ran it

The barcode photos load in fine but when hitting the scan button the above error is shown in read in Results: and in the console

I have tried the following proposed solution, but to no avail, still the same error
http://stackoverflow.com/questions/10450259/ios-phonegap-1-7-0-barc...

Peace.
Pat

@purplecabbage
Owner

Are you including barcodescanner.js in the html?

@patrickomeara

Yep, including

<script src="cordova-1.7.0.js"></script>
<script src="barcodescanner.js"></script>
<script src="image-data.json.js"></script>
<script src="phonegap-app.js"></script>

I have moved the .mm .cpp and .h file to plugins folder in Xcode haven't changed anything else

@dvheghe
dvheghe commented Jun 11, 2012

I have the exact same issue with 1.8.0

@kinszhang

Same issue here. I am using 1.8.1 and with ios5.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment