Welcome to Friends
Explore the Friends service for managing player relationships and connections.
Read time 2 minutesLast updated 15 hours ago
The Friends service allows you to boost player engagement by providing players with a social system that works well with other Unity services. With Friends, your players can:
- Send and receive friend requests.
- Build and manage friend lists.
- Block and unblock other players.
- The user sends a message to a friend.
Understanding Friends
The Friends service manages relationships of different types. In general, most user relationships don’t change often; however, there are updates users often want to know about as soon as possible. To increase efficiency, the Friends SDK fetches all a user’s relationships one time at startup, then keeps the list up-to-date using push notifications. The SDK sends change notifications as soon as the changes occur. User relationship changes that trigger a push notification include:- A friend updates their presence status.
- Updates to the presence state for an individual user.
- The user adds a new relationship. A user creates a relationship.
FRIEND_REQUEST - The user removes a relationship, or a relationship is otherwise deleted.
FRIEND
FRIEND_REQUEST- A member with a role (the sender).
SOURCE - A member with a role (the receiver).
TARGET
NONEFRIEND_REQUESTFRIENDSendFriendRequestAsyncCreateRelationshipFRIEND_REQUESTFRIEND_REQUESTFRIENDSendFriendRequestAsyncFRIEND_REQUESTFRIEND