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
Post a Comment