jrendel / SwiftKeychainWrapper

A simple wrapper for the iOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift.
MIT License
1.59k stars 339 forks source link

Accessibility is not working #162

Open somihennahyu opened 3 years ago

somihennahyu commented 3 years ago

Hello, I am not sure if I am missing anything here but I attempted to store and get my value in Keychain while the phone is locked. I did so through calling of the push registry(Push Kit) then setting it . I set it as follows : KeychainWrapper.standard.set(object, forKey: key, withAccessibility: .always)

However, when I tried to retrieve it, it will always come out as nil. I suspect that this has something to do with PushKit.

iceboxi commented 3 years ago

.always is deprecated after iOS 12, I think it is the reason.

LeoSnek commented 3 years ago

I have just found that when using .always in conjunction with a shared keychain the items in the keychain are not actually removed when you call to remove them.