flutter_secure_storage icon indicating copy to clipboard operation
flutter_secure_storage copied to clipboard

Keychain data on iOS gets deleted after some time

Open ilyosbekkk opened this issue 2 years ago • 7 comments
trafficstars

Hi, thank you for that amazing package! I am having a strange issue in my app, I store all tokens in secure storage in my Flutter app and it's working perfectly for most of the users but one of my users didn't use the app actively for weeks (or even a month) and app was either in background or terminated state. Today he opened the app and noticed that all requests to the server didn't work. We found out that when we try to get the token from secure storage it returns null. What might be the reason for this? Does the iOS delete the data from Keychain if it's not active for some time? Thank you for that answer in advance:)

ilyosbekkk avatar Aug 10 '23 14:08 ilyosbekkk

Hello Any update about this issue ? We have the same problem by us. Does somebody fixed it ? ty

Fellerson avatar Sep 12 '23 10:09 Fellerson

Hi We have the same problem. Does soomebody fixed it ? Thank you

OneOFFER avatar Sep 27 '23 06:09 OneOFFER

Hi, It looks that nobody fixed it. We tried to reach them by mail unsuccessfully.

Fellerson avatar Sep 27 '23 09:09 Fellerson

Same here

KanybekMomukeyev avatar Nov 14 '23 05:11 KanybekMomukeyev

same here :)

roncakjakub avatar Dec 30 '23 12:12 roncakjakub

see the code in develop re: cupertinoProtected data availability from above mr

neiljaywarner avatar Feb 20 '24 22:02 neiljaywarner

Is there any fix? This makes the all plugin unusable in production

g-apparence avatar May 19 '24 11:05 g-apparence

I am closing all older issues. If this issue still exists in the latest version, please let me know.

juliansteenbakker avatar Aug 13 '24 20:08 juliansteenbakker

Some extra information for this issue, there is a known issue in version 9.1.0 which causes data to be inaccessible due to wrong read parameters. This will be fixed in the upcoming release.

juliansteenbakker avatar Aug 13 '24 20:08 juliansteenbakker