Author Topic: IOS 5 and IO6 crashes when quit the app?  (Read 2419 times)

Offline Alex_R

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
    • Axro Digital
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?
« Last Edit: 2015-Jul-08 by Alex_R »

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3930
    • View Profile
    • Space Fractal
Re: IOS 5 and IO6 crashes when quit the app?
« Reply #1 on: 2015-Jul-08 »
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 and The beagle Jam.

Offline Alex_R

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
    • Axro Digital
Re: IOS 5 and IO6 crashes when quit the app?
« Reply #2 on: 2015-Jul-08 »
Ok. Thanks Space. I'll try your solution!  :)

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3930
    • View Profile
    • Space Fractal
Re: IOS 5 and IO6 crashes when quit the app?
« Reply #3 on: 2015-Jul-08 »
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 and The beagle Jam.