Has anyone managed to get the BarcodeScanning plugin for PhoneGap to work on PhoneGap 1.7.0?
Barcode Scanning plugin: https://github.com/phonegap/phonegap-plugins/tree/master/iOS/BarcodeScanner
The issues is that the plugin is not getting set when its added..
I get the following when I call “alert(window.plugins.barcodeScanner);”
“undefined”
I am trying to isolate the point where the plugin is failing to get added and will update the question once I know more..
Thanks in advance for anyone who can help…
Updated answer below:
OK so after a bit of poking around and using the twitter PhoneGap plugin as an example I managed to get it working!!
I used this as a basis for my approach because the lovely people at twitter updated their plugin to work with PhoneGap 1.7.0 thank god!!
Twitter PhoneGap Plugin: https://github.com/phonegap/phonegap-plugins/blob/master/iOS/Twitter/js/TwitterPlugin.js
Here is the updated barcodescanner.js code: