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

Replaced BiometricPrompt with createConfirmDeviceCredentialIntent on Android 10+ and fallback mode enabled #425

Closed
wants to merge 1 commit into from

Conversation

andreszs
Copy link

Whenever the justAuthenticate method is called with isDeviceCredentialAllowed and the SDK level is greater than 28, showAuthenticationScreen() will be called directly instead of using the bugged Biometrics API. That method uses the legacy createConfirmDeviceCredentialIntent dialog which works exactly as intended.

Description

Perfectly fixes #417. Does not change current plugin behavior at all.

How did you test your changes?

Redmi 9 with Android 10.

Whenever the **justAuthenticate** method is called with **isDeviceCredentialAllowed** and the [SDK level](https://apilevels.com/) is greater than **28**, **showAuthenticationScreen()** will be called directly instead of using the bugged Biometrics API. The result is exactly as intended.

Perfectly fixes #417. Does not change current plugin behavior at all. Tested with Android 10 device.
@andreszs andreszs requested a review from NiklasMerz as a code owner May 30, 2022 21:22
@andreszs andreszs closed this Jun 6, 2022
@NiklasMerz
Copy link
Owner

@andreszs Why did you close this?

@andreszs
Copy link
Author

andreszs commented Jun 6, 2022

This PR will become obsolete as soon as a new biometric API stable is released, and I'm working on a smaller plugin with authentication only.

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.

Wrong behaviour in Android 10 with disablebackup false
2 participants