Using Rich Presence in Game
Last updated
Was this helpful?
Was this helpful?
// Example code of a function being called when the player enters a Game Over state
public void SendGameOverPresenceStatus()
{
Dictionary<string, string> presenceDetails = new Dictionary<string, string>()
{
{"device", SystemInfo.deviceModel },
{"unity_version", Application.unityVersion}
};
LootLockerPresenceManager.UpdatePresenceStatus("game_over", presenceDetails);
}{"token": "the_signed_in_users_session_token"}{"authenticated":true}{"type":"ping"}{"type":"pong"}{
"metadata": {
"key1": "value1",
"key2":"value2"
},
"status": "game_status_to_send"
}