iCloud Sync
N
Nick
In an app with no user authentication, data is stored in a sqlite db or AsyncStorage on their device. But, some users still want to sync their data between devices. With no authentication flow, data is not uploaded to a database or anything of the sort, so it is not able to be retrieved by multiple devices. In iOS, you are able to use iCloud to sync data between devices that are logged into the same iCloud account. As of now, expo does not support iCloud sync.
react-native-icloud-sync
seems to do just this, but in order to use iCloud sync you would have to eject from Expo as it requires native module linking.
Note* The library does not seem to be maintained, so a new library may be the way to go.
Maximilian Krause
While this would be great to have as an Expo module out of the box, we have just released a library that does exactly this and includes an Expo config plugin so it can be used with Expo managed workflow (development client / EAS required). It also supports Google Drive in addition to iCloud.
It's still pretty sparse (we've implemented the features we were looking for ourselves in an app project) but we're open to feature requests.
https://github.com/Kuatsu/react-native-cloud-storage
Fred Rivett
I also have this use case, an on device local store of data wanting to sync to iCloud. This is primarily as a backup of sorts, in case data gets corrupted on the local device. But it would also be handy for sharing data if I build a MacOS app down the line.
The primary benefit here of using iCloud over maintaining my own backend setup is for user privacy, meaning I never have access to their data at all. Backing up data to iCloud seems a common desire for an iOS app and so I'd love to see this worked on.