react-native-touch-id icon indicating copy to clipboard operation
react-native-touch-id copied to clipboard

[Android]: TouchID not supported when testing on a device with fingerprint

Open e55o opened this issue 5 years ago • 11 comments

i am using:

    "react": "16.8.0",
    "react-native": "^0.59.3",

TouchID.isSupported() is always failing. I tried it on Samsung S8 and Huawei P10, both have fingerprint capabilities

e55o avatar May 14 '19 10:05 e55o

They have fingerprints inserted in the cellphone database?

lincolnbf avatar May 14 '19 17:05 lincolnbf

sure they have

e55o avatar May 18 '19 15:05 e55o

In my case, android devices returns 'true' if they have support. iOS returns 'TouchID' or 'FaceID'. I did an workaround to make it work properly checking this things. I don't know if it's the case of you.

lincolnbf avatar May 20 '19 11:05 lincolnbf

Any solution?

univalchemist avatar May 31 '19 13:05 univalchemist

@ligwang my answer above shows the solution... android returns true or false, ios returns TouchID or FaceID as literal strings... you just have to work with this returns.

lincolnbf avatar Jun 02 '19 13:06 lincolnbf

In TouchID.isSupported(). I have got the touch id error always. image

ghost avatar Sep 10 '19 13:09 ghost

image

ghost avatar Sep 10 '19 13:09 ghost

Could you give me the solution?

ghost avatar Sep 10 '19 13:09 ghost

@ligwang my answer above shows the solution... android returns true or false, ios returns TouchID or FaceID as literal strings... you just have to work with this returns.

As I do some work when TouchID is supported and other work when FaceID is supported. How am I supposed to differentiate between two of them if isSupported() always returns true rather than literal strings.

Hamza-Khurshid avatar Dec 06 '19 21:12 Hamza-Khurshid

@ligwang my answer above shows the solution... android returns true or false, ios returns TouchID or FaceID as literal strings... you just have to work with this returns.

As I do some work when TouchID is supported and other work when FaceID is supported. How am I supposed to differentiate between two of them if isSupported() always returns true rather than literal strings.

I don't know if the lib have a method to separate FaceID from TouchID. If you figure out to do this somehow, please comment the solution. Anyway, i don't know if there is another lib that can do a better implementation of fingerprint support...

lincolnbf avatar Dec 09 '19 11:12 lincolnbf

Hi.I use react-native 0.60 my mobile is Samsung Galaxy S5. when I use isSupported of react-native-touch-id it returns NOT_PRESENT. I search and found this stackoverflow question https://stackoverflow.com/questions/37935959/android-m-fingerprintmanager-ishardwaredetected-returns-false-on-a-samsung-gal. could you please solve this problem?

samaneh-kamalian avatar Dec 12 '19 16:12 samaneh-kamalian