Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Reloading application


I recently finish my app an was approved by apple but when i press the home button on the iphone and reopen the application it stays in the last state in which i leave it

is there a way to avoid this state saving in the application?

— asked November 2nd 2010 by francisco peña
  • ios4
  • iphone

2 Answers

  • With android, there is a recently-added (although it is certainly in 1.4.X) exitOnClose property that can be set on the window, although it is only effective if set at window creation. See the description in the docs here

    I am not sure how to enable this behaviour for iOS, though, so this may not be useful to you.

    — answered November 5th 2010 by Paul Dowsett
    1. Open your info.plist file
    2. Add Key UIApplicationExitsOnSuspend or Select Application does not run in background
    3. Set key to YES
    4. Save

    The file should be in your iphone/build directory

    — answered November 5th 2010 by Aaron Saunders
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.