Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by michaelbb · Feb 21, 2019 at 08:16 PM · MatchmakingFriendswindows

Adding friends with two-way confirmation

Hi there,

I am trying to add a friend suggestion and addition function.

I've already seen the documentation but unfortunately there is something unclear to me.

I try to implement the following:

1.) Add a friend so that the player can see the friend's achievements and progress in the game

2.) By sending a friend request, there should be an invite/confirmation so that the other player is aware he is a friend of another player.

3.) I've seen that many people in the forum are talking about "friendtags". Can you explain for which purpose these are?

I've managed to add a friend to a players "Friendlist" but how could i achieve the rest?

I am developing a Windows 10 UWP game with c#.

So many thanks in advance.

Michael

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Jay Zuo · Feb 22, 2019 at 05:25 AM

Have you check Brendan's answer here: https://community.playfab.com/answers/8110/view.html? That's one solution for now. Basically, you will use AddFriend on both players, setting each in the other player's friend list. And then use SetFriendTags to add tags to flag if the friend request has been approved.

One problem for you would be that you can not use Push Notification to inform others as PlayFab does not support UWP Push Notification now. You may need some other mechanism to inform others about the friend request.

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image michaelbb · Feb 26, 2019 at 07:33 PM 0
Share

Hi @Jay Zuo,

thanks for your reply.

But what's still unclear if player A selects player B as "friend".

How does player B get the information about that?

avatar image Brendan ♦♦ michaelbb · Feb 27, 2019 at 02:35 AM 0
Share

If you have a look at the recommended flow in the answer on the post linked above, the steps show adding the players to each other's lists from the start, with a tag to indicate they're unconfirmed. So B would see that tag when they check their friends list.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    C#/UWP: Friend-confirmation 1 Answer

    CurrentMatchmakerLobbyId is empty in Unreal client 1 Answer

    C#/UWP: AddFriend per Cloud Script fails 5 Answers

    How to send message from one user to another using PlayFab 1 Answer

    Running a PlayFabServerSDK works without container but not with docker 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges