Only players (i.e. title_player_account PlayFab entities) can send or receive invites. Game servers (i.e. game_server PlayFab entities) cannot. For more information on the how game servers interact with lobbies, see Game Servers and Lobbies.
Invite types
There are two types of invites your game is likely to make use of.Joining a lobby by in-game invites
- A member of a lobby may invite another player to that lobby directly via the lobby service.
- The lobby owner can choose to restrict sending invites to only the owner via the lobby property RestrictInvitesToLobbyOwner
- This invite shares the lobby’s connection string with the invited player.
- The invited player receives the invitation via PFLobbyInviteReceivedStateChange and can use the attached connection string to join the lobby.
- These invites work cross-platform but only work in-game.
Joining a lobby by platform invites
- Members of the lobby can directly share the lobby’s connection string with other players over platform-specific invite mechanisms.
- These invites don’t work cross-platform but can be received without the recipient already running the game.
- Once the invited player receives the connection string via the platform mechanism, they can use the attached connection string to join the lobby.
