How can we sync sqlite (local) database with mysql (server) database in iOS?

I created one app for the iPad. I want to run it both offline and online. For local we created a SQLITE database, and on the server side we use MySQL with the PHP API. On both we have the same database schema.

I want to synchronize both of these databases immediately after connecting to the Internet so that the data is the same for both. And when I access the same login forms of another device, the data will be the same as the previous device.

What could be a way to handle this ???

+4
source share

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


All Articles