Skip to main content

Installing Dependencies

The SDK is available on Maven Central. Add the following dependency to your build.gradle.kts file:

dependencies {
implementation("com.sap.engagement-cloud:engagement-cloud-sdk-android:<latest-version>")
}

Add the following permissions to your AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
info

The minimum supported SDK level is API level 28 (Android 9.0 Pie). The SDK supports the single-activity architecture recommended by Android. For correct in-app behavior, MainActivity should extend FragmentActivity or AppCompatActivity.

ProGuard / R8

The SDK ships with consumer ProGuard rules bundled in the AAR. When you enable minification (isMinifyEnabled = true) in your release build, the necessary keep rules apply automatically.

Additional steps needed for push integration​

If you want to use the SDK's push notification features, add the selected provider's dependencies as well:

dependencies {
implementation("com.sap.engagement-cloud:engagement-cloud-sdk-android-fcm:<latest-version>")
implementation("com.sap.engagement-cloud:engagement-cloud-sdk-android-hms:<latest-version>")
}

And add the following permission to your AndroidManifest.xml:

<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>