All the solutions for handling going back via the hardware button in Ionic have all worked using this:
platform.ready().then(() => {
platform.registerBackButtonAction(() => {
However, I was wondering if there is a way to handle the back button that appears in the Navbar as this doesn't seem to be fired when I press that in Android. All solutions I've tried to find refer to the code at the top that only appears to work for hardware buttons only.