android-biometric

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

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

BiometricPrompt: Why should we check KeyguardManager.isDeviceSecure() before enabling setDeviceCredentialAllowed?

限于喜欢 提交于 2020-01-24 12:54:45
问题 The documentation of BiometricPrompt.PromptInfo 's setDeviceCredentialAllowed method states: [...] Developers should first check KeyguardManager.isDeviceSecure() before enabling this. If the device is not secure, BiometricPrompt.ERROR_NO_DEVICE_CREDENTIAL will be returned in BiometricPrompt.AuthenticationCallback.onAuthenticationError(int, CharSequence). https://developer.android.com/reference/androidx/biometric/BiometricPrompt.PromptInfo.Builder.html#setDeviceCredentialAllowed(boolean)

BiometricPrompt: Why should we check KeyguardManager.isDeviceSecure() before enabling setDeviceCredentialAllowed?

社会主义新天地 提交于 2020-01-24 12:54:08
问题 The documentation of BiometricPrompt.PromptInfo 's setDeviceCredentialAllowed method states: [...] Developers should first check KeyguardManager.isDeviceSecure() before enabling this. If the device is not secure, BiometricPrompt.ERROR_NO_DEVICE_CREDENTIAL will be returned in BiometricPrompt.AuthenticationCallback.onAuthenticationError(int, CharSequence). https://developer.android.com/reference/androidx/biometric/BiometricPrompt.PromptInfo.Builder.html#setDeviceCredentialAllowed(boolean)

How to programmatically check support of Touch ID, Face Id ,Password and pattern lock in React-Native

柔情痞子 提交于 2019-12-23 09:35:29
问题 I have implemented react-native-fingerprint-scanner in my application its working fine for Touch Id . Now I wanted to add authentication for Touch ID, Face Id, Pass code for both platform Is there any to check whether your device support or not respectively it will ask for lock pattern ? Also I have tried using react-native-touch-id but it is not working me for Face Id Is there any way to achieve this for both platform (iOS/android)? Reference:Link 回答1: react-native-touch-id should work for

Is there anyway to identify which fingerprint used for unlocking/ accessing?

走远了吗. 提交于 2019-12-11 06:17:29
问题 Suppose i've enrolled 5 fingerprints in my phone. I need to check which of the 5 fingerprint is used for login to my application. Or any way to check the fingerprint if it's not the primary fingerprint. 回答1: Currently this behaviour is not available in fingerprint API as for the API it's just authentication data and receive authenticated result from Android device.. 来源: https://stackoverflow.com/questions/57657816/is-there-anyway-to-identify-which-fingerprint-used-for-unlocking-accessing