The Fortnite mobile Invite Code feature is still rolling out, so the option may not be immediately available to all users.įortnite is in early access across PS4, Xbox One, PC and iOS. Once your friend gets their code, they can follow the steps in our code redemption guide.Links can be sent in pretty much any fashion across social media, email or private messages. Just like you would in a web browser or social media app, select the platform you'd like to share the link to. Tap it and tap the square share button next to each of the codes.If you have codes available, you'll see the button for "Invite Codes" below the friends list button.Open FriendsService.The button to send ‘Fortnite’ Invite Codes is very visible in the lobby.The Friends Interface provides APIs to subscribe and unsubscribe to these updates, so let’s implement them. While there are no APIs to manage friends directly, as mentioned earlier, we still need to subscribe to updates so we know when a friend request is accepted or someone is unfriended. The Friends Interface will return one of these four statuses for a friend, per the enum: NotFriends, InviteSent, InviteReceived, Friends. Once you’ve queried for friends, you should subscribe to notifications when the friend status changes (rather than query again). The status column will always display “Offline” at this point, as that’s the 0 value of the enum, but we’ll tackle that further in this article. Note that we only see friends’ Epic Account ID and not their display name, but you can use the same QueryUserInfo call we used in AuthService.Login() to retrieve more information for each friend. Click on the Organization tab on the left and use the blue Invite button to invite a friend, selecting an appropriate Role.This is done to protect Epic Games ecosystem users, you (the developer), other game developers, and Epic Games from brand spoofing, phishing, and more. However, as we’re only developing this sample, we’ll have to add a friend to our Developer Portal Organization, as otherwise they will not be able to access our application. If this were an actual game we were developing, we could complete a Brand Review submission for our application and share our game with a friend to get consent. Note that only friends who have accepted your friend request will be returned by the QueryFriends API we implemented. To validate our code, we have to get a friend to consent to our application. As expected, however, we won’t get any friends back from the API, as none of them have consented to our application. Now we can run the app, authenticate, and consent to the updated permissions in the browser, after which we’ll be able to use the Query friends button to get the player’s friends and status. Note that you’ll see an update to the preview at the left, which now includes consent to friends information Enable the Friends (friends_list) permission.Click on the Permissions tab at the top right.Click on the Configure button next to the application you’re using.Navigate to your product and click on Epic Account Services in the left menu.Similar to what we’ve done with presence, we’ll have to add the friends permission to our EAS application to get the proper consent from our players: The Social Overlay will be expanded later this year to assist with that functionality.Īdding friends permission to the application Note that per the documentation, there are currently no APIs to manage friend requests or adding/deleting friends for the player. Player B will never be returned by the query API as they do not own the game. In this scenario, Player A will not see any friends in the game when we call the query API until Player C launches the game and provides consent as part of the authentication flow. Player C purchases the game through Steam.Player A is friends with Player B and Player C, and purchases the game through Epic Games Store.If players purchase the game through the Epic Games Store, consent is implicitly provided as part of the purchase flow. Only after a player’s friend has provided this consent will the Friends Interface return that particular friend when querying. As we’ve seen, players will be prompted to consent to our EAS application accessing the specific information we specify (basic profile, presence, friends). As briefly explained in the previous article, by default the friends APIs will not return the full list of friends of a player that they would see in the Epic Games Launcher, for example. Adding friends permission to the applicationīefore we dive into the query API, it’s important to understand how these APIs are scoped.To round out the Epic Online Services Getting Started articles on Epic Account Services-after having covered the authentication and presence interfaces-we’ll cover how to query for Epic Friends and their status using the Friends Interface.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |