Since I updated Cordova and Ionic my hardware back button on Android phones doesn’t respond on the following code inside a controller:
$ionicPlatform.onHardwareBackButton(function(){
$scope.go(‘main’);
});
Cordova Version: 4.2.0
Ionic CLI: 1.3.11
I want to control the hardware back button event. Now the back button follows the screen history.
Does anyone know how to solve this? Before updating it worked.