Titanium Community Questions & Answer Archive

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

Where's the best place to put startup code for an iPhone app?

I need to perform some early startup code to see if a user is logged in and, if not, present a login form which, in turn, will perform a bunch of tasks relating to creating an account or logging them in.

Where's the best place to do that? I was assuming app.js.

— asked March 16th 2010 by David Geller
  • app.js
  • iphone
  • startup
0 Comments

2 Answers

  • app.js is your best bet. It gets loaded every time you run the app.

    — answered March 16th 2010 by Rob Edgell
    permalink
    0 Comments
  • is there a specific function to call from app.js for startup?
    I was thinking it was resume, but that's not working the way I want. I just want to run at startup and nothing more.

    — answered August 22nd 2011 by vincent youmans
    permalink
    0 Comments
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.