> > (Incidentally, speaking of documentation, there appear to be a couple of > notable errors in the setup guide for SG 1.5 relating to support for CBL > 2.0 replication. I submitted feedback via the page; see > https://issues.couchbase.com/browse/DOC-3194.)
@Ben Thanks for letting us know! That should be fixed now https://developer.couchbase.com/documentation/mobile/1.5/guides/sync-gateway/config-properties/index.html#1.5/databases-foo_db-unsupported. On Tuesday, 30 January 2018 21:45:18 UTC+1, Ben Kennedy wrote: > > > On Jan 26, 2018, at 6:49 PM, Jim Borden <[email protected] <javascript:>> > wrote: > > > > The spirit of what you described is what you should do, but your > replicator will shut down automatically once the session cookie expires > because it will start getting unauthorized errors (I'm not sure why it was > in the client API and so when it was reviewed it was removed, but as far as > creating the session with Sync Gateway you can pass an expires value there > and it will be honored). This will be passed to the status callback. At > that time you can renew your session and start a new replicator. > > Thanks Jim. That sounds like the better approach over maintaining a local > timer. > > Now that I have a replication running against SG 1.5 (having moved back to > 2.0DB021 after realizing that feature/2.0 is a bit too cutting-edge), I'm > trying to get familiar with the new API using existing data. > > We have documents with attachments created in 1.x using API like this: > > [model setAttachmentNamed:attachmentName withContentType:@"image/png" > content:UIImagePNGRepresentation(image)]; > [model setValue:attachmentName ofProperty:kPropertyName]; > > which we would retrieve using those methods' reciprocal counterparts. > > When retrieved in 2.0, I see the "_attachments" property on the document. > However, I can't figure out how to acquire the blob using the new API. > Neither using the attachment name nor property name as the argument for > document.blob(forKey:) works; both return nil. > > Have I missed some documentation on how this now works? > > (Incidentally, speaking of documentation, there appear to be a couple of > notable errors in the setup guide for SG 1.5 relating to support for CBL > 2.0 replication. I submitted feedback via the page; see > https://issues.couchbase.com/browse/DOC-3194.) > > thanks, > > -ben > > -- 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/5d7aa8c3-242a-4eb4-ac69-f9d6f0bdfa11%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
