Logging In

Use online authentication with the server, and offline authentication with the device.

  1. Normally, the user is authenticated through the registerApplication and startConnection methods in the Application class. Once this is done there is no need to authenticate again. However, the user can authenticate directly with the server at any time during the application's execution by calling the generated database instance's or beginOnlineLogin method.
  2. Authenticate using the last successful credentials on the device by calling the generated database instance's offlineLogin method.
  3. Check the current login status by calling the generated database instance's offlineLoginStatus method, which returns one of the static values contained in the com.sybase.persistence.SUPLoginStatus class: SUPLoginFailure, SUPLoginPending, or SUPLoginSuccess.