smstuebe / xamarin-fingerprint

Xamarin and MvvMCross plugin for authenticate a user via fingerprint sensor
Microsoft Public License
490 stars 115 forks source link

Facelock is not working for android #227

Open tanuagnihotri opened 1 year ago

tanuagnihotri commented 1 year ago

To help us fix your issue, please provide the information in the below template. If something causes a crash, provide as much information as you can gather. Just imagine: we do not know what you are doing!

Note: There is often little we can do without a minimal reproducible sample of the issue, so please provide that in a standalone git repository and link it here.

Steps to reproduce

1.In xamarin project installed this fringerprint plugin and some packages in android project like Xamarin.AndroidX.Browser , Xamarin.AndroidX.Legacy.Support.V4 , Xamarin.AndroidX.Lifecycle.LiveData

2.Disable fingerlock and enable face lock in android phone like samsung(android 12 version) and vivo

3.Then debug this application it return false for line "CrossFingerprint.Current.IsAvailableAsync(false)"

Expected behavior

on android if fingerprint is disabled and face lock is enabled, there should be a popup for facelock authentication

Actual behavior

It do not give any popup to ask for facelock authentication

Crashlog

CrossFingerprint.Current.IsAvailableAsync(false) this return false when facelock is enabled and fingerprint is disabled on android

Configuration

Plugin.Fingerprint: version:2.1.5 Xamarin.AndroidX.Browser version :1.3.0.4 Xamarin.AndroidX.Legacy.Support.V4 version:1.0.0.8 Xamarin.AndroidX.Lifecycle.LiveData version:2.3.1.3

Platform: .Net project in xamarin and using windows 10

Device: e.g. samsung(android 12 version)/vivo(android 11) ...

smsissuechecker commented 1 year ago

Hi @tanuagnihotri,

I'm the friendly issue checker. Thanks for using the issue template :star2: I appreciate it very much. I'm sure, the maintainers of this repository will answer, soon.

krunaldarji commented 1 year ago

Hi @tanuagnihotri you fond any solution ? Thanks!

agnihotritanisha commented 1 year ago

Hi @tanuagnihotri you fond any solution ? Thanks!

No I do not get any solution.

tanuagnihotri commented 1 year ago

Hi @tanuagnihotri you fond any solution ? Thanks!

Hi I do not get any solution till now

rs-mobitech commented 1 year ago

Any update from anyone ?

tanuagnihotri commented 1 year ago

Any update from anyone ?

No update.

rogerskk commented 1 year ago

I had a similar issue and was able to resolve this by updating Xamarin.AndroidX.Lifecycle.ViewModel and Xamarin.AndroidX.Lifecycle.ViewModelSavedState to the latest versions. I also updated Xamarin.AndroidX.Lifecycle.Runtime and Xamarin.AndroidX.Lifecycle.LiveData to the latest version while I was at it. I would set result = CrossFingerprint.Current.IsAvailableAsync and see if you get a result.ErrorMessage that should help you see what it might be having an issue with.