Skip to content


Subversion checkout URL

You can clone with
Download ZIP


BarcodeScanner throwing undefined error in Cordova 1.7.0 #84

patrickomeara opened this Issue · 4 comments

4 participants



I am using iOS BarcodeScanner with 1.7.0

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



Are you including barcodescanner.js in the html?


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


I have the exact same issue with 1.8.0


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
Something went wrong with that request. Please try again.