mCodex / react-native-sensitive-info

Save sensitive data into Android's Shared Preferences with keystore encryption/iOS's Keychain for React Native
https://mcodex.dev/react-native-sensitive-info/
MIT License
979 stars 216 forks source link

android fingerprint native model is not showing #241

Open AahilShahzad opened 3 years ago

AahilShahzad commented 3 years ago

I'm using there versions ->

"react": "16.13.1", "react-native": "0.63.3", "react-native-sensitive-info": "^6.0.0-alpha.6",

let secureKeys = await SInfo.getItem('test', { sharedPreferencesName: 'mySharedPrefs', keychainService: 'myKeychain', touchID: true, showModal: true, //required (Android) - Will prompt user's fingerprint on Android strings: { // optional (Android) - You can personalize your prompt header: 'Sign in', description: 'Place finger to authenticate', hint: 'Touch', success: 'Fingerprint recognized', notRecognized: 'Fingerprint not recognized, try again', cancel: 'Cancel', cancelled: 'Authentication was cancelled', // reject error message }, kSecUseOperationPrompt: // required (iOS) - A fallback string for iOS 'We need your permission to retrieve encrypted data', }); having issue in screenshot

Screenshot_20201027-141200

please help...

AahilShahzad commented 3 years ago

anyone can help please

owenadley commented 2 years ago

@AahilShahzad did you figure this out?

jganczorz-revolve commented 1 year ago

As far as I can tell, you need to set touchId: true, showModal: true with setItem as well.