Author Message
butterklopsi
Joined: Nov 11, 2015
Messages: 22
Offline
Hello,
I'am working on a ClientSDK based Softphone on Android. After I prepared the client-object, I call
client.createUser(userConfiguration, createUserCompletionHandler)
.
In the
CreateUserCompletionHandler
always the
onSuccess()
gets invoked. Even if i pass in a wrong extension or password. As far as I understand the
onError(UserCreatedException)
should be invoked if the login does not work. So if I always get
onSuccess()
, how should I detect if the User is successfully logged in?


Regards


Børge.
Shamika
Joined: Jun 24, 2019
Messages: 2
Offline
Hi Børge,
Thanks for posting query here

Here is we think might help you-
User object creation will not fail if incorrect extension / password is passed.
When User.Start() is called, Client SDK attempts to start all configured services. If incorrect extension / password is provided, then Client SDK provides OnUserRegistrationFailed, OnUserAllRegistrationsFailed callbacks on UserRegistrationListener.
This can be used for detection of login failure.

regards,
Avaya DevConnect Team (CSDK)
Go to:   
Mobile view