Replication from app extension

I’m trying to push some changes to the sync gateway from an app extension. I’m using the REST api to POST {continuous: false, doc_ids: docIds} but the changes aren’t reaching the server. The call to post returns but nothing happens.

Does replication not work from an app extension?

@nick-couchbase

Just to clarify, are you trying to push replicate from an iOS app extension to sync_gateway?

You could try capturing the HTTP packets to see the exact exchange that is taking place and compare that to the same replication run from within an iOS App.

Andy

are you trying to push replicate from an iOS app extension to sync_gateway?

That’s right. I’ll see what I can find out.

different scenario but same environment http://stackoverflow.com/questions/43255505/ios-couchbase-shared-cbl-manager-between-app-and-app-extension

Is the app and extension getting a handle on the database at the same time?

Yes, the app extension can write to the database fine. I’ve put it in a shared area. It’s just replication that doesn’t seem to work in the app extension.