Clicking the device back button closes the app instead of going back to previous page
The default behaviour of the back button is as follows: Go back in history – if the history stack is empty -> exit the app. So you should check the $state you are in, when you tap the hardware back button. With the following code (placed in the run function of your module) you can … Read more