We are running into this issue when trying to read data out of CouchbaseLite from the Apple Watch while the iPhone is locked. CBLManagerOption.fileProtection is not able to get around the issue.
For some reason, we are able to connect to Couchbase on the first instance after installing the app while the phone is locked, but subsequent attempts give the "authorization denied" message. Has a work around been discovered? Does this make CouchbaseLite fundementally incompatible with Apple Watch? On Tuesday, July 21, 2015 at 9:34:29 AM UTC-7, Jens Alfke wrote: > > > On Jul 21, 2015, at 3:12 AM, Ibrahim <[email protected] <javascript:>> > wrote: > > I had the same problem happens with me, i was able to reproduce by editing > scheme, from options select `launch due to background fetch event`, then > run the app while device is locked, trying to change fileProtection > to NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication didn't > help, even after i switched to ForestDB i see this error `WARNING: ForestDB > error FORESTDB ERROR -2` > > > Background-fetch support is issue #138 > <https://github.com/couchbase/couchbase-lite-ios/issues/138>. Pasin’s > done some work on it, but file access permissions are a problem. The sync > protocol is interactive, not just a simple download, so it requires that > the database be accessible during the pull. > > —Jens > -- 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/278b10a5-2429-43e6-a70a-9c8c2624b7ac%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
