Configure Flutter for Android
After you install the unified Flutter packages, finish setting up your Android development environment.
Add the Marketing Cloud SDK Repository
Add the Marketing Cloud Android SDK Maven repository to your project-level android/build.gradle.
1allprojects {
2 repositories {
3 maven { url "https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/repository" }
4 }
5}Configure Firebase
To provide Firebase Cloud Messaging credentials:
- Add your
google-services.jsontoandroid/app/. - Apply the Google Services plugin.
- If your app initializes Firebase manually, make sure that Firebase is initialized before the SDK initialization.
Initialize SDK in Application Startup
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 SDK Versions
| Android Artifact | Version |
|---|---|
sfmcsdk | 3.1.+ |
marketingcloudsdk | 11.0.+ |
pushfeaturemodule | 2.0.+ |
inappmessagingfeaturemodule | 1.0.+ |
mobileappmessagingsdk | 1.1.+ |
Next Step
If your app provides cross-platform support, verify the iOS setup.