Replication from app extension


#1

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?


#2

@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


#3

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.


#4

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?


#5

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.