send a invitition to someone who is offline?

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

Moderators: Lapo, Bax

legendforever
Posts: 2
Joined: 11 Dec 2018, 12:38

send a invitition to someone who is offline?

Postby legendforever » 11 Dec 2018, 12:56

hi.
how can i send a invitition to someone who is offline? And when it was online, be notified.

(((translate.google.com)))
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: send a invitition to someone who is offline?

Postby Lapo » 11 Dec 2018, 15:46

Hi,
you can't. If the user is offline there is no way to communicate with him/her.

What you could do is write your own server side code to accept invitations for offline users and store them into a database. When the a user comes back online you could check the database and see if there're any pending notifications. If so you can finally send them and let them decide what they want to do.

If you're familiar with SFS2X Extension it's not going to be too difficult to implement.
If not, you can get started here:
http://docs2x.smartfoxserver.com/Extens ... uick-start

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
legendforever
Posts: 2
Joined: 11 Dec 2018, 12:38

Re: send a invitition to someone who is offline?

Postby legendforever » 11 Dec 2018, 18:56

Thank you Lapo.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 65 guests