Various methods have been proposed to manage the action of going back using the hardware button in Ionic. One common approach is shown below:
platform.ready().then(() => {
platform.registerBackButtonAction(() => {
However, I am interested in finding a solution to handle the back button that is displayed in the Navbar, as it does not seem to trigger when pressed on Android devices. Most solutions available only address handling hardware buttons specifically.