Save/load data don't work (iOS)

I updated my game in stores (Steam, AppStore, PlayMarket).

Saving/loading the game has stopped working (ios).

Windows - work

Android - work

iOS - don’t work

https://docs.coronalabs.com/api/library/system/pathForFile.html

My code:

-- save/load data function saveData() if(options\_hotseat == false)then local path = system.pathForFile( options\_save\_fname, system.DocumentsDirectory ) local file = io.open( path, "w+b" ) if file then local save\_str = Json.Encode(login\_obj); file:write(save\_str); io.close( file ) else -- print("Saving: fail!") end end end function loadData() local path = system.pathForFile(options\_save\_fname, system.DocumentsDirectory); local file = io.open( path, "r" ); if (file) then local contents = file:read( "\*a" ); if(contents and #contents\>0)then login\_obj = Json.Decode(contents); else -- print("Loading: fail! file is empty."); end io.close(file); else login\_obj = {}; -- print("Loading: fail!"); end end

On iOS game always begins anew.

Thanks.

Any messages in your iOS device’s console log?

If you could supply the SDK version you built with, that would help as well.

Build 2016.2949

No errors. The game works. I just updated the program Corona SDK, Xcode, osX

When you say “No errors. The game works.” are you saying the problem is solved?

Thanks

Rob

I solved the problem. The problem is the splash screen. It causes suspend, in which I called the saveData() of the game. Saving the game recorded on empty. Since the data is not yet loaded

Any messages in your iOS device’s console log?

If you could supply the SDK version you built with, that would help as well.

Build 2016.2949

No errors. The game works. I just updated the program Corona SDK, Xcode, osX

When you say “No errors. The game works.” are you saying the problem is solved?

Thanks

Rob

I solved the problem. The problem is the splash screen. It causes suspend, in which I called the saveData() of the game. Saving the game recorded on empty. Since the data is not yet loaded