0

Is possible to Offline sqlLite saved data send or sync with live MySQL database in server side ?

1
  • 1
    any solution for this. still looking but found nothing Commented Aug 2, 2021 at 11:26

2 Answers 2

3

I found my own solution to this scenario. I try to build up React Native mobile app working with Laravel backend(PHP) and my app working online and offline both. So my mobile app using Realm (of MongoDB) to app db and MySQL in severe side (Laravel). I create the flag field in both dbs to know that row is sync or not and i develop the function to check that flag field and sync to both db and update flag field as my wish. You can try this with SQLite or any other mobile db. Realm:https://docs.mongodb.com/realm/

Sign up to request clarification or add additional context in comments.

Comments

1

The most easy way to do so is to use WatermelonDB.

See: https://github.com/Nozbe/WatermelonDB

It provides a syncing option from which you can automatically sync your database with the backend. It uses SQlite on it back. For synchronisation see:

https://nozbe.github.io/WatermelonDB/Advanced/Sync.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.