Hi,
I tried many different solutions to avoid the android back button
goes to the previous view, but without positive results.
I’ve a “start” state and, when the job is done, the application
goes to a “home” state through the $state.go function.
I tried:
- registering a callback back action using $ionicPlatform
- using the nav-clear directive on the next view
- using $ionicHistory.clearHistory
- using $ionicHistory.currentView($ionicHistory.backView())
- using $state.go(“home”, {}, {location: “replace”})
- using $state.go(“home”, {}, {location: “replace”, notify: false})
- using $ionicHistory.nextViewOptions({disableBack: true})
What can I do to solve the problem?
Thanks in advance