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

Ios screenlock #3257

Merged
merged 2 commits into from
Mar 27, 2025
Merged

Ios screenlock #3257

merged 2 commits into from
Mar 27, 2025

Conversation

benma
Copy link
Contributor

@benma benma commented Mar 26, 2025

@bznein fyi:

Cancelling an authentication normally should show the 'Authenticate' button to try again, but cancelling the auth when enabling the screen lock in the advanced settings should do nothing (just cancel the screen lock setup). Before this PR, cancelling the setup was buggy.

@benma benma requested a review from NickeZ March 26, 2025 14:00
@benma benma requested review from bznein and removed request for NickeZ March 26, 2025 15:21
Copy link
Collaborator

@bznein bznein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Tested with an emulated iPhone through XCode. Both the "cancel" bug and FaceID (https://developer.apple.com/documentation/xcode/testing-complex-hardware-device-scenarios-in-simulator#Test-Face-ID-or-Touch-ID-authentication) work! The only thing I wasn't able to reproduce is that two failed FaceID match fall back to the passcode auth (as mentioned in the commit message), but maybe that is a limitation of the emulator (or mine :D)

benma added 2 commits March 27, 2025 08:58
WIthout the NSFaceIDUsageDescription Info.plist key, only the passcode
could be used. With the key present, the app will ask permission to use
FaceID, and if granted, use that, and if not granted, use the passcode.

If you re-try the FaceID auth check twice without success, auth falls
back to passcode automatically.
When you cancel the screen lock setup during auth, the app would get
stuck on an empty 'authenticate' screen. We needed to call
MobileserverCancelauth instead so the app handles cancellation properly.
@benma benma merged commit dbb7a5a into BitBoxSwiss:master Mar 27, 2025
7 of 9 checks passed
@benma benma deleted the ios-screenlock branch March 27, 2025 07:59
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.

2 participants