Flutter -Biological Recognition authentication setup 2020
20201011
iOS
<key>NSFaceIDUsageDescription</key>
<string>Why is my app authenticating using face id?</string>
Android
Android -Trouble
Error: PlatformException(no_fragment_activity, local_auth plugin requires activity to be a FragmentActivity., null)
Trouble shotting:
app>src>main>kotlin>[bundle id]>MainActivity.kt
package co.et.keys
import androidx.annotation.NonNull;
import io.flutter.embedding.android.FlutterFragmentActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterFragmentActivity() {
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
GeneratedPluginRegistrant.registerWith(flutterEngine);
}
}
app>src>res>AndroidMaifest.xml
<uses-permission android:name="android.permission.USE_BIOMETRIC"/>
Comments
Post a Comment