Open anjananoup opened 4 years ago
I am having the same issue.
For just one of our clients (around 2000), KeychainWrapper.standard.string(...
always returns nil
. It is working fine for all other clients.
Hi @jrendel , Can you please help with this context as we are also facing this issue with one of our users.
I think it's the reason https://developer.apple.com/documentation/uikit/uiapplication/1622925-isprotecteddataavailable
You should check isprotecteddataavailable
before access keychain, if it is false, you will get nil value.
I am using SwiftKeychainWrapper in my project. It's working most of the time without any issue. But in very few cases My app is unable to access KeyChain. And after that, no matter what, user restarting app, keyChain is always return
nil
.Pod version:
3.4.0
Implementation logic: On app very first launch (Fresh Install case) (Not update or upgrade case), I remove old keyChain Data Using:
KeychainWrapper.standard.removeAllKeys()
, thus my app can generate new value and use them. And other cases I always usesKeychainWrapper.standard.set(....
&&KeychainWrapper.standard.string(....
apis to get and set values for my app.Is there any issue for accessing
KeychainWrapper.standard
just after removing All old values? Or this is some king of bug?