I am looking for some guidance when using flutter over a platform channel to integrate with android fingerprint authentication. I have the android part working and the flutter app with call the method, but I can not seem to get just a pop-up of fingerprint authentication like I do in swift, which works fine in the same flutter app, in order for it to pass results to the flutter app and let the flutter app continue on. If anyone has any examples or some guidance it would be greatly appreciated.
import 'package:flutter/services. dart'; import 'package:local_auth/error_codes. dart' as auth_error; import 'package:local_auth/local_auth. dart'; // ··· final LocalAuthentication auth = LocalAuthentication(); // ··· try { final bool didAuthenticate = await auth.
Biometric authentication is a security process that relies on the unique biological characteristics of individuals to verify they are who they say they are. Biometric authentication systems compare physical or behavioral traits to stored, confirmed, authentic data in a database.
If you’re using IntelliJ IDEA with Flutter plugin, you’ll get a tip to get the packages which you can use. Otherwise just use the following command (from within your project’s root) to get the package. This will add the package to your project. Your Android app will need additional permission to be able to use the fingerprint sensor.
In fundamental terms, fingerprint authentication is primarily a matter of encryption including a key, a figure to perform the encryption and a fingerprint manager to handle with the validation procedure. To implement fingerprint authentication API in your Android application you need to get the Android SDK first.
Flutter is a great framework to work with and one of the reason is its abundant plugin. So for this project, we will be using one such plugin called “ local_auth “. To add this plugin, open pubsec.yaml file and add the line as shown below: After adding the plugin, you can run “flutter pub get”.
I will be naming the project as “ InstaTouchAuth “. Flutter is a great framework to work with and one of the reason is its abundant plugin. So for this project, we will be using one such plugin called “ local_auth “. To add this plugin, open pubsec.yaml file and add the line as shown below: After adding the plugin, you can run “flutter pub get”.
Try the local_auth plugin -- it comes with usage instructions and an example app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With