Barcode scanner not working

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

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?

http://pastebin.com/k4r8kChg

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

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

http://pastebin.com/JQfXE0nE

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>

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

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.