Affise Unity SDK
The Affise Unity SDK is a UPM package that bridges the native Affise Android and iOS attribution SDKs into Unity projects, providing mobile attribution, event tracking, deep linking and ad-revenue integration.
Distribution
Section titled “Distribution”- UPM package name:
com.affise.attribution(package.json:2) - Display name:
Affise Attribution(package.json:4) - Version:
1.7.7(package.json:3) - License:
MIT(package.json:8) - Unity version constraint:
2020.3(package.json:6) - Repository:
https://github.com/affise/affise-mmp-sdk-unity(package.json:20-23) - Documentation URL:
github.com/affise/affise-mmp-sdk-unity(package.json:7) - Sample included:
Affise Simple DemoatSamples~/AffiseDemoApp(package.json:24-30) - Dependencies: none (
package.json:11)
Supported platforms
Section titled “Supported platforms”The Unity SDK targets Android and iOS via conditional compilation (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR (Runtime/Affise.cs:15).
- Android 24+
- iOS 12+
- Xcode 14.2+
On the Unity Editor (desktop), native calls are no-ops and return the platform-not-supported sentinel.
Get started
Section titled “Get started” Configuration UPM install, native setup, initialize.
Requirements Unity version and platform targets.
Optional setup AffiseSettings builder and init callbacks.
Events tracking Predefined, custom events and parameters.
Deep linking Deeplinks, Universal Links, deferred deeplinks.
Ad revenue AdMob, AppLovin MAX, Helium, ironSource, Admost.
Features
Section titled “Features” Push tokens Register Firebase / APNs push tokens.
Referrer Install referrer URL and keys.
Device info Random user/device IDs and providers.
Privacy GDPR forget, tracking toggles.
Offline mode Queue events when offline.
SKAdNetwork iOS SKAdNetwork conversion values.
Modules
Section titled “Modules” AdService iOS AdServices attribution token.
Advertising Android GAID / iOS IDFA.
AndroidId Android ID providers.
AppsFlyer Forward AppsFlyer events.
Huawei Huawei OAID and install referrer.
Link Resolve redirect chains.
Meta Meta Install Referrer.
Network MAC, connection type, proxy IP.
Persistent iOS persistent device ID.
Phone Network type and ISP.
RuStore RuStore install referrer.
Status Module status + deferred deeplink.
Subscription iOS subscription events.
TikTok Forward TikTok events.