https://www.growthbook.io/ logo
t

thankful-scientist-83252

08/03/2022, 3:26 PM
Hey guys! Is there any way to specify >specific_app_version: string in a targeting condition? We have some features that require users to have the latest native code and we keep appending the latest app version string to 5 or 6 features
f

future-teacher-7046

08/03/2022, 3:28 PM
You can add a targeting condition for
appVersion >= X
. Are you wanting something else?
h

helpful-hydrogen-62495

08/03/2022, 3:31 PM
our app versions are strings in the form of 1.2.3 (semver), so don’t think it would work so well or will it?
f

future-teacher-7046

08/03/2022, 3:33 PM
ah, yeah. Semver is a little tricky to do string comparisons on. One somewhat hacky solution is to pass major, minor, and patch as different attributes.
We're trying to figure out a more elegant solution for semver since it's a pretty common requirement
t

thankful-scientist-83252

08/03/2022, 3:37 PM
We’ve found this package to be pretty solid https://www.npmjs.com/package/semver
h

helpful-hydrogen-62495

08/03/2022, 3:54 PM
yeh if you look at our feature flag called “force-update” we put a string value there and then client side do the comparison. But would be great if we could do it on the growthbook side
3 Views