Check Network Connection Before Login

Test the wireless connection before an online login attempt is made. If the wireless connection option has been switched off, the onlineLogin call takes a long time to fail due to network unavailability even if the username and password are correct.

Use the asynchronous beginOnlineLogin and use a CallbackHandler with onLoginSuccess and onLoginFailure methods to check the outcome. Avoid using offlineLogin if credentials (username/password) are saved in a DataVault.