0
votes

I am working on titanium [new to this platform], I am using Titanium 3.1.0 version Alloy.

display one time welcome screen.

welcome screen name is IndexWindow next screen is LoginWindow.

when i relaunch the application it need to show loginWindow. not IndexWindow[welcome Screen].

Where i need to do changes for this?

@ all Thanks in advance

1

1 Answers

2
votes

To solve this you'll need to persist the info by using properties like this :

if(Ti.App.Properties.hasProperty('loggedBefore')) {
    // open login window
} else {
    Ti.App.Properties.setString('loggedBefore', '1');
    // open indexWindow
}