register NEOUProfile
Registers the member’s profile with NEOU after partner sign-up.
Call this after the user returns from the NEOU website/app via your redirect/callback, to confirm authentication and link the account under the Advanta partnership.
Requires that the NEOU 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 {
// Handle your app's deep link / redirect first, then:
val ok = AFCore.virtualFitness().registerNEOUProfile()
if (ok) showMessage("NEOU linked successfully") else showError("NEOU link failed")
} catch (t: Throwable) {
showError("NEOU link failed: ${t.message}")
}
}Content copied to clipboard
iOS (Swift) — after redirect/callback
Task {
do {
// Handle your app's URL callback first, then:
let ok = try await AFCore.shared.virtualFitness().registerNEOUProfile()
ok ? self.showMessage("NEOU linked successfully")
: self.showError("NEOU link failed")
} catch {
self.showError("NEOU link failed: \(error.localizedDescription)")
}
}Content copied to clipboard