sampart / cordova-plugin-app-version

Cordova plugin to return the version number of the current app [not maintained]
MIT License
401 stars 197 forks source link

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

Open fjrslt opened 2 years ago

fjrslt commented 2 years ago

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 commented 2 years ago

Any updates? Thanks!

sampart commented 2 years ago

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 commented 2 years ago

@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.