Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android's realm.io how to sync with server side MySQL DB

Tags:

android

realm

I am working on an Android app using realm db as my local db, how do I sync my records in realm with my server side MySQL db?

like image 448
max Avatar asked Jun 19 '16 01:06

max


People also ask

What is Realm Nosql database in Android?

Realm Database is a service which is provided by MongoDb which is used to store data in users device locally. With the help of this data can be stored easily in users' devices and can be accessed easily. We can use this database to store data in the user's device itself.


1 Answers

Update from 27 Septermber 2016:

Realm now fully supports synchronizing data against Realm Object Server. More details are available here.

19 June 2016

There is no such way - the Realm doesn't have such mechanisms, and it is logical. You mix different approaches - syncing data and storing locally (the mission of Realm, SQLite and other Android mobile DBs). You can do it by your own custom implementation (like in the tutorial), or using by SyncAdapter.

like image 122
Alex Avatar answered Sep 22 '22 21:09

Alex