SDK Overview
AgentWallie provides native SDKs for iOS and Android that handle:
- Config sync: Fetch and cache the compiled project config
- Placement evaluation: Match users to campaigns and audiences
- Paywall rendering: Render paywall schemas as native UI (SwiftUI / Jetpack Compose)
- Purchase handling: StoreKit 2 (iOS) or Google Play Billing (Android)
- Event tracking: Batch and send telemetry events to the API
SDK Comparison
| Feature | iOS | Android |
|---|---|---|
| Package | AgentWallieKit (SPM) | com.agentwallie.sdk (Gradle) |
| Min version | iOS 16+ | API 26+ |
| UI framework | SwiftUI | Jetpack Compose |
| Purchase library | StoreKit 2 | Google Play Billing v7+ |
| Language | Swift | Kotlin |
How the SDK Works
App Launch
│
▼
AgentWallie.configure(apiKey:)
│
▼
Fetch config from API ──► Cache in memory + disk
│
▼
register(placement: "feature_gate")
│
▼
Evaluate campaigns with this placement
│
▼
Match audiences top-to-bottom (filters)
│
▼
Check experiment assignment
│
▼
Render paywall schema natively
│
▼
Handle purchase ──► Track events ──► POST /v1/eventsChoose Your Platform
- iOS SDK -- Swift/SwiftUI integration guide
- Android SDK -- Kotlin/Jetpack Compose integration guide