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

App version reported incorrectly on Android (some apps want versionName, others versionCode) #295

Open
NumaNumaNuma opened this issue Apr 30, 2020 · 9 comments

Comments

@NumaNumaNuma
Copy link

NumaNumaNuma commented Apr 30, 2020

Hi,

The app version seems to be reported incorrectly, using the build number instead of the app version number. I'm using the 2.12.0 sdk.
From my dashboard:
image

Looks like it was reported in 2017 on the iOS SDK but maybe this wasn't fixed in the Unity SDK?
I saw someone suggest we use tags to store app versions so I'll do that in the mean time 👍

@jkasten2
Copy link
Member

jkasten2 commented May 8, 2020

@NumaNumaNuma You can use an device type of IOS and App Version as filters on a Segment in the mean time.
image

@NumaNumaNuma
Copy link
Author

The problem isn't filtering, it's the number being wrong :)
eg. app version 1.5.1 will be reported as version 1, version 1.9.0 will be reported as version 0.

@jkasten2
Copy link
Member

@NumaNumaNuma Not sure how Unity generates the bundle version but if you can't change it in Unity it can be changed in Xcode .
https://stackoverflow.com/a/47945146/1244574

@NumaNumaNuma
Copy link
Author

NumaNumaNuma commented May 15, 2020

Unity generates it fine, it's just OneSignal reporting the build number instead of the bundle version:
image
I'd expect to see 1.9.12 as the version but instead I get 3 :)
Probably a bug in the OneSignal Unity sdk grabbing the wrong part from the Unity api?

@VasylRomanets-MoonActive
Copy link

VasylRomanets-MoonActive commented Apr 5, 2021

I have the same issue with OneSignal Unity SDK (v. 2.13.4). My Unity version is 2019.4.13f1. In the OneSignal dashboard in the "Audience" > "All Users" tab in the "APP VERSION" column I see wrong values (build number instead of the app version).

@VasylRomanets-MoonActive
Copy link

VasylRomanets-MoonActive commented Apr 5, 2021

I've just looked at the resulting AndroidManifest.xml inside my APK (values are edited):
android:versionCode="1111" android:versionName="2222"

In the OneSignal dashboard I see this "1111" value which is actually a build number. I want to see "2222" value because it is my app version.

@jkasten2
Copy link
Member

jkasten2 commented Apr 7, 2021

@VasylRomanets-MoonActive Thanks for the suggestion. OneSignal only collects versionCode for android and doesn't send versionName. Depending on the user I could see someone wanting either.

In the short term we don't plan to change or add collection and storage of another version value. I would recommend using sendTag to set the version format you want to track in the meantime.

@jkasten2 jkasten2 changed the title App version reported incorrectly App version reported incorrectly on Android (some apps want versionName, others versionCode) Apr 24, 2022
@ChromeQ
Copy link

ChromeQ commented Jul 20, 2023

I would also like to see this fixed. Or at least add a buildNumber so that the devs can choose the one they care about

@devevecare
Copy link

+1

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

No branches or pull requests

6 participants