Hi,
I do send SFS from iOS to a user with 40 seconds time for response. The invited user attempts to join the game via custom Jon_game handler, in the the join request I do add a parameter "inv"='SFSInvitation id' .
Now on the server side I need to check if the Invitation is valid before joining the player.
How do I get a reference to the SFSInvitationManager and check the invitation using it's ID.
SFSInvitation validation.
Re: SFSInvitation validation.
Hi.
You can access the Invitation Manager through the SmartFoxServer class:
Invitation invitation = SmartFoxServer.getInvitationManager().findById(invitationId);
You can access the Invitation Manager through the SmartFoxServer class:
Invitation invitation = SmartFoxServer.getInvitationManager().findById(invitationId);
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Re: SFSInvitation validation.
Thanks.
Re: SFSInvitation validation.
adding that to the text of the SFSInvitationManager JavaDoc would be nice.
Re: SFSInvitation validation.
This is not the way it is supposed to work, that's why it's not in the docs.
If you want to validate an invitation, don't let the client send it. The client should instead send a request to your Extension which performs the validation and sends the Invitation from the server side API.
Thanks
If you want to validate an invitation, don't let the client send it. The client should instead send a request to your Extension which performs the validation and sends the Invitation from the server side API.
Thanks
Return to “SFS2X iPhone / iPad / OSX API”
Who is online
Users browsing this forum: No registered users and 54 guests