kalismeras61 / flutter_lock_screen

This package gives you lock screen or pass code page
MIT License
61 stars 25 forks source link

no_fragment_activity, local_auth plugin requires activity to be a FragmentActivity., null flutter #6

Closed Kalyanb447-github closed 3 years ago

Kalyanb447-github commented 4 years ago

on my phone fingerprint is not working with the plugin no_fragment_activity, local_auth plugin requires activity to be a FragmentActivity., null flutter

chitgoks commented 3 years ago

why was this closed? was it because the issue is with local_auth? i was originally using FlutterActivity, when i switched to FlutterFragmentActivity all sorts of errors showed up and this was one of them.

Would it be possible to include a guide for this one?

kalismeras61 commented 3 years ago

@chitgoks this issue not related to this plugin.

If you want to use local_auth, You have to do below integration.

Android Integration 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).

chitgoks commented 3 years ago

agree. this is always a pain. even though I switched to FlutterFragmentActivity another issue comes up. thanks for the reply.