I am explaining the situation below which currently I am facing for the app I am working on.
The app consists of the Login module which stores the data to the application local storage. Now when I initiate the application it checks for the key in the local storage and accordingly call the changepage in the application.
If i clear out the local storage and restarts the application then all the transitions works perfect. But if data is already there in the application local storage and application is launched it takes me to the home screen defined.
I have a jquery listview over there. Now when i call changePage in later scenario nothing happens i.e when i land up to the home page. But in the first scenario everything works fine when i start from the login screen.
Here is the code to logout
localStorage.removeItem("userdata");
localStorage.removeItem("default_data");
$("#block-ui").show();
$.mobile.loading('show');
setTimeout(function(){
$.mobile.loading('hide');
$("#block-ui").hide();
$.mobile.changePage("index.html",{allowSamePageTransition:true,reloadPage:true,changeHash:false,transition:"slide"});
},2500);