This is the Iterable integration for the mParticle Apple SDK, built against the Iterable iOS SDK 6.x.
Add the Iterable kit package dependency in Xcode or in your Package.swift.
Swift Package Manager resolves the mParticle SDK automatically as a transitive dependency, so you do not need a separate .package entry for mparticle-apple-sdk.
let mParticleVersion: Version = "9.0.0"
.package(
url: "https://github.com/mparticle-integrations/mparticle-apple-integration-iterable-6",
.upToNextMajor(from: mParticleVersion)
),Then add mParticle-Iterable as a dependency of your target.
Add the kit dependency to your app's Podfile:
pod 'mParticle-Iterable', '~> 9.0'You can pass a custom IterableConfig before mParticle initialization:
import IterableSDK
import mParticle_Iterable
let config = IterableConfig()
config.autoPushRegistration = true
MPKitIterable.setCustomConfig(config)By default, the kit identifies users by email. To prefer user ID instead:
MPKitIterable.setPrefersUserId(true)After installing, rebuild and launch your app. With the mParticle log level set to Debug or higher, you should see the following in your Xcode console:
Included kits: { Iterable }| Platform | Minimum Version |
|---|---|
| iOS | 15.6 |
Please report bugs and feature requests to the mparticle-apple-sdk repository. This mirror repository is not actively monitored for issues.