Up and running in twenty minutes
Install the SDK, mount the onboarding, publish a change without a release. Everything else is optional.
1. Install the SDK
Pick your platform. The SDK renders native components from a server definition and reports every step back.
dependencies: [
.package(url: "https://github.com/francosae/onset-ios", from: "0.6.3")
]2. Configure
Call configure once at launch with your publishable key. Keys live in Settings → API keys; use the test key in staging.
import OnsetSDK
Onset.shared.configure(
publishableKey: "pk_live_…",
options: OnsetOptions(apiBaseURL: URL(string: "https://onset-api.onboarding.company")!)
)3. Mount the onboarding
Put OnsetFlowView where your old onboarding was. It takes a placement (the slot your published flow or experiment fills) and gives you back the answers.
OnsetFlowView(placement: "onboarding", delegate: onboarding)
// OnboardingDelegate: OnsetFlowDelegate
func onsetDidComplete(answers: [String: JSONValue]) {
// answers → ["goal": "race", "experience": "advanced"]
showHome()
}Answers are also saved as user properties on our side and forwarded to any analytics integration you connect, so you rarely need to read them here.
4. Verify
Run the app once. The dashboard setup page flips to "Connected" when it hears the first ping, usually within a second.
5. Publish a change
Open Flows, edit any screen's title, and hit Publish. Kill the app, reopen it. That's the whole release process from now on.