react-native-sqlite-storage icon indicating copy to clipboard operation
react-native-sqlite-storage copied to clipboard

iCloud sync - when does sync happen?

Open bumpingChris opened this issue 11 months ago • 0 comments

Hi, Thanks for maintaining this library!

I have a question regarding iCloud sync. I'm relatively new to cloud syncing so please forgive any basic questions.

  1. If I've setup the database in the "Documents" location (and set up the icloud permissions in pinfo.list and xcode), does the database file reside in my app's sandbox documents directory or the iCloud container documents directory?

  2. And if later I either deleted the app and reinstalled it or installed the app in a new phone, does the old database automatically sync to the new install? Or do I need to write some code to check if the database exists in the cloud before opening it?

  3. What if some the database were updated in another device connected to the cloud. Would it update all databases using the cloud?

Thanks for your help

bumpingChris avatar Nov 19 '24 05:11 bumpingChris