USER_VARIABLES_UPDATE not fired?
Posted: 11 May 2012, 11:25
Hi,
I am using iOS sdk writing my prototype. On client side I have:
And on server side I have:
But the server handler has never been invoked because I didn't see the trace log.
I am using iOS sdk writing my prototype. On client side I have:
Code: Select all
[smartFox send:[SetUserVariablesRequest requestWithUserVariables:vars]];
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");
}
}