[PR #1082] [MERGED] Biometric Integrity crash fix on iOS #2735

Closed
opened 2025-11-26 23:23:23 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/1082
Author: @Hinton
Created: 9/21/2020
Status: Merged
Merged: 9/21/2020
Merged by: @mpbw2

Base: masterHead: hotfix/ios-biometric


📝 Commits (1)

  • b7e5e6d Handle if GetState is null in biometric integrity check

📊 Changes

1 file changed (+9 additions, -2 deletions)

View changed files

📝 src/iOS.Core/Services/BiometricService.cs (+9 -2)

📄 Description

The EvaluatedPolicyDomainState can be null.

"This property returns a value only when the canEvaluatePolicy(:error:) method succeeds for a biometric policy or the evaluatePolicy(:localizedReason:reply:) method is called and a successful biometric authentication is performed. Otherwise, nil is returned."

https://developer.apple.com/documentation/localauthentication/lacontext/1514150-evaluatedpolicydomainstate

Might solve #1078 and #1055


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/1082 **Author:** [@Hinton](https://github.com/Hinton) **Created:** 9/21/2020 **Status:** ✅ Merged **Merged:** 9/21/2020 **Merged by:** [@mpbw2](https://github.com/mpbw2) **Base:** `master` ← **Head:** `hotfix/ios-biometric` --- ### 📝 Commits (1) - [`b7e5e6d`](https://github.com/bitwarden/android/commit/b7e5e6d2078722854893a7df78bee846e1dff3f6) Handle if GetState is null in biometric integrity check ### 📊 Changes **1 file changed** (+9 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/iOS.Core/Services/BiometricService.cs` (+9 -2) </details> ### 📄 Description The EvaluatedPolicyDomainState can be null. "This property returns a value only when the canEvaluatePolicy(_:error:) method succeeds for a biometric policy or the evaluatePolicy(_:localizedReason:reply:) method is called and a successful biometric authentication is performed. Otherwise, nil is returned." https://developer.apple.com/documentation/localauthentication/lacontext/1514150-evaluatedpolicydomainstate Might solve #1078 and #1055 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-26 23:23:23 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#2735