Installation
Configure Flutter for Android
Configure Flutter for iOS
API Reference
Migration Steps
Migration Checklist
Migrate from the Marketing Cloud Engagement-specific or the Marketing Cloud Next-specific Flutter plugins to the unified Flutter plugin model.
The previous Flutter integration for Marketing Cloud Engagement uses one monolithic package (sfmc) and one static class (SFMCSdk) for all features. Similarly, the integration for Marketing Cloud Next uses a separate monolithic package (mam) with its own static class (MobileAppMessaging).
The key changes in the Flutter unified implementation are:
sfmc_core for core services, sfmc_push for push notifications, sfmc_iam for in-app messaging, sfmc_marketingcloudsdk for Marketing Cloud Engagement, and sfmc_mobileappmessaging for Marketing Cloud Next.requestSdk().sfmc_core.sfmc_iam) is a new, optional feature package with lifecycle events and display control. No equivalent existed in the previous Engagement-specific Flutter plugin.EventChannel.Use this table to map dependencies from the previous, non-unified plugin to their equivalent packages in the unified plugin.
| Previous Flutter dependency | Unified Dependency | Required? |
|---|---|---|
sfmc (MobilePush / Engagement) | sfmc_marketingcloudsdk | Required. This package replaces the Engagement-specific package. |
mam (Marketing Cloud Next) | sfmc_mobileappmessaging | Required. This package replaces the Marketing Cloud Next-specific package. |
Identity, attributes, and events bundled inside sfmc | sfmc_core | Auto-installed as a transitive dependency of any product package. |
Push messaging support bundled inside sfmc | sfmc_push | Required if your app sends push notifications. |
| No Dart equivalent (native-only or config-only) | sfmc_iam | Required if your app uses in-app messages. This is a new capability with a Dart API. |
Before you begin your migration, make sure you meet these prerequisites:
| Components | Minimum Requirement |
|---|---|
| Flutter | 3.3.0 or later |
| Dart SDK | >=3.0.6 <4.0.0 |
| iOS | 12.0 or later |
| Android | minSdk 26, compileSdk 36 |