Skip to main content
Known Participant
October 1, 2013
Question

Saving application state, iPad

  • October 1, 2013
  • 1 reply
  • 483 views

Hi

I'm working on my first game for IiPad developed in Flash pro. CS6 (Air 3.7).

It seems like Air is handling when the game is moved to the background and I just use Event.DEACTIVATE and Event.ACTIVATE to pause timers and animations etc.

But when the App is closed by IOS (or by the user) the application state should saved so the user can continue when he reopens the app - or so I've read.

Or saw one example of this listening to Event.SUSPEND and saving the data in SharedObject.

Is it necessary to save every state of any bullet flying around or is it OK the just continue from the last level played ?

Would an app that doesn't save the application state get rejected from App store?

Any help appreciated

Thanks!

Rolf

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
October 1, 2013

I believe it would be ok still, and from apps I use, they do seem to have every variation of being able to continue where you left off. I do nothing to let you continue where you left off in my apps, and they still get accepted.

Known Participant
October 1, 2013

Thanks Colin. It seems a bit over-kill to save the exact application state in the game i'm working on.

I think I'll just let the user start over if the application is closed. - I was afraid that Apple would reject the app.

Thanks again.

Rolf