Skip to content
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

How to Implement iCloud Sync to Keep Reinstalled Apps to Recover Data? #673

Closed
wdk956093628 opened this issue May 2, 2024 · 3 comments

Comments

@wdk956093628
Copy link

wdk956093628 commented May 2, 2024

I'm using 'react-native-mmkv' and 'redux-persist', when closing the app and reopening it the data is still there, but when the app is uninstalled and reinstalled the data is lost!

I don't know how to keep icloud synchronized, is there a configuration item for that? Or is it not supported by the library?

@realPrimoh
Copy link

That needs a custom implementation that's probably not in scope for this library.

@mrousavy
Copy link
Owner

Yep agreed- I also don't think that MMKV should persist data when the user explicitly uninstalls the app.

MMKV stores data in $(Documents) directory, so you can just back that up to iCloud if you want.

@wdk956093628
Copy link
Author

Is it possible to do this by configuring MMKV's path,
I read this Tencent/MMKV#107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants