Integrate the Android SDK
Add SDK Dependencies with CocoaPods
Add SDK Dependencies with SPM
Add SDK Dependencies Manually
Configure the SDK for iOS
Runtime Toggles
Integrate with Other Platforms
Handle URLs
Changelog
To add the Mobile App Messaging SDK as a dependency in your app’s Podfile, add the pod to your Xcode project. See Using CocoaPods: Adding Pods to an Xcode project.
Use this code example to specify the dependencies in your app’s Podfile.
1target 'MyApp' do
2 pod 'SFPushFeatureSDK'
3 pod 'SFMobileAppMessagingSDK'
4 pod 'SFInAppMessagingFeatureSDK'
5endThe pods listed in this example include the SFMCSDK module automatically. Don’t add the module to your podfile manually.
Important
Open the .xcworkspace created by the installation process in Xcode.
Don’t open .xcodeproj directly. Opening a project file instead of a workspace can lead to errors.
Important
After you add the dependencies, configure the SDK.