flutter_secure_storage
flutter_secure_storage copied to clipboard
Weird issue where for iOS only
There is an issue where the top line of a storeAndOverwrite function is saved and able to be read when the app is running. But on restart of the app the top line that was written could not be found at all. This happens only on IOS and to fix this I Have added a future delay for now. So in this example without a delay the biometric preference would read while the app is running and its just been saved but on restart it would not show but all the other keys and values would be.
Future
I have updated with new IOS versions, after that I had got same issue, String type data is not get stored. but its working fine in android, even in IOS debug mode not working in release mode.
Any idea whats going wrong..!
I am having the same issue with 9.0.0. Took me forever to track down that this plugin was the problem. Issue only occurs in iOS release builds. Nowhere else.
After digging in a bit deeper, I found that this was caused by doing a read immediately after doing a write. We weren't fully awaiting the save, so only part of the value made it in to secure storage before we pulled it out.
I'm not saying that's everyone's problem, but it's something to check for those that stumble on this thread in the future.
so @MatthewJones517 , have you solve it ??
Is the problem still relevant?
any update on this?
Version 9.2.1 fixed a race condition issue with read/write, which could be this issue. It would be great if someone can check if this version still has this issue.
I am closing all older issues. If this issue still exists in the latest version, please let me know.