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

[local_auth_darwin] Handle when FaceID hardware is available but permissions have been denied for the app #8348

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Dec 26, 2024

LocalAuth -canEvaluatePolicy:: returns error LAErrorBiometryNotAvailable when either Face ID isn't available at the hardware level, OR the Face ID is available/setup but the permissions for the app were denied.

If it returns LAErrorBiometryNotAvailable, also check biometryType since this should be none if there really is no biometry, but gets populated with LABiometryTypeTouchID when the FaceID hardware is available, but permission is denied. I tried this on a iPhone 16 Pro which has Face ID but not Touch ID support.

Fixes flutter/flutter#160083

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@jmagman jmagman changed the title [local_auth_darwin] Handle when biometry hardware is available but permissions have been denied for the app [local_auth_darwin] Handle when FaceID hardware is available but permissions have been denied for the app Dec 26, 2024
@jmagman jmagman self-assigned this Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[local_auth] canCheckBiometrics returns false when Face ID permission isn't granted
1 participant