javascript - How to handle log out #appcelerator -


i have created page log user in if user opening app first time, how handle , direct him login page. wanted use

if (login == false) {//redirect}; 

it doesn't work titanium sdk studio.

you can use titanium.app.properties this. example

if(titanium.app.properties.getbool("isfirstlogin",false)){   //user logged in first time } 

and whenever user logged in set isfirstlogin true.

titanium.app.properties.setbool("isfirstlogin",true); 

if want log user out again in future, can remove property

titanium.app.properties.removeproperty("isfirstlogin"); 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -