Error Domain=com.apple.LocalAuthentication Code=-4 "Remote alert deactivated"

Hello!

I have a problem working with LocalAuthentication -> LAContext while interacting with Face/Touch ID.

Sometime I receive this error while using TouchID. After I received it and try immediately log in trough TouchID again, it works fine.

I catch 'default' case for the evaluateError handling. Unfortunately I wasn't able to find any info about this issue.

Please help
Looks like the error localizedDescription is incorrect. I have the same issue, and when looking into the LAError header, I see that the code -4 is type "systemCancel".

I got that error when I had a bug in my code leading to me initiating two or more simultaneous biometrics prompts. Fixed by making sure only one biometrics-authentication was running.

Looks like the error localizedDescription is incorrect.

You should definitely file a bug about that. The message you got, Remote alert deactivated, makes some degree of sense at a deep technical level (the alert is remote in the sense that it’s run outside of your process) but localizedDescription is meant to be something that can be presented to the user.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Error Domain=com.apple.LocalAuthentication Code=-4 "Remote alert deactivated"
 
 
Q