Hey guys! Is there any way to specify >specific...
# give-feedback
t
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
You can add a targeting condition for
appVersion >= X
. Are you wanting something else?
h
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
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
We’ve found this package to be pretty solid https://www.npmjs.com/package/semver
h
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