configure, the SDK reports the first open and the attribution arrives a few
seconds later. It is stored, so on every later launch it is available right away.
Wait for it
attribution() never throws. Call it wherever you decide what a new user sees first, for
example to open onboarding on the campaign’s topic.
Or get a callback
TrueOrigin.currentAttribution (Swift, Kotlin) and TrueOrigin.currentAttribution()
(React Native) return the stored state without waiting, or nothing before the first
report.
Status
New statuses may be added. In Swift, keep an
@unknown default case; in Kotlin, an
else branch.
How an install is matched
- iOS
- Android
TrueOrigin compares the install with recent taps on your app’s tracking links. When
one tap clearly led to it, the install is
matched; when several could have, it is
ambiguous; when none did, unmatched. Tap the link on the same iPhone you install
on: a tap on a computer or another phone cannot match.What a match carries
Useful keys in
payload: