getLifetimeSignUpDetails

Retrieves Lifetime Digital sign-up details, including the partnership URL and promo code.

Use this to drive the user to the Lifetime Digital website/app to create an account under the Advanta partnership. The user will likely need to enter the provided promo code.

Return

VirtualFitnessSignUpDetails with the URL, promo code, and other metadata.

Throws

if retrieval fails.

Android (Kotlin)

lifecycleScope.launch {
try {
val details = AFCore.virtualFitness().getLifetimeSignUpDetails()
// Display details.promoCode to the user and open details.url
openInWebView(details.url)
} catch (t: Throwable) {
showError("Lifetime sign-up not available: ${t.message}")
}
}

iOS (Swift)

Task {
do {
let details = try await AFCore.shared.virtualFitness().getLifetimeSignUpDetails()
// Display details.promoCode to the user and open details.url
self.openInWebView(details.url)
} catch {
self.showError("Lifetime sign-up not available: \(error.localizedDescription)")
}
}