Software Archive
Read-only legacy content
17061 Discussions

Programmatically get the app version

Antonio_Za
Beginner
303 Views

Hello,

you can read the app version in the intel.config.*.xml (* is for android, ios, and so on). Anyway I supposed to be able to do it after the app installation, but these files are no longer availables in the final package.

My need is: I want to know wich version is using my user, get it and send it to my server, as a version control statistics. Moreover, I can suggest the user to update his version if obsolete. I don't want to write it hard coded, I'd like to read it using a js function.

Could you suggest a way to do it?

0 Kudos
1 Solution
Diego_Calp
Valued Contributor I
303 Views

Hi,

Did you try with this plugin? 

https://github.com/whiteoctober/cordova-plugin-app-version

There is a javascript example.

Regards,

Diego

View solution in original post

0 Kudos
4 Replies
Diego_Calp
Valued Contributor I
304 Views

Hi,

Did you try with this plugin? 

https://github.com/whiteoctober/cordova-plugin-app-version

There is a javascript example.

Regards,

Diego

0 Kudos
Antonio_Za
Beginner
303 Views

Nice one, I'll try it soon. Anyway seems not available for winphone, this is a shame

0 Kudos
Diego_Calp
Valued Contributor I
303 Views

This site states that it works with Windows Phone 8. Perhaps the git doc is outdated:

http://www.plugreg.com/plugin/whiteoctober/cordova-plugin-app-version

 

0 Kudos
Antonio_Za
Beginner
303 Views

Good! Tried on Android e WinPhone8.1 at the moment, it works. Thank you @diego

0 Kudos
Reply