Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BarcodeScanner throwing undefined error in Cordova 1.7.0 #84

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

BarcodeScanner throwing undefined error in Cordova 1.7.0 #84

patrickomeara opened this issue May 23, 2012 · 4 comments

Comments

@patrickomeara
Copy link

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
Copy link
Owner

Are you including barcodescanner.js in the html?

@patrickomeara
Copy link
Author

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
Copy link

dvheghe commented Jun 11, 2012

I have the exact same issue with 1.8.0

@kinszhang
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants