beginOnlineLogin

Sends a login message to the Unwired Server with the username and password.

Typically, the generated package database class already has a valid synchronization connection profile and you can log in to the Unwired Server with your username and credentials.

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. Make sure the connection is active before calling beginOnlineLogin, otherwise an exception may be thrown.

When the login succeeds, the onLoginSuccess method of the CallbackHandler is invoked. When the login fails, the onLoginFailure method of the CallbackHandler is invoked.

Syntax

public static void beginOnlineLogin(String userName, String password)

Parameters

Returns

None.

Examples