When I go to any menu page and click on hardware back button , the app closes instead of going to the previous screen? I am using
<ion-side-menus enable-menu-with-back-views="false">
Can anybody help me with this?
Note : this happens only with the menu page.
I want the the previous screen to appear when hardware back is pressed. Now, back button just closes the app.
Ionic -v : 1.7.7 cordova -v : 5.3.3
Update the problem is with menu-close directive that is being used in the menu list.
<ion-list>
<ion-item menu-close nav-clear ui-sref="menu.home">
Home
</ion-item>
<ion-item menu-close nav-clear ui-sref="menu.welcome">
Settings
</ion-item>
<ion-item menu-close nav-clear>
Profile
</ion-item>
</ion-list>
I replaced that with menu-toggle="left" . Doing this replaces the menu icon with a back key which is undesired. Any way I can make it like all the other native android app behave?