Appstack SDK
SDK for integrating Appstack into iOS applications.
Requirements
-
iOS 13.0+
-
Xcode 14.0+
-
Swift 5.0+
Installation
Swift Package Manager
The SDK can be installed through Swift Package Manager. Add the following dependency to your Package.swift
file:
swift dependencies: [ .package(url: “https://github.com/appstack/ios-appstack-sdk.git”, from: “1.0.0”) ]
Or directly from Xcode:
-
File > Add Packages
-
Enter the repository URL:
https://github.com/appstack/ios-appstack-sdk.git
-
Select the desired version
Initialization
AppDelegate
SceneDelegate
SwiftUI
Sending Events
To send events defined in the Appstack platform (Mapping section):
For example:
Important Notes
-
Make sure to initialize the SDK before sending any events
-
Events must exactly match the names defined in the Appstack platform
-
For iOS 14.3+, it’s recommended to implement an ATT permission request before enabling ASA tracking
Apple Search Ads Attribution
Compatibility
-
Requires iOS 14.3 or later
-
AppstackSDK version 1.0.0 or later
Attribution Data Collection
Apple Search Ads attribution data collection is a two-part process:
-
Collect the user’s attribution token and send it to Appstack
-
With this token, Appstack will request attribution data directly from Apple within 24 hours
Standard vs Detailed Attribution
Apple Search Ads provides two types of attribution data:
Data type | Requires ATT Consent |
---|---|
Standard | No |
Detailed | Yes |
Standard Attribution
To enable standard attribution data collection (no user consent required):
Detailed Attribution
To collect detailed attribution data, you first need to request user consent:
Complete Implementation Example
⚠️ Important:
-
Detailed attribution will only be available if the user grants tracking permission.
-
If the user denies tracking, standard attribution data can still be collected
-
Allow up to 24 hours for attribution data to be available in your Appstack dashboard.
Support
Please open an issue in the repository or contact our support team for any questions or issues.