1
votes

I'm facing some difficulties in choosing the best CouchDB/PouchDB iOS SDK. We have a CouchDB server that can not be upgraded or modified at the moment. This Is a problem for Couchbase Lit SDK last relaese because it uses Sync Gateway as its own server (no longer compatible with CouchDB).

So I studied a bit of CDTDatastore, the Cloudant SDK. Unfortunately is quite 'obsolete' at code level, in the sense that there are more than 100 warnings that I really don't like because are almost referring to object block capture (strong reference cycle) and deallocation of objects in the finalize responder thet is deprecated since years :-)

So I though, just because I'm nearly mad, to try to implement myself the replication protocol, but really, I know it is quite hard, just because, if I correctly understood, I need to implement a CouchDB instance on the iOS device.

So I have two related questions:

  • Can you suggest me a SDK/Framework/Library to use to simply handling data locally and than manage replication into a CouchDB server? I'd like to be able to choose if use Objective-C or Swift if it is possible;
  • Is there a way to create a very simple class that implement the replication protocol using only HTTP requests? Or implementing a CouchDB instance is a must?

So... shortly speaking... what is your preferred solution in situations like this?

1

1 Answers

0
votes

I use React Native which stopped me from using Couchbase Light (they abandoned project for RN) but their module seemed to work fine in iOS at least some time ago. It's compatible with CouchDB replication AFAIK. For RN space I use PDB-localstorage in conjunction with CouchDB.