I am working on webapp using PouchDB as a local database and CouchDB as a central database. One of the reasons I use PouchDB is because I want to use offline support in my application. However, I ran into a little problem. When you go offline and reconnect to the network, PouchDB no longer syncs. I need to update browsers in order to start synchronization again. One solution would be that even if the application is offline, PouchDB will continue to poll the remote database, even if it is disconnected, which will cause synchronization to pick up again when reconnected. Another solution would be to let the user manually manually report this to the application and get synchronization from there.
How can I tell PouchDB to start syncing again? If I can do this, I can solve my problem.
source
share