Update Imports in Android Apps that use SDK Version 11
In Version 11, the In-App Messaging classes have been relocated to new packages to support a more modular architecture. Update your import statements and access patterns.
Replace the import with the simplified version:
| Class | Old Import Path | New Import Path (SDK 11) |
|---|---|---|
| UrlHandler | com.salesforce.marketingcloud.pushfeature.push.UrlHandler | com.salesforce.marketingcloud.UrlHandler |
Update your existing imports to point to the new package locations:
| Feature / Class | Old Import Path | New Import Path (SDK 11) |
|---|---|---|
| InAppMessage | com.salesforce.marketingcloud.messages.iam.InAppMessage | com.salesforce.marketingcloud.inappmessaging.models.InAppMessage |
| InAppMessageManager | com.salesforce.marketingcloud.messages.iam.InAppMessageManager | com.salesforce.marketingcloud.inappmessagingfeature.InAppMessageManager |
| Config (New) | — | Access the InAppMessageManager through InAppMessagingFeatureConfig.requestSdk and add com.salesforce.marketingcloud.inappmessagingfeature.config.InAppMessagingFeatureConfig. |
| Close Action (New) | — | Add com.salesforce.marketingcloud.inappmessagingfeature.InAppMessageCloseAction if you are implementing InAppMessageManager.EventListener to import the didClose action parameter. |