IOS 5 and IO6 crashes when quit the app?

Previous topic - Next topic

Alex_R

Hi everyone and especially Spacefractal (our 64bits savior for IOS)  :good:

I have got several users complaining about my last game  (they said the game doesn't save sometimes the game status) :( I was a Little worried about that, but not too much because my App runs fine in my iPhone and iPad with ios 8.2 and 7.1.

I thought it was some system issues from those users. (All my friends can play fine with my game). But today I have learned that maybe it is a problem with IOS 5 or IOS 6. I am not at home and I can not test it these days. But I suspect that there is a crash when users quit the App (compiled with Spacefractal 64bits library). For some reason SUB GLB_ON_QUIT: function crashes the App and the game doesn't  save the game status. Is this possible?

spacefractal

Don't use quit function to save data, but save the data on pause sub function instead.

Sometimes the quit call mighy newer called, when iOS system wipe out memory.

Nothing I'm can do really. It's a iOS quick.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Alex_R

Ok. Thanks Space. I'll try your solution!  :)

spacefractal

also use SUB GLB_ON_PAUSE: to save your data.

SUB GLB_ON_QUIT might newer been called on iOS and is quite unsafe on iOS.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/