title: AppVersion.getVersionNumber is not a function
body: <p>I am trying to get the app version of my ionic-cordova app after installing the <a href="https://ionicframework.com/docs/native/app-version" rel="nofollow noreferrer"> app version plugin </a><br> but when i try to use the function i get the following error
  <a href="https://i.stack.imgur.com/VguLV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VguLV.png" alt="enter image description here"></a></p>
  
  <p>Here is my code that calls the <code>.getVersionNumber</code> function</p>
  
  <pre><code>this.appVersion.getVersionNumber().then((version) =&gt; {
                  alert(version);
              });
  </code></pre>
  
  <p>I tried running npm update to see if it might be a dependency issue but no luck there. Any help would be appreciated, thanks in advance</p>
  
  <p><strong>I also imported app version and injected it in my constructor</strong>
  <a href="https://i.stack.imgur.com/mCpV5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mCpV5.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/oKO87.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oKO87.png" alt="enter image description here"></a></p>
  
  <p>I also added AppVersion to my app.module.ts file</p>
  
  <pre><code>providers: [
          AppVersion
      ]
  </code></pre>
  
  <p>I also ran an npm prune to see if any appversion had any tied dependency i had to install but i had the corresponding dependencies so no luck there either</p>