Barcode scanner not working


#1

I can’t get the ngCordova barcodescanner to fire up properly. I need help.


#2

We’re going to need some more information to be able to help. Can you post some code, a github url?
What exactly isn’t working?


#3

http://pastebin.com/k4r8kChg


#4

I am following the example in ngCordova docs, the function gets called, but the scanner doesn’t open up.


#5

Here it’s the plugin custom build code from ngCordova docs:

http://pastebin.com/JQfXE0nE


#6

Switch this

<script src="cordova.js"></script>
<!-- your app's js -->
<script src="js/app.js"></script>
<script src="js/ng-cordova.js"></script>

To this

<script src="js/ng-cordova.js"></script>
<script src="cordova.js"></script>
<!-- your app's js -->
<script src="js/app.js"></script>

#7

I did that, but same issue. The function gets called but the plugin doesn’t get fired up.


#8

Am I supposed to add the plugin in the config.xml file?, because according to the docs, cordova plugin add https://github.com/wildabeast/BarcodeScanner.git will do it.