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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -