Display a message only when the app is installed on the device

You must Login before you can answer or comment on any questions.

My situation Application type :

mobile Titanium SDK : 2.1.1 
Platform & version : iOS 5.1 
Device : iOS simulator 
Host Operating System : mountain lion 
Titanium Studio : the last
hello all! I wanted to know if it was possible to display a message when the user installed the app on the device for the first time, so once installed the app, the message will not be displayed again when it starts

— asked 10 months ago by nicolò monili
2 Comments
  • Titanium Studio : the last <-- 90 days from now, this will mean nothing. Versions are numbers, please use them.

    — commented 10 months ago by Stephen Feather

  • ok

    — commented 10 months ago by nicolò monili

1 Answer

Accepted Answer

if (!Ti.App.Properties.hasProperty('installed'){
    Alert('This is my first run');
    Ti.App.Properties.setBool('installed', 1);
}

— answered 10 months ago by Stephen Feather
answer permalink
5 Comments
  • and where do I put this code?

    — commented 10 months ago by nicolò monili

  • where ever you want? wherever it meets your application flow?

    — commented 10 months ago by Stephen Feather

  • I asked you where to put the code as it stood because it gave me error and I thought I was going put in a specific location, but after I realized that your code was missing ) at the end of if :)

    — commented 10 months ago by nicolò monili

  • Show 2 more comments

Your Answer

Think you can help? Login to answer this question!