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

Support biometric in Capacitor SDK #257

Merged
merged 15 commits into from
Jan 18, 2024

Conversation

louischan-oursky
Copy link
Collaborator

ref #256

@tung2744
Copy link
Collaborator

@louischan-oursky Have you got this error when trying in simulator?
Screenshot 2024-01-17 at 1 35 58 PM

@louischan-oursky
Copy link
Collaborator Author

No. I tested on my own iPhone. Maybe simulator does not support secure enclave.

@louischan-oursky
Copy link
Collaborator Author

Let me take a look later when I have time.

@tung2744
Copy link
Collaborator

Maybe simulator does not support secure enclave.

However, app2app can be run on simulator, which is also using secure enclave.

BTW, I also added a readme for capacitor example app in c23f468

@louischan-oursky
Copy link
Collaborator Author

I figure out the cause, but I could not find any reason on the web.

In the SecAccessControlCreateFlags, if we omit .biometryAny .biometryCurrentSet .userPresence , then we can enable biometric on Simulator. I think the simulator has some problem handling these flags.

@louischan-oursky
Copy link
Collaborator Author

Added one commit to work around the issue.

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