yourfriendken / local_auth_device_credentials

BSD 3-Clause "New" or "Revised" License
5 stars 7 forks source link

We need an update for the 'androidx.biometric:biometric' package! #6

Open LaemonT opened 3 years ago

LaemonT commented 3 years ago

Hi, I have encountered an issue when I want fallback to pin, password or pattern if biometric is not available on the device.

This fork from 'local_auth' is not working on my Android tablet, so I dig into the source code of the 'androidx.biometric:biometric' package and found the method setDeviceCredentialAllowed() is not handled properly.

Then I found on the Android developer website that they have fixed it in the new updates, please check the following link: https://developer.android.com/jetpack/androidx/releases/biometric#1.0.1

And I think now we need to use setAllowedAuthenticators() instead... https://developer.android.com/training/sign-in/biometric-auth#allow-fallback

I understand that the official 'local_auth' plugin does not even handle the non-biometric credentials, but can we still get this to work on this fork?

Thanks!

zigapovhe commented 3 years ago

Couldn't agree more. Following this conversation. If the local_auth plugin doesn't evolve in right way, I hope that this fork can do that. I hope it can get on the native level of implementation soon.