Skip to main content
You’ll need a publisher account to obtain your publisherToken and placement codes.

1. Add the SDK

Add the SDK as a package dependency:
dependencies: [
    .package(url: "https://github.com/kontextso/sdk-swift", .upToNextMajor(from: "4.0.0")) // pulls the latest 4.x
]
Then add the KontextSwiftSDK product to your target.

2. Set up IDFA (App Tracking Transparency)

Add NSUserTrackingUsageDescription to Info.plist. The SDK auto-prompts for ATT the first time a session is created and reads IDFA + IDFV from there. See IFA & ATT for the full setup — required Info.plist key, prompt-timing gotchas, and how to manage the prompt yourself.

3. Set up SKAdNetwork

Add the SKAdNetwork identifiers we provide during onboarding to Info.plist. The SDK reads them at startup and forwards them on every /init. See SKAdNetwork for the full guide.