Configure Flutter for iOS

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

Resolve Plugins 

Run flutter pub get from the project root first. This command generates .flutter-plugins and .flutter-plugins-dependencies, which CocoaPods needs to resolve plugin symlinks.

Resolve plugins
1flutter pub get

Install Pods 

From your app’s ios directory, install CocoaPods dependencies.

Install pods
1cd ios && pod install

Configure APNs 

Set up APNs in your Apple Developer account and upload credentials in Marketing Cloud Engagement setup.

You can use either:

  • APNs authentication key (.p8)
  • APNs certificate (.p12)

Configure SDK in App Startup 

Configure the SDK in your AppDelegate.swift using the multi-module ConfigBuilder pattern.

For detailed SDK configurations, see Configure iOS SDK.

Enable Push Capabilities 

In Xcode, enable:

  • Push Notifications
  • Background Modes with Remote Notifications

For more information, see Enable Push Notifications.

iOS SDK Versions 

iOS PodVersion
MarketingCloud-SFMCSdk4.0.0 or later
MarketingCloudSDK11.0.0 or later
SFPushFeatureSDK2.0.0 or later
SFInAppMessagingFeatureSDK1.0.0 or later
SFMobileAppMessagingSDK2.0.0 or later