Synchronize SQLite database with mysql remote data in android

How to synchronize SQLite database and remote MySQL data in android? To be clear, I want to know how synchronization between sqlite and remote mysql data works ... i.e. When the mySQL remote database is updated, should SQLite data also be updated without clicking a button or scrolling down? How can I implement this using Android Studio and Wamp server? Thanks in advance!

+4
source share
1 answer

I don't know how to mirror your mysql database in your android android database. There are two ways that I can think of when it comes to syncing data on your phone. The first is using the sync channel. But it will only pull data from the server and therefore you will not have your synchronization as soon as the update is done.

- push-. FCM, Firebase GCM, Google, . . , , - API .

FCM, Syncadapters ..

0

Source: https://habr.com/ru/post/1648979/


All Articles