What is the easiest way to maintain database synchronization between multiple iOS and Android devices?

For our mobile application, we hoped to use the Realm.io database, but we need to be able to synchronize several devices so that they always have the same information. The database could be several megabytes of data, so we would like to make sure that we did not need to download the entire database every time something changed, and then reloaded onto all other devices. Ideally, we would also like to make sure that no other transaction with the server occurs on the device until its database is updated.

+8
android ios data-synchronization realm
source share
3 answers

This is currently not possible using Realm, although I believe it is on the roadmap. Thus, you will have to minimize your own synchronization using the REST API or similar.

The only database for mobile devices that currently supports something like this that I know of is CouchDB Light http://developer.couchbase.com/mobile/ , but I have no experience with it.

+10
source share

Another option is to create an account with Parse

You can write to Parse every time you record a database in Realm.

Parse also supports silent push notifications, so when a device writes data to Parse, it can send a silent push notification to update Realm data models on other devices.

Parse supports many login methods, such as Facebook, Twitter and email / password, which makes it easy to authenticate the user.

+3
source share

they just released a new toolkit for this.

Today, the Realm Mobile Platform was launched, a new offering that integrates our fully open (see below!) Client database for iOS and Android with new server technology that provides real-time synchronization, conflict resolution and reactive event processing. The new platform allows mobile application developers to create applications with hard-to-reach features, such as real-time interaction, messaging, offline first experience, and more.

read here: https://realm.io/news/introducing-realm-mobile-platform/

+2
source share

All Articles