Ionic Modal hardwareBackButtonClose



Since I do not see any thread about this I’m not sure if it’s a bug or if I’m doing it wrong but hardwareBackButtonClose does not work on my version ( nightly for ionic, android 4.3)

Can anyone close a modal with the back button, or is something wrong?



Hey @Apavillet - can you add the code that is calling the function? It will be easier for me to see if there is something that needs to be changed with your code.


Hello @drew, of course here it is but as you can see not much to see it’s really a simple modal done ( I think ) according to the doc :

$ionicModal.fromTemplateUrl('templates/modal/order.html', {
scope: $scope
).then(function(modal) {
$scope.modal = modal;
$scope.closeOrderModal = function() {
$scope.orderModal = function() {


Same issue, with Android4.3 and ionic 1.0.0beta13. hardwareBackButtonClose not works