Android - Couchbase Lite - Pull With Filter - Replication.setfilter
I'm working on a android messagerie app, messages are stored in a CouchDB(Apache) database on the internet. How can I pull messages with filter on my Android devices? Android Snipp
Solution 1:
Source : https://developer.couchbase.com/documentation/mobile/current/guides/couchbase-lite/native-api/replication/index.html#filtered-pull-from-couchdb-pouchdb-or-cloudant
Filtered pull from CouchDB, PouchDB or Cloudant
Since Couchbase Lite 1.2, filter functions in pull replications with non-Couchbase databases are no longer available. There is an incompatibility in the way the filter parameter is handled in the POST /{db}/_changes request (see #1139).
Solution 2:
There is however a workaround for working with couchbase lite 1.4 with couchdb 2.x server to working without any change in the library as mentioned above. Please refer to answer given here
Post a Comment for "Android - Couchbase Lite - Pull With Filter - Replication.setfilter"