SQLite DB synchronization


#1

Hello,

I am an Angular developer and I am currently working on a Nativescript / Angular / iOS application which uses a sqlite Database.
My application contains a pre-filled db. I would like to sync this db from a remote server.

[EDIT : Let’s say the iOS application is in background. Somewhere on server, the database has just been updated. I would like to tell the application to update its own db.]

Is this possible ? Which would be a good way to achieve SQLite database synchronization ?

Thanks for your help.


#2

It should be straight forward, fetch data through APIs and update your local db accordingly.


#3

Thx for your reply.

I completely forgot to mention I would like synchronization comes from server.
Let’s say the iOS application is in background. Somewhere on server, the database has just been updated. I would like to tell the application to update its own db.


#4

You may try the background fetch plugin.