Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PM-11883: Improve handling of biometric unlock errors #917

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

matt-livefront
Copy link
Collaborator

@matt-livefront matt-livefront commented Sep 11, 2024

🎟️ Tracking

PM-11883

📔 Objective

This improves the handling of errors during Face ID unlock to hopefully fix the issue of Face ID being deactivated due to any errors other than the auth key not being found. BiometricsServiceError.getAuthKeyFailed was being thrown for any unhandled errors, but this is also used to determine if Face ID should be deactivated if the auth key doesn't exist. This also adds error logging to Crashlytics for the getAuthKeyFailed and other errors to give more context if this doesn't solve the issue.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.56%. Comparing base (0b73095) to head (0fbc82c).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #917      +/-   ##
==========================================
+ Coverage   88.54%   88.56%   +0.01%     
==========================================
  Files         617      617              
  Lines       38918    38921       +3     
==========================================
+ Hits        34461    34469       +8     
+ Misses       4457     4452       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Details564631c5-5d64-4f16-aaf5-60bdadb90488

No New Or Fixed Issues Found

@matt-livefront matt-livefront merged commit 261bb86 into main Sep 11, 2024
8 checks passed
@matt-livefront matt-livefront deleted the matt/PM-11883-biometric-unlock-error branch September 11, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settings "Unlock with Touch ID" and "Unlock with Face ID" suddenly get reset (switched off).
3 participants