-
Notifications
You must be signed in to change notification settings - Fork 370
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
Sending versionCode as game_version is inconsistent with iOS SDK #1651
Comments
Hi @jalada, App Version pulls from Android's |
Hi @jennantilla. I don't think that really makes sense, but perhaps I'm being a noob? Here's the description of
And here's the description of
It seems to me like you are using two different version numbers from the two platforms to mean the same thing in OneSignal. I'd argue that on Android you should be using
That sounds much closer to Apple's description of |
Hi @jalada thanks for sharing this feedback! We do not currently have a setting to switch version numbers between Android/iOS. Updating this would be a breaking change, so would be something to be considered as part of a future major release. A workaround would be to set the version numbers you need as a data tag, or to send separate notifications for each type of version code. |
Closing issue due to no response. Please @ mention me if we need to revisit this issue. We have an updated major release available for our Android SDK with many improvements and enhancements! Please refer to the migration guide for more information on upgrading. Thanks! |
In this SDK you send the package's
versionCode
asgame_version
(which shows up in the OneSignal interface as App Version). But on iOS you send the Version which (I think?) is more analgous toversionName
- it doesn't affect builds likeversionCode
does on Android (that'd be a bit more like Build on iOS I guess).Android:
OneSignal-Android-SDK/OneSignalSDK/onesignal/src/main/java/com/onesignal/OneSignal.java
Line 1521 in e119f4d
iOS:
https://github.com/OneSignal/OneSignal-iOS-SDK/blob/f55808d7907fd3da97eda0c0b8674806763fdcd1/iOS_SDK/OneSignalSDK/Source/OneSignal.m#L1697
For multi-platform apps, especially React Native, this causes some frustrating inconsistency in the OneSignal UI and means we have to resort to our own custom app version trigger. These apps have the same version string, think you can guess which ones are Android and which are iOS:
I can't see a way to customise this behaviour on either iOS or Android referenced in the documentation nor obvious in the code. Is there something that could be added to help line these up?
The text was updated successfully, but these errors were encountered: