Skip to content

Ionic/Capacitor getVersionNumber() returns build number on iOS #125

@fjrslt

Description

@fjrslt

Hi Plugin Support Team,

I know this project says it's no longer supported but we'd love to have this concern of ours be given light. We've been using this plugin for quite a while now and so far everything is great. We've created our own business logic to be inlined with what the plugin can offer and based on what we really want to achieve. In relation to this, we just want to clarify some things. It may not be an issue to some, even ours - we just want to have a confirmation from you.

Basically, our main concern is that we do have a different response based on the iOS version of our app. For instance, we created a new version of our app. We are under the impression that the code .getVersionNumber() would return the one that is indicated on our latest app version from App Store Connect. But in our case, it returns the build number of the App Build attached to that version [5.0.0] and not the one that we are expecting [1.5.2].

image

image

If you can give me any reasons for this, that would be great. For the Android platform, we don't have any concerns. The iOS version is really what's bugging me.

Here's what Ionic Info command returns:
Ionic:
Ionic CLI : 6.18.0 (C:\Users\xxxxx\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 5.5.2
@angular-devkit/build-angular : 0.1000.8
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.0.8
@ionic/angular-toolkit : 2.3.3

Capacitor:
Capacitor CLI : 3.2.4
@capacitor/android : 3.3.3
@capacitor/core : 3.3.3
@capacitor/ios : 3.3.3

Utility:
cordova-res : 0.15.3
native-run : 1.4.1

System:
NodeJS : v14.17.5 (C:\Program Files\nodejs\node.exe)
npm : 6.14.14
OS : Windows 10

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions