Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fjrslt opened this issue Feb 15, 2022 · 3 comments
Open

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

fjrslt opened this issue Feb 15, 2022 · 3 comments

Comments

@fjrslt
Copy link

fjrslt commented Feb 15, 2022

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!

@fjrslt fjrslt changed the title Ionic/Capacitor getVersionNumber() returns build number in iOS Ionic/Capacitor getVersionNumber() returns build number on iOS Feb 15, 2022
@fjrslt
Copy link
Author

fjrslt commented Feb 21, 2022

Any updates? Thanks!

@sampart
Copy link
Owner

sampart commented Feb 23, 2022

Hi @fjrslt. I'm not in a position to support this plugin. I host the code since the original repo was at risk of being deleted, but I've had no involvement with creating or maintaining it and so am not able to support it either.

If someone is interested in developing it further then please do fork this project. If a fork becomes sufficiently well-established, we can link to it from this repo.

I'll leave this issue open in case someone from the community can help with your specific question. Hope you manage to get to the bottom of it.

@vesper8
Copy link

vesper8 commented Mar 1, 2022

@fjrslt I don't have a solution for you but I'm interested in solving this problem as well.

Does getVersionCode return anything useful for you on IOS?

In any case, if you do manage to solve your issue and find a way to get the actual version number, please do share it here as I'm also looking to solve the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants