Use bridged implementation for biometric lock

There currently is a beta feature in Joplin mobile to enable biometric lock. This implements unlocking via fingerprint only, without the option to enter a passcode. From my experience, fingerprint scanners don't always read the fingerprint correctly and particularly after several failed attempts to unlock, it would be useful for the user to be able to enter their backup passcode instead. Android and IOS implement that feature natively when you use the api for the biometric lock, so maybe it would make sense to replace the biometric lock implementation to use a library that acts as a bridge to the native implementation? One such example I can find if this is the following library:

5 Likes

Expo has expo-local-authentication. Since Joplin already uses a few Expo libraries (e.g. for camera and microphone recording), it could make sense to use expo-local-authentication here (provided it uses the correct native APIs).

1 Like

Yes it would make sense to switch to something else. I never liked the package I used at the time and now even less because it hasn't been updated for 5 years

1 Like