LAContext.evaluatedPolicyDomainState change between major OS versions

The header documentation for the (deprecated) LAContext.evaluatedPolicyDomainState property contains the following:

@warning Please note that the value returned by this property can change exceptionally between major OS versions even if the state of biometry has not changed.

I noticed that the documentation for the new LAContext.domainState property does not contain a similar warning. I also found this related thread from 2016/17.

Is the domainState property not susceptible to changes between major OS versions? Or is this generally not an issue anymore?

Answered by DTS Engineer in 860836022

The lesson from that other thread is that Apple reserves the right to change such values extra-ordinarily — that is, without the user specifically changing their biometrics — and your app should be designed to handle that gracefully.

The doc comment you’re looking for isn’t on the domainState property, but rather on the various stateHash properties in <LocalAuthentication/LADomainState.h>.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

The lesson from that other thread is that Apple reserves the right to change such values extra-ordinarily — that is, without the user specifically changing their biometrics — and your app should be designed to handle that gracefully.

The doc comment you’re looking for isn’t on the domainState property, but rather on the various stateHash properties in <LocalAuthentication/LADomainState.h>.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

LAContext.evaluatedPolicyDomainState change between major OS versions
 
 
Q