Skip to content

Instantly share code, notes, and snippets.

View yunus-floo's full-sized avatar

Ahmad Yunus Afghoni yunus-floo

View GitHub Profile
@yunus-floo
yunus-floo / localAuthSettingsForAndroid_kotlin.md
Created November 2, 2022 02:53 — forked from akifarhan/localAuthSettingsForAndroid_kotlin.md
Flutter Local_Auth Setting for Android in Kotlin

Note that local_auth plugin requires the use of a FragmentActivity as opposed to Activity. This can be easily done by switching to use FlutterFragmentActivity as opposed to FlutterActivity in your manifest (or your own Activity class if you are extending the base class).

1. Add USE_FINGERPRINT permission

  • Open android>app>src>main>AndroidManifest.xml
  • Add the permission
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.[your.package]">
  <uses-permission android:name="android.permission.USE_FINGERPRINT"/>