Coder Social home page Coder Social logo

Comments (13)

smstuebe avatar smstuebe commented on August 11, 2024

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.

sairamb87 avatar sairamb87 commented on August 11, 2024

@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.

smstuebe avatar smstuebe commented on August 11, 2024

Have you called CrossFingerprint.SetCurrentActivityResolver as described in the setup docs? https://github.com/smstuebe/xamarin-fingerprint#android

from xamarin-fingerprint.

sairamb87 avatar sairamb87 commented on August 11, 2024

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
fingerprint_error
help on this 👍

Thanks in Advance :)

from xamarin-fingerprint.

smstuebe avatar smstuebe commented on August 11, 2024

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.

sairamb87 avatar sairamb87 commented on August 11, 2024

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.

smstuebe avatar smstuebe commented on August 11, 2024

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.

image

from xamarin-fingerprint.

sairamb87 avatar sairamb87 commented on August 11, 2024

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.
fp1

Am getting Not Available status on my Page.

fp2

from xamarin-fingerprint.

smstuebe avatar smstuebe commented on August 11, 2024

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.

ronpf avatar ronpf commented on August 11, 2024

@sairamb87 The "Touch Sensor" UI function has never worked for me.
I've been using the telnet commands with no problem.

from xamarin-fingerprint.

sairamb87 avatar sairamb87 commented on August 11, 2024

@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.

smstuebe avatar smstuebe commented on August 11, 2024

Have you tried it with a Nexus 5X image?

from xamarin-fingerprint.

ronpf avatar ronpf commented on August 11, 2024

@sairamb87

  1. This information is if you're using a mac
  2. Must be using a sim with API 23 (or 24) with finger print auth configured on the sim.
  3. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.