RemoveBuddyRequest not executing

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

Moderators: Lapo, Bax

mmilen
Posts: 298
Joined: 09 Nov 2010, 00:48
Contact:

RemoveBuddyRequest not executing

Postby mmilen » 14 Aug 2014, 18:41

Hi,

After updating to the latest Version: 1.3.6 and server to version 2.9.0 stopped firing on the client side RemoveBuddyRequest

I have a call like this
[self.sfsClient send:[RemoveBuddyRequest requestWithBuddyName:playername]];
sfsClient is a connected SmartFox2XClient
player name is a valid name of a buddy

The request never reaches the server. I have a customer handler for it addEventHandler(SFSEventType.BUDDY_REMOVE,Buddy_Remove_EventHandler.class); and it is never called. There is no error on the serve console.
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: RemoveBuddyRequest not executing

Postby Lapo » 15 Aug 2014, 08:28

Are you sure the client that is sending the request is online?
By "online" I don't mean connected and logged in, I am referring to the isOnline property of the Buddy itself. You can be connected but invisible in the system if the isOnline flag is turned off. When you are in that state you can't add/remove buddies.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
mmilen
Posts: 298
Joined: 09 Nov 2010, 00:48
Contact:

Re: RemoveBuddyRequest not executing

Postby mmilen » 15 Aug 2014, 12:55

That did the trick. Thank you for the prompt response.

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 6 guests