xamarin / Essentials

Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
https://aka.ms/xamarin-upgrade
Other
1.52k stars 505 forks source link

Biometrics API #71

Closed moljac closed 1 year ago

moljac commented 6 years ago

Fingerprint API

Description

API for Fingerprint scanning.

VS bug #735680

Redth commented 6 years ago

Should this be named something different? Biometrics? We have iOS with Face ID, and presumably Android vendors will follow, so it's not really all fingerprint, however I think people mostly know this as fingerprint....

mattleibow commented 6 years ago

I would also say biometrics. on UWP we have Windows Hello, which could basically be anything in the world... face from my surface, fingerprint from my laptop, DNA tester from my secret bunker running Windows IoT...

jgiacomini commented 6 years ago

Maybe we name it biometrics and in the first version we only expose fingerprint.

jgiacomini commented 6 years ago

I just found this plugin which implement finger print reading on the 3 OS : https://github.com/smstuebe/xamarin-fingerprint

smstuebe commented 6 years ago

@jgiacomini 4 OS :wink:

Redth commented 6 years ago

Just adding a note here.... Android is actually calling their bits 'Biometrics' now too for what used to just support Fingerprint. I think this helps validate the API naming we had in mind.

CarlosMobileAppDeveloper commented 5 years ago

As part of this feature, for security reasons, you should also be able to detect if a new Fingerprint or FaceID has been added. Why? If you are using biometrics for authentication, and a new biometric fingerprint or face is added, the user should be required to confirm that new biometric option is valid for authentication in your app.

KSemenenko commented 5 years ago

maybe api for FAceID will be good?

jrahma commented 5 years ago

This will be great but it should have the following:

  1. Verify the fingerprint / face recognition.
  2. Get the fingerprint / face recognition and save in employee database for example to verify and authenticate, for example login with face recognition or fingerprint time attendance
developer9969 commented 5 years ago

Hi This will be a fantastic feature!! We are stuck with plugins out there that are not longer been supported and do not work when coming from the background. Basically there is not a single xamarin forms plugin that works properly including https://github.com/smstuebe/xamarin-fingerprint

Please give us the basic Biometrics for android/iOS first and build it up as you go along.

All the features other people mentioned are great but not if they have to delay the functionality for ages!!!

Great work!!!

alan-araya commented 5 years ago

I agree with @developer9969 the only alternative to this is xamarim-fingerprint. Would be very nice to have this feature on Xamarim.Essentials as Fingerprint is a very common thing this days.

DeerSteak commented 5 years ago

xamarin-fingerprint is pretty broken right now. It's throwing exceptions on any device running Android 9 and any non-Samsung device running Android 8 or lower. A Java.Lang.Exception that indicates the device connected isn't a Samsung device. Even wrapping the Xamarin.Forms code in a try/catch block doesn't prevent crashes.

Lydecker commented 5 years ago

I 100% agree, that this now an 'Essential' feature for most apps today... Would be great to see this implemented please!

developer9969 commented 5 years ago

@Redth @jamesmontemagno and all the contributors THANK YOU very much for giving us Xamarin essentials. Not sure where this issue lives in the order of priority but I would really much appreciate if there is a realistic chance of being worked in the immediate future. Is this is not the case is there any chance for any of the xamarin android team to publish some guidance and advises on how to write a biometric api that uses the supported android api and I will give it a go myself.

As you guys know for sure if you write any sort of business app biometric key is a MUST. iOS is pretty straightforward in my eyes but Android is not.

many thanks

anotherlab commented 5 years ago

I would like to see this in Essentials. It makes sense to expose something intrinsically hardware related to Essentials. It looks like work on xamarin-fingerprint has stalled.

ndastur commented 5 years ago

@jamesmontemagno can I ask if there are any plans to make this part of XE. And possibly if there is a timeline?

Redth commented 5 years ago

We do want to add this, but I think it’s safe to assume we will wait until Essentials depends directly on AndroidX and we can use the new biometric AndroidX library.

developer9969 commented 5 years ago

@Redth great any timeline about the androidx dependency

smstuebe commented 5 years ago

I've already done that and released a pre release package with AndroidX. Unfortunately the priorities of MS for supporting AndroidX stable, are not that high :( So I had to create the binding on my own.

https://www.nuget.org/packages/Plugin.Fingerprint/2.0.0-alpha.2

Feel free to test and give feedback: https://github.com/smstuebe/xamarin-fingerprint/issues/151

ernestoyaquello commented 4 years ago

Are there any news about this?

Mikilll94 commented 4 years ago

Any update on this?

AndreiZachi commented 3 years ago

UP

chaoyebugao commented 2 years ago

Any progress?

jfversluis commented 1 year ago

I think at this point it's safe to say that this won't be making it's way into Xamarin.Essentials anymore. Keep your eye on .NET MAUI for all new development! Thanks for all input and efforts here.