Saving does not work on some mobile devices

Discussion and help for Easy Save 3
Post Reply
nacheon
Posts: 2
Joined: Sat Dec 23, 2023 12:37 pm

Saving does not work on some mobile devices

Post by nacheon »

hello,

Currently, ES3 is used in mobile games to locally store binary data (zip-compressed xml data) received from the server.
The storage function is as follows.

public void UpdateCommonData(CommonDataType type, byte[] compressedData)
{
ES3.SaveRaw(compressedData, getCommonDataFileName(type));
}

It works normally on most devices, but on some devices it seems like the file cannot be saved. However, it is not being saved, but no other errors are occurring.

I have attached the current ES3 settings.

Do you have any issues related to this?
Attachments
스크린샷 2023-12-23 오후 9.48.48.png
스크린샷 2023-12-23 오후 9.48.48.png (54.48 KiB) Viewed 1087 times
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Saving does not work on some mobile devices

Post by Joel »

Hi there,

Have you put Debug.Log calls alongside your save call to check it's being called? For example some events such as OnApplicationQuit don't get called on mobile.
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
nacheon
Posts: 2
Joined: Sat Dec 23, 2023 12:37 pm

Re: Saving does not work on some mobile devices

Post by nacheon »

The above save function is used when the user first runs the game.
The data to be saved is received from the server and stored locally.
This issue is not caused by app termination.

And, because this problem is occurring to some users, it is difficult to reproduce in a test environment.

However, in the last update, we added try catch so that an error message is displayed as a pop-up when an exception occurs and we confirmed that the message below appears from users experiencing the problem.

[ Android 14 - error when loading. Error is "input string was not in correct format" ]

Regarding this, is there anything else to check?
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Saving does not work on some mobile devices

Post by Joel »

Hi there,

Because you're storing your own formatted data, any System.FormatExceptions will be thrown by your code rather than ours. If it's being thrown by our code then it indicates that you're trying to read your XML formatted data using our methods, which isn't possible.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply