Documentation Index
Fetch the complete documentation index at: https://moengage-sdk-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Add dependencies
Add the following dependencies to the android/app/build.gradle file.
Add Androidx Libraries
The SDK depends on a few Androidx libraries for its functioning, add the below Androidx libraries in your application if not done already.
dependencies {
...
implementation("androidx.core:core:1.6.0")
implementation("androidx.appcompat:appcompat:1.3.1")
implementation("androidx.lifecycle:lifecycle-process:2.7.0")
}
The MoEngage SDK depends on the lifecycle-process library for a few key features to work and the latest version of lifecycle-process depends on the androidx.startup:startup-runtime library. Hence do not remove the InitializationProvider component from the manifest. When adding other Initializers using the startup-runtime, ensure the Initializer for the lifecycle-process library is also added. Refer to the documentation to know how to add the Initializer.