Configure Flutter for Android

After you install the unified Flutter packages, finish setting up your Android development environment.

Add the Marketing Cloud Android SDK Maven repository to your project-level android/build.gradle.

To provide Firebase Cloud Messaging credentials:

  1. Add your google-services.json to android/app/.
  2. Apply the Google Services plugin.
  3. If your app initializes Firebase manually, make sure that Firebase is initialized before the SDK initialization.

Configure the SDK in your main application (MainApplication.kt) using the multi-module ConfigBuilder pattern.

For detailed Android setup instructions, see Integrate the Android SDK.

Android ArtifactVersion
sfmcsdk3.1.+
marketingcloudsdk11.0.+
pushfeaturemodule2.0.+
inappmessagingfeaturemodule1.0.+
mobileappmessagingsdk1.1.+

If your app provides cross-platform support, verify the iOS setup.