Trying to connect to Couchbase Cloud

48 views
Skip to first unread message

Todd Freese

unread,
Feb 20, 2014, 6:08:11 PM2/20/14
to mobile-c...@googlegroups.com
I am trying to get the ToDoLite7 demo connected to couchbasecloud. I'm using beta 2 of CBL downloaded from the web site.

I created a new sync gateway using the dashboard and set the URL in the code:

#define kSyncUrl @"http://sync.couchbasecloud.com:4984/todotest/"


When I try to sync I get the following error:


error getting permission Error Domain=com.apple.accounts Code=6 "The operation couldn’t be completed. (com.apple.accounts error 6.)"


Any ideas?


Todd

Todd Freese

unread,
Feb 20, 2014, 6:10:01 PM2/20/14
to mobile-c...@googlegroups.com
Also, when creating the sync gateway, I allowed Guest and are using the default sync function.

Todd

Jens Alfke

unread,
Feb 20, 2014, 6:23:33 PM2/20/14
to mobile-c...@googlegroups.com, J Chris Anderson

On Feb 20, 2014, at 3:08 PM, Todd Freese <to...@filmworkers.com> wrote:

> error getting permission Error Domain=com.apple.accounts Code=6 "The operation couldn’t be completed. (com.apple.accounts error 6.)"

"com.apple.accounts" makes me suspect that this error comes from attempting to get the iOS user's Facebook account token, using the Accounts framework. This is a feature JChris added to the app … I don't know anything about that framework so I don't know what to suggest. Chris?

—Jens

J. Chris Anderson

unread,
Feb 20, 2014, 7:34:19 PM2/20/14
to mobile-c...@googlegroups.com, J Chris Anderson
You need to log into facebook (via Settings) before it will work. Same goes for the simulator.

We probably need to prompt for this in the UI.

Chris

Jens Alfke

unread,
Feb 20, 2014, 7:56:48 PM2/20/14
to mobile-c...@googlegroups.com, J Chris Anderson

On Feb 20, 2014, at 4:34 PM, J. Chris Anderson <jch...@couchbase.com> wrote:

You need to log into facebook (via Settings) before it will work. Same goes for the simulator.

What about people (like me) who don't have Facebook accounts? There should be an alternate way to authenticate.

—Jens

J. Chris Anderson

unread,
Feb 21, 2014, 10:46:42 AM2/21/14
to mobile-c...@googlegroups.com, J Chris Anderson
Currently the TodoLite app uses the least amount of code that could possible demonstrate login. So if anyone wants to extend the app to offer login with other systems that'd be great. The problem is that the only other UI-less login on iOS is Twitter, which we don't have baked into Sync Gateway. So adding another login form would be areal feature with it's own controllers etc.

Chris
 
Reply all
Reply to author
Forward
0 new messages