Typically, the generated package database class already has a valid synchronization connection profile. You can login to the Unwired Server with your username and credentials.
- + (void)beginOnlineLogin:(NSString *)user password:(NSString *)pass – beginOnlineLogin sends a message to the Unwired Server with the username and password. The Unwired Server responds with a message to the client with the login success or failure. This method checks the SUPMessageClient status and immediately fails if the status is not STATUS_START_CONNECTED. Make sure the connection is active before calling beginOnlineLogin, or implement the onLoginFailure callback handler to catch cases where it may fail.
[SampleApp_SampleAppDB beginOnlineLogin:@"supUser" password:@"s3pUser"];