Ionic 4 Couchbase Lite with Sync Gateway

Hi Everyone,

I am new to this Couchbase Lite and Sync Gateway. My aim for the apps is to be able to retrieve and push data from the sync gateway.

As I am not able to find a latest example related to this. Am i still need to build my own custom cordova plugin and do all the custom code there as the hotel-sample tutorial? Or i just need to do this on the Ionic side (typescript) ?

Is there any a good documentation of this ? or any example for me to start on this ?

Thank you and Regards,

This is a very vague question, and I’m not sure how it’s different from the other questions you’ve asked already and gotten some help with.

Also, this doesn’t seem related to Sync Gateway, just Couchbase Lite.

Hi Jens,

Thank you for the answer.
The other question that I ask, is to perform CRUD to the couchbase lite and thanks for the help, it can be done already.

I have a on-off button in my Ionic Apps to be in offline mode. Once i turn online, I want my apps to be able to sync all the data into the couchbase server, which i believe gonna go through Sync Gateway.

Hence the question I asked here, any documentation on how to implement this ? So far, the example that I found is the, booking travel which is using Native Android Java. Is it can be done in Ionic ?

Thank you and regards.

Refer to native Android or iOS for implementation of how sync is to be setup on Couchbase Lite. Then expose this via appropriate bridging API as discussed in hotel lister tutorial.