reinitialize
Manually triggers a reinitialization attempt after a failed initialization.
This method is useful when initialization has failed (e.g., due to network issues when the app was cold-started by a push notification) and you want to retry after conditions have improved.
The SDK will automatically retry initialization up to 3 times with exponential backoff, but this method allows manual retries after those automatic attempts have been exhausted.
Example usage:
// In your ViewModel or Activity
if (Clerk.initializationError.value != null && !Clerk.isInitialized.value) {
val started = Clerk.reinitialize()
if (started) {
// Wait for isInitialized to become true
}
}Content copied to clipboard
Return
true if reinitialization was started, false if the SDK is not configured or is already initialized.