I want to pull from a remote server on launch,. Here's what I'm doing in 
application:didFinishLaunching:withOptions:

  NSArray *replications = [database replicationsWithURL:[NSURL URLWithString
:@"http://my_credentials@my_ip_and_port/my_db";] exclusively:YES];

  self.pull = [replications objectAtIndex:0];

  [self.pull start];

I assume it is not persistent since I am not setting it so, but I get a 409 
conflict at the end of the pull on successive launches so it makes me think 
that I am creating another replication on top of the previous one.  Should 
I check for its existence before creating it on successive launches? Can 
someone suggest a better way of doing a pull replication on startup?

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/cdb75554-4173-4c9f-a2f6-5861982e7713%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to