A biometric plugin for .NET MAUI, for Android and iOS
Support | OS |
---|---|
iOS | iOS 15.0 + |
macOS | macOS 12.0+ |
Android | API 26+ (Oreo) |
Windows | v.10.0.17763.0 |
Community PR's for the other platforms are welcome but I will personally not be able to maintain the other platforms, due to shortage of time and unavailablity of devices for testing.
Add the following permissions for Android and iOS/macOS:
AndroidManifest.xml
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
Info.plist
<key>NSFaceIDUsageDescription</key>
<string>Need your face to unlock! </string>
To use it as a service all you need to do is add this line to your MauiProgram.cs
builder.Services.AddSingleton((e) => BiometricAuthenticationService.Default);
No runtime permission requests are needed, and this is it, you're ready to use our plugin!!
Visit our wiki for the documentation
Fossa:
Sparkline:
RepoBeats: