-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: Error: Fingerprint operation canceled, iOS no response #232
Comments
@JeffreyLeeDave have you added Android permissions into your AndroidManifest.xml: <uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" /> and recompiled your Android project? |
Yea I did. I actually already had this in my |
Do you have any fingerprint enrolled in your Android emulator? (if you are using emulator) 🤔 |
Yea fingerprint is enrolled. I confirmed this because |
I was debugging here using the example project inside RNSInfo's repo. Can you please change your setItem function as follows: const setData = await SInfo.setItem('key1', 'secretStuff', {
sharedPreferencesName: 'mySharedPrefs',
keychainService: 'myKeychain',
showModal: true, // required (Android) - Will prompt user's fingerprint on Android
touchID: true, // add this key
kSecAccessControl: 'kSecAccessControlBiometryAny',
}); I've just added The docs should be also updated |
I wanted to add that after doing some more digging around, if I do
I also tried to store it without the keychainService and I added this into the array as well:
In addition, EDIT: EDIT 2: I just wanted to point out this block of stuff I just mentioned was in regards to iOS. I am going to update my original post to enumerate the issues so it's clear there are two things going on |
Ok adding
|
Out of curiosity, were you able to fix this on the android emulator by having this in a |
Using the same useEffect you provided iOS (Tested on Iphone 11 emulator)Probably a bug, using your sample code the data couldn't be retrieved. It always return "undefined". However, I was able to accomplish that removing the Created a dedicated issue here #233 |
Ok well it's good to know that at least we are on the same page in regards to the iOS simulator, but I am still having the same issue on Android. Adding the
This renders, but does nothing. If I uncomment |
I would also like to add I tested this on an actual device, Pixel 3XL, today and it still crashes for me |
Update, I am using version |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello guys, this library still maintained? |
I keep getting this
Error: Fingerprint operation canceled.
. It happens on theSInfo.setItem
because I do seestart
getting logged. I kinda just followed what it says on the docs. I can't see why it doesn't work. This only happens on Android.On iOS I see the biometrics prompt, but I get nothing from
SInfo.getItem
The text was updated successfully, but these errors were encountered: