click below
click below
Normal Size Small Size show me how
Biometric Flashcards
Master Flutter Biometric Authentication with Interactive Flashcards
| Question | Answer |
|---|---|
| What three unique biological characteristics are identified in the guide as common methods for biometric authentication? | Fingerprints, facial recognition, and iris scans. |
| What is the primary security advantage of biometric data over traditional passwords? | It is unique to individuals and cannot be easily replicated or stolen. |
| How does biometric authentication improve the user experience (UX) compared to passwords? | It provides quick and seamless access via a touch or glance without needing to remember complex credentials. |
| Which official Flutter plugin provides the necessary APIs to interact with a device's biometric authentication system? | local_auth |
| In which file must the `local_auth` dependency be added to a Flutter project? | pubspec.yaml |
| In Android development, which permission is required specifically for modern biometric authentication methods? | USE_BIOMETRIC |
| What is the purpose of adding the `USE_FINGERPRINT` permission in the `AndroidManifest.xml`? | It supports older fingerprint-based authentication methods on legacy Android devices. |
| Why should the `uses-feature` tag for fingerprint hardware be set to `required="false"` in Android? | To ensure the application remains functional on devices that do not have fingerprint sensors. |
| Which iOS-specific file requires the addition of a usage description for Face ID or Touch ID? | Info.plist |
| What is the specific key name used in iOS to define the Face ID usage description? | NSFaceIDUsageDescription |
| What information does the `isDeviceCapable()` method in the Biometric Helper class provide? | It checks if the device hardware supports biometric authentication, regardless of whether it is set up. |
| How does the `isBiometricEnabled()` method differ from checking hardware capability? | It verifies if biometric authentication is actually configured and enrolled by the user on the device. |
| Which method in the Biometric Helper class is used to distinguish between Face ID and Touch ID? | getBiometricType() |
| Which method triggers the system's biometric prompt and returns a boolean based on the result? | authenticate() |
| Why is a Biometric Helper class recommended for implementing authentication in Flutter? | It encapsulates all biometric functionality, ensuring a modular and clean architecture. |
| In which Flutter widget lifecycle method should biometric status checks typically be initialized? | initState() |
| Under what conditions should the biometric authentication button be displayed in the UI? | Only when both the device is hardware capable and biometrics are currently enabled. |
| How should the `getBiometricType()` value be used to enhance the UI? | To customize the button text to match the specific sensor available, such as 'Face ID' or 'Touch ID'. |
| According to the guide, where should the `LoginPage` be set in `main.dart` to integrate the workflow? | As the home screen in the MaterialApp widget. |
| What is the recommended environment for testing biometric authentication implementation? | A physical device with fingerprint or face unlock enabled. |
| What is a common limitation of testing biometrics on emulators or simulators? | Biometric authentication may not work or is often unsupported on virtual devices. |
| How does implementing biometric authentication help with modern security compliance? | It aligns the application with current security standards and high user expectations for data protection. |
| The `local_auth` package provides a simple API for authenticating users on both _____ and _____ platforms. | Android; iOS |
| What logic should be implemented if `authenticate()` returns `false`? | The app should handle the failure or cancellation and provide appropriate user feedback. |
| What is the final takeaway regarding the modular design of the Biometric Helper class? | It allows the logic to be easily reused for other sensitive operations or advanced flows like app locks. |