On Mar 11, 2015, at 4:18 AM, Souhail Marghabi <souhail....@gmail.com> wrote:I am new to couchbase Mobile and I am developing an iOS app with couchbase as a backend. I have a object called Survey which has another object called "Profile" as an attribute. When syncing I want to make sure that the survey data gets only synced for the specific "profile" that applied change to it. in Other words how to make that we sync only and retrieve only the related data for the current "profile" / user using the app.
On Mar 13, 2015, at 6:40 AM, Souhail Marghabi <souhail....@gmail.com> wrote:In the iOS app I am making, I don't have pre existing accounts, the user creates a "profile" document and continues navigation in the app.
On Mar 13, 2015, at 8:57 AM, Souhail Marghabi <souhail....@gmail.com> wrote:I see, but what are actually these accounts.
On Mar 13, 2015, at 9:19 AM, Souhail Marghabi <souhail....@gmail.com> wrote:Thanks for the link, I have read through, and I was wondering if using the guest account and putting "GUEST" to "True" is enough
do I need an account for each user logging into the app?
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/UqelTaQDcnc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/1C50C7D2-6D04-4DA4-B0E7-013575E64377%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.
On Mar 13, 2015, at 11:23 AM, Souhail Marghabi <souhail....@gmail.com> wrote:Ok, but how will i know the exact number of users accounts i need to manually create in _user since its incremental for something like channel("documentname+ doc.userId)?Suremy i am misunderstanding something here
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/UqelTaQDcnc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/5EF720A5-9E30-4441-A1F2-7995BBE5AD02%40couchbase.com.
On Mar 13, 2015, at 12:30 PM, Souhail Marghabi <souhail....@gmail.com> wrote:1- i need to do a curl put request to add an indefinite number of accounts( i dont know how many users will download. And launch the app).
On Mar 13, 2015, at 12:30 PM, Souhail Marghabi <souhail....@gmail.com> wrote:1- i need to do a curl put request to add an indefinite number of accounts( i dont know how many users will download. And launch the app).
You create the user accounts in response to from the client apps, the same way you would if you were writing a web-based service. (First time a user launches the app, they get prompted to login or register a new account. If they register, the app sends the info to your server-side code, which talks to SG to create a user account.)
Alternatively you can use Facebook or Persona to log in, in which case accounts get created on SG for each user the first time they authenticate.—Jens
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/UqelTaQDcnc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/4CBC8D5B-E9B8-4921-9A3A-E1EFEF49CB07%40couchbase.com.
—Jens
--
You received this message because you are subscribed to a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/UqelTaQDcnc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/C84814CF-41EF-4C0F-917B-D2CC1373D654%40couchbase.com.
On Mar 16, 2015, at 1:17 PM, Souhail Marghabi <souhail....@gmail.com> wrote:Actually option (a) would be the best, but I do not really how to dynamically create and register user sync accounts with the server.I have seen how to create user accounts "manually" with "curl" POST request to create users on "admin" port.