I’m currently writing an Android Game. The game has a social part to it, where you can view your friend’s scores and compare them to yours.
I’m currently unsure about how often I should update the score of the user. e.g. sending the players’ score to the server.
And I’m unsure about how often I should download new data from the server eg. friends scores.
The more I update (making requests to the server) the more expensive this will get, however I don’t want it to update to slowly, otherwise the users might get upset.
What is an ideal update time? I was thinking around every 3 minutes?
After every session of game send the score to the server & as the above answer said having a button which fetches scores is better. You can do something like View Leaderboard Button , clicking on which should fetch the scores