errorCode value don't exist on LOGIN_ERROR event

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

Moderators: Lapo, Bax

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

errorCode value don't exist on LOGIN_ERROR event

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

Re: errorCode value don't exist on LOGIN_ERROR event

Post by Lapo »

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

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

Re: errorCode value don't exist on LOGIN_ERROR event

Post 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.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: errorCode value don't exist on LOGIN_ERROR event

Post by Lapo »

Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply