Application versions
Read time: 3 minutes
Last edited: Oct 02, 2024
Overview
This topic explains how to create, edit, and delete application versions.
LaunchDarkly automatically creates application versions when a LaunchDarkly SDK evaluates a feature flag that contains application version information. You can edit and delete application versions from the Versions tab of an existing application in the LaunchDarkly UI.
Create application versions
Similar to creating an application, LaunchDarkly automatically creates new application versions when it establishes a connection with a LaunchDarkly SDK that supports Application metadata configuration.
We strongly recommend also enabling automatic environment attribute collection as part of your SDK configuration. When this configuration is enabled, the SDK provides data on the mobile environment where an application is running, including the application version name and id. The SDK includes this data in the ld_application
and ld_device
contexts. To learn more, read Automatic environment attributes.
After the SDK has evaluated at least one feature flag using an ld_application
context, you can create mobile targeting rules based on application and application version information in that context. To learn more, read Mobile app and device targeting.
You can only create a "Mobile" targeting rule, and target mobile apps and devices based on automatically collected application version information, if you have completed the following:
- your feature flag has its Client-side SDK availability set to include "SDKs using Mobile key." To learn more, read Creating new flags.
- you have already started to collect application information in the
ld_application
andld_device
context kinds. LaunchDarkly must receive these context kinds before it enables the option to create a mobile targeting rule. To learn more, read Environment attributes.
Edit application versions
You can only edit an application version's support status. Only application versions for "mobile" application kinds include a support status.
To edit an application version's support status:
- Click the gear icon in the left sidenav to view Organization settings.
- Click Applications.
- Find the application whose versions you want to edit and click its name. The application's Versions tab appears.
- In the list of versions, find the version you want to edit.
- Click the overflow menu and choose "Edit support status."
- In the "Edit version support status" dialog, select the new Support status.
- Click Save.
You cannot modify an application version name or key.
Before you mark an application version as unsupported, make sure that the application key is unique for each separately distributed software binary.
For example, suppose you have a mobile app, "Example app," that you distribute on both iOS and Android. Initially you create one application, with application key "example-app" and application version "1.0". However, if you set the "1.0" application version to unsupported, then if you create a flag targeting rule based only on the supported status, the flag will target both iOS and Android. This may not be what you intend.
We recommend that you create different applications for each separately distributed software binary, and set the application key to a different value for each. To learn more, read Application metadata configuration.
Delete application versions
To delete an existing application version:
- Click the gear icon in the left sidenav to view Organization settings.
- Click Applications.
- Find the application whose versions you want to delete and click its name. The application's Versions tab appears.
- In the list of versions, find the version you want to delete.
- Click the overflow menu and choose "Delete."
- In the dialog, type the name or key of the version to confirm.
- Click Delete.
You can also use the REST API: Delete application version