As per the Feature Flag perspective, you can use the version of the application as part of the logic to turn on or off the flag for the specific user.
Don’t think of feature flags as just on or off for all users, but as a way to turn a feature on or off for a specific user or set of users. For example, in DevCycle Mobile SDK you can set up the Feature Flag to be on for a specific version but off for the other.
let user = try DVCUser.builder()
.appBuild(1005)
.appVersion("1.1")
.build()
client.identifyUser(user)
Then you can use a boolean feature flag to show or hide the new component based upon the version of the app they are using.
let newFeature: DVCVariable<Bool> = client.variable(key: "new-feature", defaultValue: false)
You can also control which API the user accesses based upon their appVersion.
let apiVersion: DVCVariable<String> = client.variable(key: "api-version", defaultValue: "1.0")
For this Feature Flag, the default value of the API is set to “1.0”. In the UI you can then set the Feature Flag to return “1.1” if the appVersion is set to 1.1.
Hope this helps.