I am developing an app with IONIC and PouchDB
. The app correctly synchronizes with remote CouchDB
and works perfectly well on Android. But the PouchDB fails to sync on iOS.
I am testing on iOS 9 and iPhone 5S and using IONIC View.
On a dig down session I found that each time the ‘paused’ event is listened:
PouchDB.replicate(remote_db, local_db, {
live: true,
retry: true
}).on('change', function (info) {
// handle change
}).on('paused', function (err) {
// replication paused (e.g. user went offline)
}).on('active', function () {
// replicate resumed (e.g. user went back online)
}).on('denied', function (info) {
// a document failed to replicate, e.g. due to permissions
}).on('complete', function (info) {
// handle complete
}).on('error', function (err) {
// handle error
});
On further digging I found that the **Error**
object says that the adapter is missing
I then used FruitDown
Adapter, but the situation did not improve.
Can anyone suggest how to solve this issue ??