I’m using Ice to save my game data when I close my app.
It works on the last stable build, and not on later daily builds. (I need later builds to overcome the new-iPad display issue that got fixed).
BUT–even when it works (i.e. saves the stats upon closing out of the app) then I have this problem:
If I leave the app without closing, then come back into the app, it restarts, which is very undesirable if you are mid-level in my game. This is my save code for when my app closes…
[lua]function onSystemEvent( event )
if( event.type == “applicationExit” ) then
savedata:storeIfNew(“levelsbeaten”, _G.levelsbeaten)
savedata:store(“levelsbeaten”, _G.levelsbeaten)
savedata:save()
end
end[/lua]
I need my app to both save upon actual closing the app, AND not restart when the app is just running in the background. I don’t know if it is an issue with Ice, the corona builds, or my code.
Thanks,
Dane [import]uid: 117490 topic_id: 27378 reply_id: 327378[/import]

[import]uid: 153141 topic_id: 27378 reply_id: 112139[/import]