Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter Syncing LocalDB With RemoteDB

I have data stored locally in sqlite. I have a remote MySql server. In android I could setup SyncAdapter to handle the syncing between the localdb and the remotedb.

When a record is saved locally and there is an internet connection it should push the data to the server in the background. It should also periodically update the data stored in SqLite.

Now I'm trying to find the equivalent of SyncAdapter in flutter to do this but I can't seem to find one. How would I implement this functionality in flutter without having to use firebase?

like image 601
user3718908x100 Avatar asked Sep 15 '19 10:09

user3718908x100


1 Answers

You can use realm-db for it. You can't sync local-db to remote easily. But everything is so easy with realm-db

like image 63
secret Avatar answered Nov 09 '22 09:11

secret