Page 1 of 1

errorCode value don't exist on LOGIN_ERROR event

Posted: 14 May 2014, 10:22
by hhd90
I's used customize login. In the Java client, i can get the value of errorCode from LOGIN_ERROR event, but i can't do that in the iOS client. Why is there this difference?

Re: errorCode value don't exist on LOGIN_ERROR event

Posted: 14 May 2014, 11:30
by Lapo
Can you show me the Java code you use for handling errors?
Thanks

Re: errorCode value don't exist on LOGIN_ERROR event

Posted: 15 May 2014, 03:26
by hhd90

Code: Select all

private void onErrorLogin(BaseEvent event) {
      int error = Integer.valueOf(event.getArguments().get("errorCode").toString());
      if (error == 2) {
                // do something
               } else if (error == 3) {
               // do something
                } .....
   }

Re: errorCode value don't exist on LOGIN_ERROR event

Posted: 15 May 2014, 08:00
by Lapo
I see what you mean.
I have added a note to our "todo list" for the next release.

Should take a week or two before we release it.
Thanks.

Re: errorCode value don't exist on LOGIN_ERROR event

Posted: 13 Jun 2014, 09:51
by Lapo
A new update has been released:
viewtopic.php?f=21&t=17216