-
Notifications
You must be signed in to change notification settings - Fork 466
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
Document backup behaviour #249
Comments
Good idea. On iOS, AsyncStorage saves the data to the file, that's accessible for user to look into. There's a feature request that allows you to change the default save location. We'd have to keep this in mind if we were to write docs about it. |
I would really appreciate that! Is there any information already somewhere how to properly backup and restore AsyncStorage data? |
Here are Android docs regarding auto backup (Android 23+). Haven't tested it against AsyncStorage though. |
Android:
IOS:
|
@mo22 |
I don't think there's an built-in way. You could use https://github.com/mo22/react-native-mo-fs and manually set the backup attribute for the storage directory.
|
@nishantpillai5 |
We'll in the latest version one by default opts out of backups. However I'm wondering how everyone else managed to get app data backed up in the first place? I've tried with 0.13 and pre 0.13 releases - our app data never gets saved in the cloud. Do I need to enable some capabilities? We use redux and redux-persist and redux-persist stores the data using async storage. I've downloaded the appData from the phone and I can see that the async files are stored inside of the Docs folder. So I don't understand how everyone else managed to back up the data in the cloud and I didn't :) |
Devs were raising concern that might be the happening in some cases for their users. I could not repro this myself, but went ahead and added a this as a feature toggle, off by default. Here is the documentation about it |
@krizzu - I saw those docs. I was actually asking - how do you force AsyncStorage to store the data in iCloud? We've set the |
It’s worth noting that this is different than storing the value in iCloud storage. This is related to storing the data in an iCloud backup, which comes back when you restore the phone (which was the original problem). My initial thought when reading the docs was that this data would save/sync to iCloud (which would be available in other devices). I was confused for a good bit, so I figured I’d share. 😄 I don’t necessarily think any change needs to be made to the docs, but if it’s easy and others have similar confusion, it might be nice to add a note. 💭 |
Hello - I uninstalled my app on iPhone and there is backup file saved on iCloud. How can I restore the data after I reinstall the app? |
I think the docs could be more clear on this part. I also thought that data is actually synced via iCloud between devices. Seems like this is not the case. |
|
Motivation
Hi, it would be nice if you could update the documentation to include information about whether AsyncStorage data is stored and restored in iCloud and android backups, and what configuration steps might be necessary for this (i.e. android manifest android:fullBackupContent etc.)
Description
see Motivation
The text was updated successfully, but these errors were encountered: