Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Antonio_Za
Beginner
60 Views

Programmatically get the app version

Jump to solution

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?

Tags (2)
0 Kudos
1 Solution
Diego_Calp
Valued Contributor I
60 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

4 Replies
Diego_Calp
Valued Contributor I
61 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

Antonio_Za
Beginner
60 Views

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

Diego_Calp
Valued Contributor I
60 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

 

Antonio_Za
Beginner
60 Views

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

Reply