AFCore Documentation
AFCore is the cross-platform Kotlin Multiplatform SDK that powers consumer health & wellness apps built on the AdvantaHealth platform. It ships native artifacts for iOS, Android, and watchOS with a single shared business-logic surface (authentication, member data, activity tracking, geofencing, push messaging, and entitlement-driven feature flags).
This site is the official documentation for SDK consumers.
Getting access
The AFCore SDK is gated through the AIDE Developer Portal — a separate AdvantaHealth product (AdvantaHealth/AIDE) that handles account access, API keys, member rosters, delivery logs, and support tickets.
Before you integrate AFCore, your team needs:
- An AIDE Portal account — request access from your Advanta Health Account Manager.
- An API key (
clientId/clientSecret) issued from AIDE — pasted intoAFCoreConfig. - A configured member roster — managed in AIDE (eligibility file or SSO).
AIDE has its own portal and its own docs. This site only describes what AFCore consumes from AIDE — see AIDE Developer Portal for the short summary.
What you'll find here
| Section | Use it when |
|---|---|
| Installation | Setting up the SDK on iOS or Android for the first time |
| Sample Apps | You want a working app to read or run end-to-end |
| UI Components | You want themed SwiftUI / Jetpack Compose primitives to skip the design work |
| Core Concepts | You're learning the SDK's lifecycle, error model, and session state |
| Entitlements | You're wiring up a specific product feature (Gym Visits, SmartWalking, Mental Fitness, etc.) |
| Recipes | You want a copy-pasteable end-to-end flow |
| Troubleshooting | Something isn't behaving the way you expect |
| API Reference | You need the full Kotlin/Swift symbol surface |
At a glance
// Android
val config = AFCoreConfig.builder()
.baseUrl("https://api.example.com")
.clientId("YOUR_CLIENT_ID") // from AIDE → API Keys
.clientSecret("YOUR_CLIENT_SECRET")
.build()
AFCore.initialize(config)
// iOS / watchOS
let config = AFCoreConfig.builder()
.baseUrl("https://api.example.com")
.clientId("YOUR_CLIENT_ID") // from AIDE → API Keys
.clientSecret("YOUR_CLIENT_SECRET")
.build()
AFCore.shared.initialize(config: config)
Continue to Installation → Prerequisites for the full setup, or jump to a Sample App if you'd rather read working code first.
Support
- AIDE Developer Portal — primary entry point for keys, members, delivery logs, and support tickets
- Email — support@advantahealth.com
- Account Manager — Slack & escalation channel