errorCode value don't exist on LOGIN_ERROR event

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

hhd90
Posts: 67
Joined: 21 Dec 2012, 05:17

errorCode value don't exist on LOGIN_ERROR event

Postby hhd90 » 14 May 2014, 10:22

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?
User avatar
Lapo
Site Admin
Posts: 19675
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: errorCode value don't exist on LOGIN_ERROR event

Postby Lapo » 14 May 2014, 11:30

Can you show me the Java code you use for handling errors?
Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
hhd90
Posts: 67
Joined: 21 Dec 2012, 05:17

Re: errorCode value don't exist on LOGIN_ERROR event

Postby hhd90 » 15 May 2014, 03:26

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
                } .....
   }
User avatar
Lapo
Site Admin
Posts: 19675
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: errorCode value don't exist on LOGIN_ERROR event

Postby Lapo » 15 May 2014, 08:00

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.
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 19675
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: errorCode value don't exist on LOGIN_ERROR event

Postby Lapo » 13 Jun 2014, 09:51

A new update has been released:
viewtopic.php?f=21&t=17216
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 1 guest