Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Submitting score to leaderboards with Google Play Game Services

Is GamesClient.submitScore require online connection? How exactly is it working when user is offline? Scores to submit are saved in some sort of queue to execute when there is something to do or I must first save scores locally and then update it on Google Play GAme Services?

like image 898
Marcin K. Avatar asked Jun 25 '13 22:06

Marcin K.


People also ask

How do I add a Google leaderboard?

Create a leaderboard for a new game To create a leaderboard for a new and unpublished game, go to the Google Play Console entry for your game, and navigate to Grow > Play Games Services > Setup and management > Leaderboards, then click the Create leaderboard button.


1 Answers

yes it requires a network connection. However what you could do is use SharedPrefrences for when the user signs back in. This is what I did in my app. you just have to make sure the same person who is playing offline is the same one who will sign in later.

Hope this helps!

like image 157
Jackson Welch Avatar answered Nov 08 '22 14:11

Jackson Welch