I've been using the "GetPlayerStatistics" call to obtain the player's Highscore that's being stored against the players account but recently this call has stopped returning up to date information and now I'm no longer to obtain accurate stats associated with the players account.
For example, the players "HighScore" was 12 - when they hit 13 the database would still return 12. After updating the data manually in Playfab the API still returns 12 - however this value no longer exists so why is PlayFab still returning the old key value pair and not the updated one?
I've followed the documentation and I've attached what I've implemented below - if anyone can help me out with this issue it would be greatly appreciated.
public void GetPlayerStats() { PlayFabClientAPI.GetPlayerStatistics(new GetPlayerStatisticsRequest(), OnGetStatistics, error => Debug.LogError(error.GenerateErrorReport()) ); } public void OnGetStatistics(GetPlayerStatisticsResult result) { Debug.Log("Received the following Statistics:"); foreach (var eachStat in result.Statistics) { Debug.Log("Statistic (" + eachStat.StatisticName + "): " + eachStat.Value); switch (eachStat.StatisticName) { case "PlayerHighScore": pf_playerHighScore = eachStat.Value; break; } } },