question

f8943843 avatar image
f8943843 asked

Synch works only sometimes

I have a button in my app that when you click it sends a whisperSync.synchronizeProgress request. Every time I click it I see this is logcat: 01-20 22:09:15.284: D/STC_GameSavePackager(22826): Entering pack()... 01-20 22:09:15.284: D/STC_SimpleZipUtil(22826): adding file files to [] 01-20 22:09:15.284: D/STC_SimpleZipUtil(22826): adding file shared_prefs to [] 01-20 22:09:15.284: D/STC_SimpleZipUtil(22826): adding file spinit.xml to [shared_prefs] Then about 50% of the time it syncs and I see this: 01-20 22:14:21.151: I/STC_SynchronizeCallbackHandler(23288): Handling Synchronize response message 01-20 22:14:21.151: D/STC_SynchronizeCallbackHandler(23288): Upload Success So basically sometimes it works, sometimes not. any ideas?
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.

Dixith@Amazon avatar image
Dixith@Amazon answered
Thank you for your post. Whispersync for Games allows you to synchronize game progress to the cloud and across multiple Kindle Fire devices. Whisper sync basically supports two methods for synchronizing of data. 1.)File based synchronization. 2.)Synchronizing of binary data Amazon Gamecircle has a whisper sync service that is currently free. It is to be used for gamestate only and holds upto 1MB per user/app. The log cat information what you provided is not enough to answer your query. So, Please raise a contact-us with your snippet of code and detailed logcat information. This would help us to investigate the issue further.
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.

Dixith@Amazon avatar image
Dixith@Amazon answered
Hi, This is most likely caused by the service deliberately throttling requests. When a synchronization request is processed, it will start a "blackout" period (currently 10 seconds) where subsequent synchronization requests will be ignored. This measure was implemented to prevent accidental misuse. There is also a separate black-out period after a conflict resolution that prevents synchronization requests for 30 seconds. This allows developers to call synchronize() within an onResume() method without causing an endless loop of conflicts. Hope this information helps other developers in the forum.
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.