USER_VARIABLES_UPDATE not fired?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
zhangxiao
Posts: 5
Joined: 10 May 2012, 13:11

USER_VARIABLES_UPDATE not fired?

Post by zhangxiao »

Hi,

I am using iOS sdk writing my prototype. On client side I have:

Code: Select all

[smartFox send:[SetUserVariablesRequest requestWithUserVariables:vars]];
And on server side I have:

Code: Select all

public class MyExtension extends SFSExtension {
	@Override
	public void init() {
		this.addEventHandler(SFSEventType.USER_VARIABLES_UPDATE, UserVariableUpdateEventHandler.class);
	}
}

Code: Select all

public class UserVariableUpdateEventHandler extends BaseServerEventHandler {

	@Override
	public void handleServerEvent(ISFSEvent event) throws SFSException {
		this.trace("User Variable Updated");
	}
}
But the server handler has never been invoked because I didn't see the trace log.
smilefr
Posts: 58
Joined: 23 Mar 2009, 16:50
Location: France

Re: USER_VARIABLES_UPDATE not fired?

Post by smilefr »

Did you make sure the USER_VARIABLES_UPDATE_EVENT was added in your zone configuration file?
zhangxiao
Posts: 5
Joined: 10 May 2012, 13:11

Re: USER_VARIABLES_UPDATE not fired?

Post by zhangxiao »

smilefr wrote:Did you make sure the USER_VARIABLES_UPDATE_EVENT was added in your zone configuration file?
It's a room extension and yes, in room's configuration, under `permissions and events` tab it's selected
itsmylifesoham
Posts: 186
Joined: 16 Oct 2011, 14:33

Re: USER_VARIABLES_UPDATE not fired?

Post by itsmylifesoham »

after you send the setvariablesrequest from client can you show the logs that you get?

just send the request and go to the logs folder in ur sfs installation directory and post the latest modified txt file.
Post Reply