Skip to main content

Sample Apps

The AFCore repo ships two reference apps that exercise every public feature:

PlatformLocationUI
iOSsample/iosSwiftUI
Androidsample/androidJetpack Compose

Both apps:

  • Initialize the SDK with user-provided credentials (no secrets baked in) — you paste baseUrl / clientId / clientSecret from AIDE on the first Initialize screen
  • Persist those values on-device so subsequent launches go straight to the feature menu
  • Expose every public SDK API as a tappable screen — useful as both a demo and an integration reference

Two ways to run

1. Build from source

Clone the repo, open the platform-specific project, run.

2. Install a prebuilt build

Choice Plans testers get pre-built APKs and IPAs distributed via Firebase App Distribution under the afcore-sample-testers group. Ask your Account Manager to be added.

The distribution flow lives in SAMPLE_DISTRIBUTION.md — both sample/android/scripts/distribute.sh and sample/ios/scripts/distribute.sh build and upload to Firebase in one command.


What's NOT in the samples

  • No client secrets — never commit one to your fork
  • No production member data — use a QA API key and a sandbox member
  • No release signing — Android ships debug-signed; iOS ships ad-hoc