[Vuejs]-Pouchdb-adapter-cordova-sqlite works locally but is not syncing

0👍

Solved!

The problem was here:

this.$pouch.sync('todos', remoteCouch, {...

It has to be changed to:

this.db.sync(remoteCouch, {...

So it was pointing to pouchdb object instead of the database instance.
I hope it helps someone.
Regards!

Leave a comment