question

mandoproductions avatar image
mandoproductions asked

[Unity] Can't restore save from the cloud

Hi, I'm trying to implement WhisperSync for a unity project. We are using PlayerPrefs to save the progression. Initialization is working, as saving progress. But when I try to retrieve a save from the cloud (at first launch or with whisperSyncRequestRevert), it does not update the PlayerPrefs. I get the following message which looks like ok: I/Amazon (26348): auto unpacking new game data D/STC_GameSavePackager(26348): Entering unpack()... D/STC_SimpleZipUtil(26348): Entering unzip() with destination directory [/data/data/com.mando.gamename] D/STC_SimpleZipUtil(26348): Creating file: com.mando.gamename.xml D/STC_WhisperSyncServiceProxy(26348): Successfully unpacked new multi-file game data On save, the following files are added: D/STC_GameSavePackager(25019): Entering pack()... D/STC_SimpleZipUtil(25019): adding file shared_prefs to [] D/STC_SimpleZipUtil(25019): adding file com.mando.myappname.xml to [shared_prefs] D/STC_SimpleZipUtil(25019): adding file files to [] Is there something specific to do to update the PlayerPrefs? Thanks
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.

Venkat@Amazon avatar image
Venkat@Amazon answered
Thank you for the post. We have forwarded your query to the appropriate team and will get back to you once we have an update.
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.

Venkat@Amazon avatar image
Venkat@Amazon answered
WhisperSync doesn't operate on PlayerPrefs. PlayerPrefs are handled entirely by Unity and are not synced. Related forum post : https://forums.developer.amazon.com/forums/thread.jspa?threadID=674&tstart=0
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.