cordova-plugin-ios-keychain icon indicating copy to clipboard operation
cordova-plugin-ios-keychain copied to clipboard

Error [NSNull dataUsingEncoding:]: unrecognized selector sent to instance

Open WuglyakBolgoink opened this issue 5 years ago • 6 comments

Hallo guys,

has anyone this problem too?

https://github.com/EddyVerbruggen/cordova-plugin-touch-id/issues/95

i was set breakpoints into all possible positions and I found only one which brings me to this plugin back )

image

WuglyakBolgoink avatar Jun 25 '20 12:06 WuglyakBolgoink

I have the exact same problem :/

cyril-colin avatar Jul 27 '20 15:07 cyril-colin

@cyril-colin but only in latest ios version?

WuglyakBolgoink avatar Jul 28 '20 08:07 WuglyakBolgoink

this is my simulator config : (Sorry, I am totally new with apple universe...) Capture d’écran 2020-07-28 à 11 06 05

I had this problem when I enable Keychain sharing... but after I updated keychain groups I have not this error anymore. I don't understand what kind of sorcery make it works...

cyril-colin avatar Jul 28 '20 09:07 cyril-colin

Hey, I was able to solve this issue by sending the third parameter for the 'set' function useTouchId to = false.

Turns out to be not optional hehe

carlosrecinos avatar Jul 09 '21 13:07 carlosrecinos

hm....

WuglyakBolgoink avatar Jul 12 '21 21:07 WuglyakBolgoink

Hey, a bit of an old issue but in case someone else may find this helpful. I was getting this exact error and my mistake was sending the value as an object, and it needs to be a string, so sending it with JSON.stringify() solved the issue. var useTouchID = true; Keychain.set('token', JSON.stringify({ access_token: access_token, refresh_token: refresh_token }), useTouchID) .catch(err => console.error('Error SETTING KEYCHAIN ', err));

Juanka777 avatar Jun 21 '22 10:06 Juanka777