Comments (13)
You have to install the package to your PCL and your App projects XYZ.Android, XYZ.iOS, etc.
Right Click Solution -> Manage NuGet Packages for Solution -> Select FP plugin -> Check all neccessary Projects -> install
from xamarin-fingerprint.
@smstuebe - We have installed FP plugin from nuget in to our PCL and also in our Android & iOS project. But still we could not solve this issue.
Considering Android, We are targetting API 23 with Marshmallow 6.0. When we set this configuration, by default our MainActivity.cs implements FormsAppCompatActivity.
public class MainActivity : FormsAppCompatActivity
When we navigate to same file in your sample, we could see as below which implements FormsApplicationActivity but not FormsAppCompatActivity
public class MainActivity : FormsApplicationActivity
Which is not allowing us to initialize your plugin, Even if we do so by replacing the implementation, it throws false everytime. Can you please help us ?
from xamarin-fingerprint.
Have you called CrossFingerprint.SetCurrentActivityResolver
as described in the setup docs? https://github.com/smstuebe/xamarin-fingerprint#android
from xamarin-fingerprint.
We tried using your plugin, now with out any errors am able to debug using Android Virtual Devices (Nexus 5).
Followed your steps in setting up FingerPrint using Android Virtual Device - Extended Controls and it shows to me that "You have added 2 Fingerprints to the device".
Now when i debug, its always returning result.Authenticated = false.
We even tried to setup finger touch 1 as explained, but in Telnet after keying in emulator ID, it's not allowing us to enter commands other than avd, auth, help and exit/quit.
Due to which i had setup the finger1 and finger2 using AVD - Extended controls.
Also, DialogControl is creating problems, means in Portable library it says "DialogConfiguration" could not be found. (We have added Plugin.Fingerprint from Nuget, but still this error is coming up)
Mostly, issue of returning false is highlighted. It would be good, if we get
help on this 👍
Thanks in Advance :)
from xamarin-fingerprint.
Hmm I can't really help you any further with your simulator setup.
Have you tested it with a real device?
Which version have you installed? Stable or beta?
from xamarin-fingerprint.
No, we haven't got chance to test this yet in real device, we might be doing that tomorrow. :(
I have installed stable version 1.2.0 using Nuget.
from xamarin-fingerprint.
Ok. Setting up the simulators is always a bit tricky. Which emulator are you using? The new Android simulator doesn't require the telnet action and provides a UI for it.
from xamarin-fingerprint.
I am using Android Virtual Device (AVD) i.e., Android SDK Emulator with Visual Studio. I have configured Nexus 5 API 23 (but not Nexus 5X).
Also, added fingerprint as shown in the picture, but still when i click on Authenticate, it gives me false.
Am getting Not Available status on my Page.
from xamarin-fingerprint.
The only reason I could imagine is that the OS is returning false for IsHardwareDetected
, because the Nexus 5 doesn't have a FP Sensor. Could you try it with a 5X?
Nevertheless: This shows me, that I should make the plugin more chatty using some log output.
from xamarin-fingerprint.
@sairamb87 The "Touch Sensor" UI function has never worked for me.
I've been using the telnet commands with no problem.
from xamarin-fingerprint.
@ronpf - Can you please help us with step by step of using telnet commands, we tried telnet before trying it in UI, but hard luck. Both the cases, it didn't work.
Thanks in advance.
from xamarin-fingerprint.
Have you tried it with a Nexus 5X image?
from xamarin-fingerprint.
- This information is if you're using a mac
- Must be using a sim with API 23 (or 24) with finger print auth configured on the sim.
- See this about getting your sims auth-token etc
http://stackoverflow.com/questions/37442566/android-console-authentication-required/37503734
Once you have that info open an Tools | SDK Command Prompt from via xamarin studio.
a) Enter command:
telnet 127.0.0.1 5554 (or your correct host / port. use command 'adb devices' to find connect sims or devices)
b) Enter command: auth [your auth token] .
c) If everything is good you will see 'OK'
d) open your app and it's fingerprint dialog
e) enter command: finger touch 1
This should trigger a successful result.
Here's output from my SDK Command prompt:
HPSJ-iMac:android-sdk-mac_x86 rfreschi$ telnet 127.0.0.1 5554
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Android Console: Authentication required
Android Console: type 'auth <auth_token>' to authenticate
Android Console: you can find your <auth_token> in
'/Users/rfreschi/.emulator_console_auth_token'
OK
auth [myauthtoken]
Android Console: type 'help' for a list of commands
OK
finger touch 1
OK
from xamarin-fingerprint.
Related Issues (20)
- Authenticate in WebAPI HOT 1
- How do you use biometric sensors? HOT 4
- Crash with 2.1.5 in UWP on checking availability, same code works with 2.1.5 on Android, and on all platforms with 2.1.4 HOT 4
- The Authenticate request fails with "UnknownError" if the app is completely unloaded on iOS HOT 2
- iOS crashes when AuthenticationRequestConfiguration reason is empty string. HOT 1
- CA1416 analyzer errors (This call site is reachable on...) for .NET MAUI version HOT 5
- 'CrossFingerprint' does not contain a definition for 'SetCurrentActivityResolver' HOT 1
- Plugin version 2.1.5 on Windows UWP reports "This functionality is not implemented in the portable version of this assembly" HOT 4
- Android Implementation allow to bypass the security HOT 7
- Facelock is not working for android HOT 7
- "Try Face ID Again" does nothing on click. HOT 1
- App hangs under iOS 16 Beta at startup HOT 1
- Allow possibility to disable face unlock on Android HOT 7
- Bitcode issue in the plugin when we submit to App Store. HOT 1
- LAStatus.SystemCancel does not return FingerprintAuthenticationResultStatus.Canceled HOT 2
- Failed resolution of: Landroidx/lifecycle/ViewModelProvider$KeyedFactory; HOT 2
- iOS vulnerable to biometric bypass via "objection" HOT 3
- App becomes unresponsive when using plugin.fingerprint on net8-pre5 HOT 3
- Enter code Error: Fallback authentication - MAUI iOS HOT 1
- Release Package & Activity HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin-fingerprint.