question

Heghine Hakobyan avatar image
Heghine Hakobyan asked

WhisperSync Questions

Dear all, I have some questions and I hope somebody can answer to them. 1. For syncing my game progress should I always be connected to the Internet(and what can happen if my game try to sync, but there is no connection)? 2. If a user doesn't activate the service, is there any way to sync anyway? 3. And in which form does amazon my synced data, in name-value pair? Thanks in advance!!! Message was edited by: Heghine Hakobyan
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Richard Krog avatar image
Richard Krog answered
> 1. For syncing my game progress should I always be > connected to the Internet(and what can happen if my > game try to sync, but there is no connection)? The device must be connected to successfully sync, but it will gracefully fail if the device is offline. A small toast-like message will display upon first failure. While the device is offline, subsequent synchronize calls will silently fail from the player's point of view, but you will receive notification via the onSynchronizeFailure callback method. You do not have to explicitly monitor the network state, unless you want retry logic upon reconnect. > 2. If a user doesn't activate the service, is there > any way to sync anyway? No, but players have the opportunity to opt back in at anytime. > 3. And in which form does amazon my synced data, in > name-value pair? There are currently two ways of specifying your game data: 1) [b]Multi-file[/b]: All Internal Storage (files), Shared Preferences, and SQLite Databases are gathered together and stored in the cloud. This is useful if the game state is defined by multiple data storage options. By default, the 'temp' or 'lib' directories are ignored, but you can provide your own filter to gather only a subset of the storage files. 2) [b]Blob (byte array)[/b]: If the game state can be represented as a single byte array (String, JSON, etc), then this is the better option. Typically, you would serialize the game state in a String and pass that in a SynchronizeBlobRequest. This gives you the flexibility to choose your the form of your data.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Heghine Hakobyan avatar image
Heghine Hakobyan answered
Thanks a lot! This helped me very much!
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sachin@Amazon avatar image
Sachin@Amazon answered
Thank you Richard. This will surely help other developers as well.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.