-
Notifications
You must be signed in to change notification settings - Fork 473
Async Storage automatically cleared on iOS #257
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
Comments
@dylancompanjen This looks like an issue that has been reported few times for iOS. It seems like using both Community AsyncStorage and the one from core. You can read my comment regarding here. |
@krizzu I'm only using the Community AsyncStorage. Some folks said this happened after restarting their iPhone. |
@dylancompanjen Sure, but it can happen that one (or more) of your dependencies uses Core's |
@krizzu can't find a dependency that uses AsyncStorage in my node_modules. |
@dylancompanjen Hmm, that's odd then. And only happens on phone restart? Did you mange to repro this? |
@krizzu No, not necessarily on phone restart. Still getting reports from new users but I'm not sure how to repro it... |
I'm not sure if this should be closed. Have this happening for me as well and looks like it may be the same issue on 2.0 where the log just randomly says "deleting store" without it being requested. |
@codecog You're talking about the logger from v2? |
Any updates? I have users reporting the same, users are losing their data stored with AsyncStorage when they restart the application. This only happens on iOS. Repro stepsI was able to reproduce something similar EnvironmentAsync Storage version: ^1.15.5 |
Issue still persist with the latest version of the library on ios 15.3.1 and 15.4 |
Issue still perists. I've met this issue while using the library in a managed expo project. From what I experienced, it could be related to some under the hood racing issue. One kind-of-ish way to reproduce for me was to rapidly reload the app while using the expo dev server. This often caused the data to be lost. |
i am facing the same issue on android |
Current behavior
I'm having multiple users report that they lost their app data (which is currently stored with AsyncStorage).
Somewhere I read that this could be due to saving too large stringified data under 1 key.
I used to save a whole redux store to 1 key in order to persist data but now I grouped data into separate keys. Still I'm having users report that they lose data after a while, so it doesn't seem related to a max string limit.
Is this related to some iOS behavior that auto clears up async storage?
Expected behavior
I expect that all data persists and doesn't get erased automatically.
Repro steps
It happens in some cases so it's hard to define the exact repro steps.
Environment
The text was updated successfully, but these errors were encountered: