useFallback:true
eleonorarocchi opened this issue · comments
In some cases, on android device, the biometric access is not available (because le security level of camera is not sufficient, if I have understood).
Alternativally, I have use the userFallback flag, but the device not showing the passcode:
NativeBiometric.isAvailable({useFallback:true});
Missing any other education?
Thanks
useFallback
is only used on Android if Biometrics themselves are available, as it then allows the user to use device credentials.
Android will check if biometrics can be used for authentication. See Here:
It is only when biometrics are already available that the fallback is available on Android. See Here:
iOS on the other hand will check if regular device credentials can be used when useFallback
is set. See Here:
All in all, I'm going to make some changes to this plugin and submit a pr, I'll see if there is a regular device credential intent that can be used in the event that there are no biometrics but fallback is set to true.