I need an offline support for my app, with data sync when the user goes online.
I saw there is a CouchDB / PouchDB thing, but I cannot use it (no external database). Firebase is not an anwser too.
I have a PHP RESTful API with a SQL Database. I could use MongoDB if necessary.
What is the best practice in this case?