Has any one had any success syncing data within a Corvoda app (i.e. IndexedDB and LocalStorage)?
I haven’t tried anything yet, am just looking to see if it is possible and if anyone has done it already?
Looking to sync/backup data via the native icloud (iOS), and Android.
As an example, a user on an iPhone can use the app on their iPhone, and continue with it later on their iPad. Same goes for Android.
Hello,
Never tried with a Native/VoltBuilder app, but having a CouchDB server and PouchDB library in your app will give you seamless data replication (tested with PWA).
PouchDB sits on top of IndexedDB and is compatible with CouchDB. As longs as the app points to the same DB instance, bidirectional replication is configured, and all devices are online. Whatever you change in one instance gets almost instantly replicated to all other instances (using the CouchDB server as central point).
This is a fairly common approach for offilne-first apps, as you can make your app to work offline with local data and it will replicate as soon as it gets connected.
Kind regards
Ricardo Carraretto
Thank you for the info.
I assume I’ll have to host my own CouchDB server and also create a user log-in for the app?
Yes, but it is very simple to set it up. Mine runs as a cluster, behind a HAProxy Load Balancer.