Affise iOS SDK
The Affise iOS SDK (version 1.7.8) is distributed as a set of CocoaPods pods and Swift Package Manager products published from affise/affise-mmp-sdk-ios.
Distribution coordinates
Section titled “Distribution coordinates”CocoaPods pods
Section titled “CocoaPods pods”AffiseAttributionLib— core attribution library (AffiseAttributionLib.podspec:7).AffiseModule— umbrella pod with subspecs:AdService,Advertising,AppsFlyer,Google,Link,Persistent,Status,Subscription,TikTok(AffiseModule.podspec:10).Googleis new in 1.7.8.AffiseSKAdNetwork— StoreKit Ad Network wrapper (AffiseSKAdNetwork.podspec:7).AffiseInternal— cross-platform wrapper (AffiseInternal.podspec:10).
Swift Package Manager products
Section titled “Swift Package Manager products”Package name Affise (Package.swift:7), platform .iOS(.v12) (Package.swift:9):
AffiseAttributionLibAffiseModuleAdServiceAffiseModuleAdvertisingAffiseModuleAppsFlyerAffiseModuleGoogle(new in 1.7.8)AffiseModuleLinkAffiseModulePersistentAffiseModuleStatusAffiseModuleSubscriptionAffiseModuleTikTokAffiseSKAdNetworkAffiseInternal
Start here
Section titled “Start here” Configuration Add the SDK via CocoaPods or SwiftPM and initialize in AppDelegate.
Requirements Minimum iOS, Xcode, and pod dependencies.
Optional setup setProduction, setDomain, setDisableModules, init callbacks.
Features
Section titled “Features” Events Predefined events, custom events, parameters, send control, buffering.
Deep linking Custom scheme, Universal Links, deferred deep links.
Push token APNs / Firebase push tokens and uninstall tracking.
Referrer getReferrerUrl, getReferrerUrlValue, ReferrerKey.
Device info getRandomUserId, getRandomDeviceId, providers, isFirstRun.
Privacy GDPR forget, tracking toggles, background tracking toggles.
Offline mode setOfflineModeEnabled, isOfflineModeEnabled.
SKAdNetwork Register and update postback conversion value.
WebView Register a WKWebView and send events from JavaScript.
Ad revenue AffiseAdRevenue for AdMob, AppLovin MAX, Helium, ironSource.
Modules
Section titled “Modules” AdService AAAttribution.attributionToken() forwarding.
Advertising IDFA access via ATT.
AppsFlyer Forward AppsFlyer events to Affise.
Google Google On-Device Conversion (odm_info). New in 1.7.8.
Link Resolve redirect chains.
Persistent Keychain-backed device id persistence.
Status Key-value status and referrer resolution.
Subscription StoreKit product fetch and purchase events.
TikTok Forward TikTok Business SDK events to Affise.
SKAdNetwork pod Standalone AffiseSKAdNetwork pod.