When you are setting up a PhoneGap project, you see the following:
<
A plugin exists now, : http://plugins.cordova.io/#/package/uk.co.whiteoctober.cordova.appversion
I just test it, works like a charm.