-
Notifications
You must be signed in to change notification settings - Fork 345
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
Keychain retain a nil after long time in background #15
Comments
Hi, this is a very serious Keychain problem, thanks for raising this up. I
noticed it myself many times in the past. Keychain sometimes returns an
error when I try to retrieve a value from it. There are many people
struggling with issues that may be related to your problem. I do not have a
solution, unfortunately.
https://forums.developer.apple.com/thread/4743
kishikawakatsumi/UICKeyChainStore#20
soffes/SAMKeychain#75
|
Thanks :) |
@GuyKahlon I am facing the exactly same thing with UICKeyChainStore library. |
Anybody find a fix for this? I am having identical issue. |
Hi there, AFAIK the problem is it takes time to decrypt the key chain. If you have your AccessOption set to |
I can confirm this occurs no matter what the access level is. We have 1.5-2mil background wakeup events a day. Of those, ~5% of users who do have a user fingerprint stored in their keychain will get a nil value. |
@RamblinWreck77, that's good to know. We can discuss your background access problems in #78. |
Hi, I'm facing this problem, after many hours of inactivity, when I open the application, my manager fails to retrieve the refreshToekn from the keychain and the user is redirected at the login page. Any tip? |
Is your manager called from AppDelegate? |
Nop, not always is called from the appDelegate. And this is very hard to debug so I think I will move to realm encrypted |
Possible unconfirmed workaround is here. |
I am also having issues now. It's really intermittent and I can't reproduce it. Some users have the issues, some don't. I am gonna add extra logging to see if I can manage to capture where it's happening. I've also streamlined the saving of the keychain so that I don't have multiple calls to it in succession. with regard to the possible solution - #78 (comment) This seems to only to do when a notification is received right? My App is basically updating some in-game-currency to the keychain every 60s and doesn't receive any notifications |
@app4g Facing the same issue. Do you have any findings to share from the additional logging? |
@sincychacko-frollo What I essentially did was to make sure only 1 instance of command to update the keychain is done at any one time and some caching of the data into memory. After multiple iterations, I think It's resolved. sorry.I can't offer any help beyond that. |
Hi,
I have a serious inconsistent problem when the app long time in the background.
In my app I save the user finger print in the keychain, when the app launch (at didFinishLaunchingWithOptions funk) I check if the is a finger print saved in the keychain, if there isn't finger print saved in the keychain I replace my Main story board with the Register storyboard.
Note: I also save a flag in the NSUserDefault to check if this is a first launch in order to reset (clear all the data) the keychain if it's a first launch.
The problem is, after a long time in the background (sometimes not all the time) when I open the app the Register Storyboard appear. Means the app terminates by the OS in the background and there isn't finger print in the keychain.
In the beginning I thought the finger print was removed from the keychain, but, if I terminate mentally the app and open it again, everything is good and the main story board appears as expected.
Note:
The fingerprint is a String and I saved it in the keychain without any Access key.
Any idea?
Thanks
The text was updated successfully, but these errors were encountered: