register Lifetime Digital Profile
Registers the member’s profile with Lifetime Digital after partner sign-up.
Call this after the user returns from the Lifetime Digital website/app via your redirect/callback, to confirm authentication and link under the Advanta partnership (e.g., using the Advanta promo code).
Requires that the Lifetime Digital program entitlement is active for the tenant.
Return
true if registration succeeded; false otherwise.
Throws
if registration fails.
Android (Kotlin) — after redirect/callback
lifecycleScope.launch {
try {
val ok = AFCore.virtualFitness().registerLifetimeDigitalProfile()
if (ok) showMessage("Lifetime Digital linked") else showError("Link failed")
} catch (t: Throwable) {
showError("Link failed: ${t.message}")
}
}Content copied to clipboard
iOS (Swift) — after redirect/callback
Task {
do {
let ok = try await AFCore.shared.virtualFitness().registerLifetimeDigitalProfile()
ok ? self.showMessage("Lifetime Digital linked")
: self.showError("Link failed")
} catch {
self.showError("Link failed: \(error.localizedDescription)")
}
}Content copied to clipboard