How To Use Fingerprint and Face ID in FLUTTER 3.3.9 [2022] To Local Auth

Опубликовано: 01 Январь 1970
на канале: HDEV Coder
3,375
55

How To Use Fingerprint and Face ID in FLUTTER 3.3.9 [2022] To Local Auth

● 🔥 Subscribe for more:    / hdevcoder  
● 👨‍💻 Code: https://github.com/HDEVCODER/biometri...

This Flutter plugin provides means to perform local, on-device authentication of the user.
On supported devices, this includes authentication with biometrics such as fingerprint or facial recognition.


[email protected]:HDEVCODER/biometrics.git

https://pub.dev/packages/local_auth

iOS Integration #
Note that this plugin works with both Touch ID and Face ID. However, to use the latter, you need to also add:

keyNSFaceIDUsageDescription/key
stringWhy is my app authenticating using face id?/string

to your Info.plist file. Failure to do so results in a dialog that tells the user your app has not been updated to use Face ID.


Android Integration #
The plugin will build and run on SDK 16+, but isDeviceSupported() will always return false before SDK 23 (Android 6.0).
Activity Changes #
Note that local_auth requires the use of a FragmentActivity instead of an Activity. To update your application:
If you are using FlutterActivity directly, change it to FlutterFragmentActivity in your AndroidManifest.xml.
If you are using a custom activity, update your MainActivity.java:
import io.flutter.embedding.android.FlutterFragmentActivity;

public class MainActivity extends FlutterFragmentActivity {
// ...
}or MainActivity.kt: import io.flutter.embedding.android.FlutterFragmentActivity

class MainActivity: FlutterFragmentActivity() {
// ...
} to inherit from FlutterFragmentActivity.
Permissions #
Update your projects AndroidManifest.xml file to include the USE_BIOMETRIC permissions:
manifest xmlns:android=http://schemas.android.com/apk/res/an...
package=com.example.app
uses-permission android:name=android.permission.USE_BIOMETRIC/
manifest




🎓More tutorials you may like
● Fix Flutter Firebase Common Problems [2022] :    • Fix Flutter Firebase Common Problems ...  
● Onboarding Screen Design from Scratch without any library:   • Flutter Onboarding Screen Design from...  



📡 Social Media
GitHub: https://github.com/HDEVCODER
Twitter:   / coderhdev  
Web: https://hdevy.blogspot.com

#Flutter #Tutorial #hdevcoder

Thanks for watching!
Make sure to like + Subscribe For More!


Смотрите видео How To Use Fingerprint and Face ID in FLUTTER 3.3.9 [2022] To Local Auth онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь HDEV Coder 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,37 раз и оно понравилось 5 людям.