Salesforce Marketing Cloud SDK flutter plugin for Android and iOS

This plugin is a wrapper of the native SDKs which can be found here:

More info about the functionallity of the SDK on each platform can be found on those repositories.



  • Android: Set parameters on string.xml
  • iOS: Set parameters on info.plist

Set contact key

When the user start the app or authenticate.

    final _marketingCloudFlutterPlugin = MarketingCloudFlutter();
    await _marketingCloudFlutterPlugin.setContactKey("marcelo7");

Replacing marcelo7 with the user contact key.


If your app is distributed through the Apple App Store or Google Play Store, you must comply with the data policies and rules for each store. When using this SDK in your app you must ensure the following: