Hi Playfab Supporter,
In the past, I have read some advice for members from PlayFab Team. That is:
Don't enable Statistics: ALLOW CLIENT ACCESS TO PROFILE PROPERTIES Instead, use GetLeaderboardAroundPlayer to get the data from the Statistics needed. But one thing I wonder about is that I need about 20 values of Statistics. So I will have to run 20 times the function GetLeaderboardAroundPlayer because there are 20 values
So what is the best. I should turn on the Statistics feature in the Client Profile Options or use GetLeaderboardAroundPlayer.
Answer by SethDu · Jun 18, 2019 at 07:13 AM
Yes, you can enable ALLOW CLIENT ACCESS TO PROFILE PROPERTIES, and it should be safe as long as you disallow client to post player statistics. However, you should consider that all the statistics of a player will be exposed to other players and it isn’t like Player Data that can set Private or Public.
Yes. But if they use Get LeaderboardAroundPlayer many times. They will still receive all Statistics
Indeed, even though it will take long and too frequent calls will cause error.
Yes. So what is the best solution? Can you guide me?
I see the following cases:
- I turn on the Allow Client feature to read Statistics data at Client Api Option.
- I use GetLeaderboardAroundPlayer: But must repeat 20-30 times for each course Statistics.
- Use Cloudscript to write Statistics data to User Read Only Data. Then, người dùng đọc dữ liệu từ UserReadOnlydata
Can we get particular players from a leaderboard to show in game 2 Answers
Send parameters to cloud Script on event 1 Answer
Updating Online / Offline status of player? 1 Answer
Character Statistics Limit and max characters limit 2 Answers
Is it possible to create leaderboards with specific time frames? 1 Answer