-
-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I get the following error when trying to send a forgot password mail on my physical ios device. My app doesnt crash on my android device.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FIRActionCodeSettings setLinkDomain:]: unrecognized selector sent to instance 0x122edf560' *** First throw call stack: (0x19c991044 0x199e29abc 0x19c9fb444 0x19c8a57ec 0x19c8a5870 0x1112da850 0x1112cffd8 0x1112fa3bc 0x1112fa7ec 0x112610208 0x10f8e1a24 0x10f8e0ee4 0x10f85284c 0x1112f3730 0x1112f3c30 0x1112ef56c 0x111dccc7c 0x111dcddc8 0x112610208 0x10f6c80d8 0x11260fa10 0x10f6c44f0 0x11260faf0 0x10f8d2018 0x10f8e06e8 0x10f8537c8 0x10f84170c 0x10f843d40 0x10f843f14 0x111dc00bc 0x111dbde1c 0x111dbdef8 0x11260dbb8 0x111de2fa0 0x111de301c 0x11260dbb8 0x111c3d4f4 0x111c3d560 0x11260dbb8 0x11030b844 0x112686edc 0x10feccfac 0x10feccdb4 0x10feccdb4 0x10feccdb4 0x10feca4f8 0x112686d44 0x10fec96f0 0x10fede2f8 0x11004284c 0x110086040 0x1126a5c6c 0x1100765a4 0x1100766b4 0x11260d5f4 0x1100307d0 0x11002e9f8 0x11007bd2c 0x110073888 0x1126a6b20 0x110078f30 0x11013ec80 0x110146b88 0x110146cd0 0x1126102fc 0x1101b3dd0 0x1101ae090 0x1101b2ef4 0x19f212178 0x19f1c7500 0x19f1c71d8 0x19f1c7104 0x19f1c6c18 0x19f1d3508 0x19f1849a0 0x19f183be4 0x19f17d4e4 0x19f17d404 0x19f17cab4 0x19f1781e4 0x19c88685c 0x19c886674 0x19c8864d0 0x19c886e50 0x19c888a0c 0x1e96ed454 0x19f2a9274 0x19f274a28 0x1a13ba7a4 0x1a10c001c 0x1a10bfed0 0x10e9daaa0 0x10e9dacd0 0x1c3359f08) terminating due to uncaught exception of type NSException Can't show file for stack frame : <DBGLLDBStackFrame: 0x93c7a2440> - stackNumber:12 - name:<inlined-lambda> [inlined]. The file path does not exist on the file system: /Users/runner/work/firebase-kotlin-sdk/firebase-kotlin-sdk/firebase-auth/src/iosMain/kotlin/dev/gitlive/firebase/auth/auth.ktMessage from debugger: killed
The code that I use:
` fun sendPasswordResetEmail() = viewModelScope.launch {
val email = _uiState.value.email
if (!isValidEmail(email)) {
_uiState.update { it.copy(emailError = getString(Res.string.invalid_email_error)) }
return@launch
}
_uiState.update { it.copy(isLoadingEmail = true) }
passage.sendPasswordResetEmail(
PassageForgotPasswordParams(
email = email,
hostingDomain = "${BuildKonfig.FIREBASE_PROJECT_ID}.firebaseapp.com",
url = "https://${BuildKonfig.FIREBASE_PROJECT_ID}.firebaseapp.com/__/auth/links",
iosParams = PassageForgotPasswordIosParams(
bundleId = "de.ashman.ontrack.OnTrack",
),
androidParams = PassageForgotPasswordAndroidParams(
packageName = "de.ashman.ontrack",
),
canHandleCodeInApp = true
)
).onSuccess {
Logger.d("Password reset email sent successfully to: ${email.maskEmail()}")
commonUiManager.showSnackbar(getString(Res.string.reset_email_sent))
_uiState.update { it.copy(authMode = AuthMode.SIGN_IN) }
}.onFailure { error ->
Logger.e("Password reset email failed for ${email.maskEmail()}: ${error.message}")
commonUiManager.showSnackbar(getString(Res.string.reset_email_error))
}
_uiState.update { it.copy(isLoadingEmail = false) }
}`