Skip to Content
0
Former Member
Oct 24, 2013 at 10:12 AM

Multiple users in online app with SUP

20 Views

Hello,

I am creating an online app with web services via SUP (v2.2). Is it possible to have more than one user of the app? With one or more SUP servers. I am using the tutorials and have implemented the methods basically like that:

Registration

NSError *error;

ODPUserManager *um = [ODPUserManager getInstance:appId];

BOOL success = [um setConnectionProfileWithHost:host port:port farm:farmId error:&error];

if(success && ![um isUserRegistered])

{

[um setDelegate:self];

[um registerUser:user securityConfiguration:sc password:pw error:nil isSyncFlag:NO];

}

Deletion

ODPClientConnection *cc = [ODPClientConnection getInstance:appId];

[cc stopClient];

NSError *error;

ODPUserManager *um = [ODPUserManager getInstance:appId];

[um deleteUserWithError:&error];

Unfortynately, I have no idea what to do in case of multiple users (and one or more SUPs). Is such a scenario possible? It seems like I have a single user per appID.

Thank you,

Marina