For thoses who are a bit lost like I was, here is what I've done :
My app is based around a big navigationView with an id of 'app'.
in my main controller I added two routes :
Code:
routes:{
'showView/:name': 'showView',
'':'showHome'
}
And, in my controller fonctions, instead of calling the views changes with app.setActiveItem(myViewNumber), I now use this.redirect('showView/myViewName').
That is doing the url change and call the handlers of my routes.
Now, window.history.back is working !
To handle the back button with phonegap, I know it is a little out of the scope of senchatouch but here is my code :
Code:
document.addEventListener("backbutton", onBackKeyDown, false);
function onBackKeyDown(e) {
if(Ext.getCmp('app').getActiveItem().id!="home"){
window.history.back();
}
else{
document.removeEventListener("backbutton", onBackKeyDown, false);
}
}
hope this helps.
and thanks to edspencer and mitchellsmoens for the tips !