Code Monkey home page Code Monkey logo

boraxpr_biometric_example's Introduction

boraxpr_biometric_example

This Flutter project showcases the implementation of biometric authentication using local_auth.

Table of Contents

Biometric Authentication Example

Permission for biometric

If permission is not granted, app will be failed to initialize.

Android at project/android/app/src/main/AndroidManifest.xml directly under "manifest" tag.

<uses-permission android:name="android.permission.USE_BIOMETRIC"/>

IOS at project/ios/Runner/Info.plist directly under "dict" tag.

<key>NSFaceIDUsageDescription</key>
<string>Why is my app authenticating using face id?</string>

Android specific configurations

At project/android/app/src/main/kotlin/com/example/{ProjectName}/MainActivity.kt change the default Activity to use FlutterFragmentActivity.

import io.flutter.embedding.android.FlutterFragmentActivity

class MainActivity: FlutterFragmentActivity() {
    // ...
}

iOS specific configurations

Xcode build will requires you to select your team. To do this, you need to be on MacOS. Then open project/ios/Runner.xcworkspace by using Xcode then edit the build setting.

Add the local_auth dependency

dependencies:
  flutter:
    sdk: flutter
  local_auth:

Run

flutter pub get

flutter run

boraxpr_biometric_example's People

Contributors

boraxpr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.