Implementing Party/invite for friends to join together in a room

Options
Hello everyone.I started implementing Friends system using pun.I can see which of my friends are online.I have their userid.Now I need to send request to those playerId .My question is how I can send a message or we can say execute a function in another player so that they can join.Can anyone tell me how to implement it??.


I will try to explain my plan here.

Now I have the userid of my friends.Now I will send request to my friends.
If they accept my request there will be function which will start executing.
That function is FindFriends.It will take my userid and check whether I am in any room or not.
Once I am in a room my friends should also join my room by taking my roomparam from FindFriends.
Thank you

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Sanjay_Varma,

    Thank you for choosing Photon!

    You need to use Photon Chat or another service that allows exchanging direct messages between users.
    This how you would send friend requests or game challenge/invitation.
    PUN and Photon Realtime allows exchanged of messages only when joined to the same room.