Use your stats in your strings
Use your stats in your strings so that you can set them just once. Stats help reduce the need to rewrite your strings. If your string has a map name in it, and you’re using theCurrentMap stat to fill in the blank, the service updates your string appropriately as your players travel from map to map in the game.
This approach automatically keeps the string up to date - as long as your title is sending the proper events to XBOX services player data.
Your title should periodically set the Rich Presence base string with the presence service to ensure that the Rich Presence information for a player is accurate and the service is using the correct base string.
Keep these updates within the Presence write limits of 3 writes in 15 seconds and 30 writes in 300 seconds for each user and title. For more information, see Updating a user’s Presence via XSAPI C.
