My game has many offline components and game types that award currency to the player. I am investigating adding online game modes to the game using Game Sparks, and would like to manage the currency and In App Purchases with Game Sparks systems.
However, I don't want to force a mobile player to be online at all times. What is the best way to securely track offline currency changes and then sync/validate with the GameSparks server when they are back online?
Best Answer
C
Customer Support
said
over 7 years ago
Hi Paul
If you are using Unity SetDurable can be used to store your request in a queue to be sent to GameSparks when you are offline. SetDurable will work if you are offline, have the game minimized or put the game in the
background but it does not support caching data between sessions. For
this data you would need a save file to store the data locally.
If you are using Unity SetDurable can be used to store your request in a queue to be sent to GameSparks when you are offline. SetDurable will work if you are offline, have the game minimized or put the game in the
background but it does not support caching data between sessions. For
this data you would need a save file to store the data locally.
Thanks Katie
1 person likes this
P
Paul Jackman
said
over 7 years ago
Thanks for your answer.
So I could store and maintain my currency value locally, and use durable requests for all currency changes on the server. Then the server value can still be considered authoritative when the player comes back online. Very nice!
Paul Jackman
My game has many offline components and game types that award currency to the player. I am investigating adding online game modes to the game using Game Sparks, and would like to manage the currency and In App Purchases with Game Sparks systems.
However, I don't want to force a mobile player to be online at all times. What is the best way to securely track offline currency changes and then sync/validate with the GameSparks server when they are back online?
If you are using Unity SetDurable can be used to store your request in a queue to be sent to GameSparks when you are offline. SetDurable will work if you are offline, have the game minimized or put the game in the background but it does not support caching data between sessions. For this data you would need a save file to store the data locally.
Thanks
Katie
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
If you are using Unity SetDurable can be used to store your request in a queue to be sent to GameSparks when you are offline. SetDurable will work if you are offline, have the game minimized or put the game in the background but it does not support caching data between sessions. For this data you would need a save file to store the data locally.
Thanks
Katie
1 person likes this
Paul Jackman
So I could store and maintain my currency value locally, and use durable requests for all currency changes on the server. Then the server value can still be considered authoritative when the player comes back online. Very nice!
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics