Search Unity

How to invite a friend to a match?

Discussion in 'Multiplayer' started by AdmiralFick, Jan 4, 2022.

  1. AdmiralFick

    AdmiralFick

    Joined:
    Apr 30, 2020
    Posts:
    18
    Hi,

    so I am done with my little android-game with PUN2, where 2 players can play against each other.
    Now I want a functionality where a player can send a match-invitation to a friend (via whatsapp, snapchat, telegramm,etc). When the friend clicks on the link the game-app needs to open and a specific room needs to be joined. So I need the shared link to contain a variable in the URL for identification.

    Is this possible? If so, how would I do that? If not, how could I achieve at least somewhat where 2 specific fiends can play against each other?
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,070
    Aside from the room name, you should also send the region along, so matches work also for friends who don't use the same region otherwise.

    I guess you could encode this simply into a link to the app. How that's done, depends on the platform (I guess iOS and Android) and I can't really help with that...