# App version in Ionic2

**URL:** <https://forum.ionicframework.com/t/app-version-in-ionic2/43500>\
**Category:** ionic-v3\
**Created:** [February 12, 2016, 3:15am UTC](https://forum.ionicframework.com/t/app-version-in-ionic2/43500 "2016-02-12T03:15:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan\_fitzhenry](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@ryan\_fitzhenry](https://forum.ionicframework.com/u/ryan_fitzhenry)\
**Post date:** [February 12, 2016, 3:15am UTC](https://forum.ionicframework.com/t/app-version-in-ionic2/43500/1 "2016-02-12T03:15:17Z")

</div>

Hey guys,  
What’s the best way to get the application version within the application to show on a about page? As far I see it’s already manually entered into config.xml… if I put it in two places I will never keep them in sync.

I have been look at cordova-plugin-app-version, should I use this or is there a better way in ionic2?

---

<div class="post-metadata">

**Author:** ![richardshergold](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/richardshergold/32/91823_2.png) [@richardshergold](https://forum.ionicframework.com/u/richardshergold)\
**Post date:** [February 12, 2016, 9:34am UTC](https://forum.ionicframework.com/t/app-version-in-ionic2/43500/2 "2016-02-12T09:34:21Z")

</div>

I use the plugin and it works fine for me.

---

<div class="post-metadata">

**Author:** ![varshil29](https://avatars.discourse-cdn.com/v4/letter/v/49beb7/32.png) [@varshil29](https://forum.ionicframework.com/u/varshil29)\
**Post date:** [August 31, 2016, 1:47pm UTC](https://forum.ionicframework.com/t/app-version-in-ionic2/43500/3 "2016-08-31T13:47:59Z")

</div>

hey i tried to fetch app version but i didn’t know why its not set in my variable.

AppVersion.getVersionNumber().then((s) =\> {  
console.log(‘ver’,s);  
this.fetchData = s;  
});  
in above code ‘s’ value print proper. and when i print this.fetchData …print undefined. i tired code in android device… i already install plugin.

---

<div class="post-metadata">

**Author:** ![proiertti](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/proiertti/32/103067_2.png) [@proiertti](https://forum.ionicframework.com/u/proiertti)\
**Post date:** [October 11, 2016, 3:12pm UTC](https://forum.ionicframework.com/t/app-version-in-ionic2/43500/4 "2016-10-11T15:12:12Z")

</div>

For me works:

```
   AppVersion.getVersionNumber().then( (version)=> {
 
      this.version = version;
    });
```

---

<div class="post-metadata">

**Author:** ![italo-nascimento](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/italo-nascimento/32/103691_2.png) [@italo-nascimento](https://forum.ionicframework.com/u/italo-nascimento)\
**Post date:** [October 11, 2016, 4:03pm UTC](https://forum.ionicframework.com/t/app-version-in-ionic2/43500/5 "2016-10-11T16:03:17Z")

</div>

Where and how are you trying to print `this.fetchData`?

It seems to me that you’re having trouble with the scope of `this`.

---

<div class="post-metadata">

**Author:** ![mayze123](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@mayze123](https://forum.ionicframework.com/u/mayze123)\
**Post date:** [April 6, 2017, 9:59am UTC](https://forum.ionicframework.com/t/app-version-in-ionic2/43500/6 "2017-04-06T09:59:48Z")

</div>

hi did you find the solution ?im facing the same problem
