Hi! I could auto logon. Now I need clean up the navigation history after logon to prevent user to go back to the login page (because the Android back button is always there).
I tried the both samples below, but it didn't work.
Syntax on Logon Page
pre
var $ionicHistory = Apperyio.get("$ionicHistory");
$ionicHistory.nextViewOptions({
historyRoot : true,
disableBack: true
});
/pre
or syntax after logon page
pre
var $ionicHistory = Apperyio.get("$ionicHistory");
$ionicHistory.clearHistory()
/pre
From this reference: http://ionicframework.com/docs/api/se...
I just found another solution here but I'm curious why $ionicHistory didn't worked?