title: How do I send a push notification for a friend request for multi-Player game in Unity using Playfab+photon
body: <p>So here I am trying to convert my single player game into multiplayer game.</p>
  <p>I am able to work the part where the user can login to the game using Playfab via Username. I am able to create a friend screen and in that I can, say add  <em>PlayerB</em> as his friend in the UI , Playfab friend list and the photon friend list via these commands by invoking various events and callbacks as such.</p>
  <pre><code> var request = new AddFriendRequest { FriendTitleDisplayName = name };
   PlayFabClientAPI.AddFriend(request, onFriendAddedSuccess, onFailure); 
  
  PhotonNetwork.FindFriends(friendDisplayNames);
  </code></pre>
  <p>Also I am able to delete the friends as will.</p>
  <p>But the problem is PlayFab follows a follow kind of system wherein which if <em>Player A</em> adds <em>Player B</em> as his friend, <em>Player A</em>'s friend list is updated but <em>PlayerB</em> friend list is not updated.</p>
  <p>What is really want here is this :</p>
  <p><em>When Player A adds Player B name, then a notification should reach Player B with an invite(both push notification and a message in the friends screen). Only if Player B accepts the invite , Player A and Player B will be friends with each other .</em></p>
  <p>But I searched online for this but there doesn't seems to be great tutorials for this(i.e., sending notification to another friend via playfab). There was a suggestion to use cloud scripting. But there the cloud scripting interface under &quot;Automation&quot; of the playfab has changed and have really hard time figuring it out because many tutorials out there are using the old interface under cloud scripting of Playfab.</p>
  <p>Now I am really questioning whether am I on the right track of using PlayFab and Photon for this or should I have used something else like Mirror or whatever it is.</p>
  <p>So briefly summarizing how do I send a friend request from <em>Player A</em> to <em>Player B</em> in multiplayer games in Unity</p>