In-app messaging

This page provides you with information on IN-app messaging feature.

This feature empowers you to proactively engage users within your app by displaying targeted messages at specific contextually relevant moments. These timely interventions can prove highly effective in providing valuable information, promoting cross-selling and up-selling opportunities, and ultimately driving desired user actions on targeted screens or based on pre-defined app interactions.

The feature is available from Capillary SDK 1.4.0.

Installing using catalog

The recommended approach for integration is through a Version Catalog. For more information, refer to the documentation Installing with version catalog. After you configure the catalog, perform the following:

  1. Add the dependency in the app/build.gradle file as shown below:
dependencies {
    // ...
    implementation("hydra.inapp")
}
dependencies {
…
 implementation("hydra.inapp")
  }

Installing using Artifact

To install in-app messaging, perform the following:

  1. Add the dependency in the app/build.gradle file as shown below:
dependencies {
    // ...
    implementation("com.capillary:hydra-inapp:x.x.x")
}

dependencies {
…
 implementation("com.capillary:hydra-inapp:x.x.x")
}

Integration

Hydra SDK leverages a push notification mechanism to deliver in-app messages. For this functionality to work seamlessly, your app needs to have already integrated Hydra's push notification module.

In-app configuration

The Capillary SDK allows your app to specify a fallback image to display in case the image included in a notification payload fails to download. This ensures a consistent user experience even if unexpected network issues or server errors occur.

InAppConfig(@DrawableRes val defaultImage: Int)
ParameterDescriptionTypeMandatory/Optional
defaultImageResource ID of fallback drawable.IntMandatory

In-app supported layouts

Header

Header

Header

Header

Footer

Footer

Footer

Footer

Popup

Popup

Interstitial

Interstitial