Show version on screen from config.xml in Ionic2

We are developing an application that has a screen called "About Us" where we want to display the version number of the application, which is similar to the config.xml file.

<widget id="com.myApp.MyAppName" version="2.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
      

Run codeHide result


Is there a way to copy version no from the mentioned xml file to the screen ts file or vice versa?

+3


source to share


1 answer


Check out this plugin: http://ionicframework.com/docs/native/app-version/

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



Let me know if this works for you. Can help with details if necessary.

+4


source







All Articles