registerUser(String, boolean) method

Register the user with the SAP Mobile Server.

Syntax

public boolean registerUser (
    String captcha,
    boolean isSynchronous
) throws SMPException

Parameters

Exceptions

Remarks

It requires to send username and password as a part of request manager during client connection initialization. CAPTCHA text should be passed to the user during the first registration by the CAPTCHA challenge listener callback. If asynchronous, the user has to implement and register IODPUserRegistrationListener to retrieve a callback.

Example 1

Try{
UserManager userManager = new UserManager(clientConnection);
UserManager.registerUser(<captcha text>,true);
}
Catch(SMPException e){
}