Application Lifecycle package
Updated: Dec 3, 2025
The
Platform SDK Application Lifecycle Package manages how applications are launched and handles deep linking scenarios. The package retrieves information about launch methods, including normal launches, deep links, coordinated launches, and invite-based launches.
Applications can log the success or failure of deep linking attempts for analytics purposes and handle launch intent changes during runtime. The package supports various launch types essential for implementing social features and app-to-app navigation.
Add the following to your project’s ./gradle/libs.versions.toml file:
[libraries]
// Existing lines
application-lifecycle-kotlin = { module = "com.meta.horizon.platform.sdk:application-lifecycle-kotlin", version.ref = "horizonPlatformSdk" }
dependencies {
// Existing lines
implementation(libs.application.lifecycle.kotlin)
}
In Android Studio, click File > Sync Project with Gradle Files to install the package.
Click Build > Generate App Bundles or APKs > Generate APKs.
In the “External Libraries” section of your project, confirm that these packages are listed.
com.meta.horizon.platform.sdk:core-kotlin
com.meta.horizon.platform.sdk:application-lifecycle-kotlin
Now you can initialize the Platform SDK and use Application Lifecycle package functions in your app.