Search code examples
androidcordovaphonegap-pluginsbarcode-scanner

how to get phonegap latest version


We started building a barcode app using Phonegap in Android, we are facing a problem with barcode.js. We are using phonegap 2.9.0 and barcode plugin 3.0 .We are getting a problem that cordova.plugins.barcodeScanner is not recognised. I read some where that I have to upgrade phonegap 3.0. But I am not able to find the version phonegap 3.0. Can anyone provide the links and docs?


Solution

  • Phonegap/Cordova has changed much from version 2.9 to 3.x and 4.X.

    You don't install it from a zip any more from a zip, now you have to install node.js and npm and then use npm to install cordova (steps are explained in the cordova website).

    I suggest you have a look at my answer in this other post for considerations about migrating a project from phonegap 2.9 to 3.x.