Check this out https://github.com/phonegap/phonegap-plugin-barcodescanner