In-App Messaging Android Apps that use SDK Version 11

Overview 

In version 11, the In-App Messaging component was migrated to a standalone feature module. This migration involves the following key changes:

  • Package Name Changes: Updated to reflect the new modular structure.
  • New Configuration Pattern: In-App Messaging can now be configured at SDK configuration time (recommended).
  • Updated Event Listener: Added the InAppMessageCloseAction function parameter to the didCloseMessage function in the InAppMessageManager.EventListener.

Configuration 

In-App Messaging configuration is now performed at SDK Configuration time. While this approach is recommended, previous runtime configuration options remain available through the new InAppMessagingFeatureModule class.

Note: You can no longer access the InAppMessageManager through the Marketing Cloud SDK as it has been removed from the core library.

How to Configure In-App Messaging in Android SDK v11 

Configure at SDK Initialization
1kotlin
2SFMCSdk.configure(applicationContext as Application, SFMCSdkModuleConfig.build {
3  inAppMessagingFeatureModuleConfig = InAppMessagingFeatureConfig.builder().apply {
4    // set configuration options for In App Messaging
5  }.build()
6})
Configure After SDK Initialization
1kotlin
2InAppMessagingFeature.requestSdk { inAppMessagingFeatureModule ->
3    // set configuration options for In App Messaging
4}

For more information see, Implement In-App Messaging on Android.