Newer Version Available
Let us know so we can improve!
The Marketing Cloud Personalization iOS SDK supports the following:
To add your app to your dataset in the Personalization UI, do the following.
Log in to the Personalization UI, and choose the desired dataset.
For an initial integration, we recommend using a non-production dataset.
Note
From the left-hand menu, choose Mobile > Native App Setup.
If this feature is disabled for your dataset, contact the Personalization support team to enable it.
Note
In the Platform drop-down menu, select iOS.
Enter an App Name.
Enter the Bundle ID from Xcode. To retrieve the Bundle ID from Xcode, select the app Target, the General tab, and look under the first Identity section for Bundle Identifier.
Click Create New App.
You can add up to 8 native apps to a single dataset. However, deleting an app doesn’t free up space for a new one.
Important
Personalization supports two modes of integration:
The Personalization iOS SDK is available as a static vendored XCFramework via CocoaPods version 1.10 and higher. To integrate via CocoaPods, add a dependency on the Evergage pod, as shown in the following example.
1pod 'Evergage', '1.3.2'Next, proceed to initialize and start the Personalization SDK.
The Personalization iOS SDK is available as a static and dynamic XCFramework.
For a manual integration, do the following.
Extract the SDK zip file.
Open either the static or dynamic folder and locate the Evergage.xcframework folder within.
We recommend using the static integration.
Note
Drag the chosen Evergage.xcframework folder from a Finder window onto the left Project Navigator pane in your Xcode project.
not found error.Clean build products and rebuild your app.
If you encounter build problems during manual integration, do the following to troubleshoot.
Evergage.xcframework appears, with its initial/unchanged Do Not Embed setting. Xcode automatically knows how to handle XCFrameworks. If a settings is forced, you may see errors about architectures upon building/archiving/running the app.Evergage.xcframework was copied/installed into your project. If this setting is missing or inaccurate you may see ‘not found’ errors upon building/archiving/running the app.UIKit.frameworkSystemConfiguration.frameworkCoreGraphics.frameworkQuartzCore.frameworklibz.tbdUserNotifications.framework (can be Optional/weak-linked)Next, proceed to initialize and start the Personalization SDK.
For sample code in Objective-C and Swift to call in your UIApplicationDelegate -willFinishLaunchingWithOptions implementation to initialize and start the Personalization SDK, see the Evergage class documentation.
You can use other methods in the Evergage class to add information about the user. In the startup example code, setting the [Evergage userId] provides Personalization with the user’s authenticated ID. If the user’s ID is unknown at startup, you could call this method later to then send the user’s ID with subsequent events.
Newer Version Available