android - Google play snapshot sync between devices strategy -


we're using google play saved games services (snapshot api) store savegames our game in cloud.

besides backing savegames of course 1 of biggest reasons being able sync state of game between devices.

now seems these snapshots coming on-device cache , not cloud.

we're reloading state in intervals , when game has been running while there no way ensure date version of snapshot.

this crucial when playing on device same google play account shortly after having played on other devices.

any best practice advice best strategy here?

if 'forcereload' set 'true', call clear locally cached data , attemp fetch latest data server. commonly used user-initiated refresh. normally, should set false gain advantages of data caching.

link below useful documentation google apis android - snapshots: https://developers.google.com/android/reference/com/google/android/gms/games/snapshot/snapshots


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -