android-biometric-prompt

In Android 10 devices, Biometric prompt is failing with ERROR_CANCELED all the time on top of lock screen

試著忘記壹切 提交于 2021-02-18 07:57:49
问题 In Android 10 devices, Biometric prompt is failing with BiometricPrompt.ERROR_CANCELED all the time on top of the lock screen. Error is returned in onAuthenticationError callback of BiometricPrompt.AuthenticationCallback class. The biometric prompt authentication is working when the device is unlocked. is it possible to have biometric prompt authentication done on top of device lock screen in Android 10 when setDeviceCredentialAllowed is set to true? Update: The issue is only when

How to make BiometricPrompt non-cancelable?

依然范特西╮ 提交于 2021-01-27 03:54:51
问题 I am using BiometricPrompt in my application. It works well and shows the dialog when call the authenticate() method. But this dialog gets closing when I click outside the dialog. How to prevent it? How to make BiometricPrompt's dialog non-cancelable? Here is no method like biometricPrompt.setCancelable(false) . 回答1: You have to use the version 1.0.0-beta01 or later. Now it is the default behavior: Touches outside no longer cancel authentication. Back button cancel authentication still. You

How to make BiometricPrompt non-cancelable?

时光怂恿深爱的人放手 提交于 2021-01-27 03:54:07
问题 I am using BiometricPrompt in my application. It works well and shows the dialog when call the authenticate() method. But this dialog gets closing when I click outside the dialog. How to prevent it? How to make BiometricPrompt's dialog non-cancelable? Here is no method like biometricPrompt.setCancelable(false) . 回答1: You have to use the version 1.0.0-beta01 or later. Now it is the default behavior: Touches outside no longer cancel authentication. Back button cancel authentication still. You

Face Authentication using androidx Biometric API in Android

若如初见. 提交于 2021-01-02 08:20:56
问题 I need to integrate Biometric authentication using Fingerprint and Face authentication. Fingerprint authentication works perfectly but when I set only Face authentication I am getting Biometric not enrolled response from BiometricManager.from(context) method as follows, val biometricManager = BiometricManager.from(context) when(biometricManager.canAuthenticate()){ BiometricManager.BIOMETRIC_SUCCESS ->{ Log.e(TAG, "App can authenticate using biometrics.") } BiometricManager.BIOMETRIC_ERROR_NO

Face Authentication using androidx Biometric API in Android

有些话、适合烂在心里 提交于 2021-01-02 08:15:21
问题 I need to integrate Biometric authentication using Fingerprint and Face authentication. Fingerprint authentication works perfectly but when I set only Face authentication I am getting Biometric not enrolled response from BiometricManager.from(context) method as follows, val biometricManager = BiometricManager.from(context) when(biometricManager.canAuthenticate()){ BiometricManager.BIOMETRIC_SUCCESS ->{ Log.e(TAG, "App can authenticate using biometrics.") } BiometricManager.BIOMETRIC_ERROR_NO

Face Authentication using androidx Biometric API in Android

雨燕双飞 提交于 2021-01-02 08:15:13
问题 I need to integrate Biometric authentication using Fingerprint and Face authentication. Fingerprint authentication works perfectly but when I set only Face authentication I am getting Biometric not enrolled response from BiometricManager.from(context) method as follows, val biometricManager = BiometricManager.from(context) when(biometricManager.canAuthenticate()){ BiometricManager.BIOMETRIC_SUCCESS ->{ Log.e(TAG, "App can authenticate using biometrics.") } BiometricManager.BIOMETRIC_ERROR_NO

KeyGeneration using AndroidX.Biometric fails if only face as biometric is installed

半世苍凉 提交于 2020-12-04 19:17:00
问题 we are currently trying to sign data with biometrics, which we use the androidx.biometric library for. The Problem is, if no Fingerprint ist installed but a face registered we cannot generate any keys. With Fingerprint only or with the combination of fingerprint and face everything works perfect. With only the face registered we get the following exception during key generation: Caused by: java.security.InvalidAlgorithmParameterException: java.lang.IllegalStateException: At least one

KeyGeneration using AndroidX.Biometric fails if only face as biometric is installed

断了今生、忘了曾经 提交于 2020-12-04 19:16:31
问题 we are currently trying to sign data with biometrics, which we use the androidx.biometric library for. The Problem is, if no Fingerprint ist installed but a face registered we cannot generate any keys. With Fingerprint only or with the combination of fingerprint and face everything works perfect. With only the face registered we get the following exception during key generation: Caused by: java.security.InvalidAlgorithmParameterException: java.lang.IllegalStateException: At least one

KeyGeneration using AndroidX.Biometric fails if only face as biometric is installed

╄→尐↘猪︶ㄣ 提交于 2020-12-04 19:12:51
问题 we are currently trying to sign data with biometrics, which we use the androidx.biometric library for. The Problem is, if no Fingerprint ist installed but a face registered we cannot generate any keys. With Fingerprint only or with the combination of fingerprint and face everything works perfect. With only the face registered we get the following exception during key generation: Caused by: java.security.InvalidAlgorithmParameterException: java.lang.IllegalStateException: At least one