Handling hardware back button in Ionic3 Vs Ionic4

Update: This was fixed in v4.0.0-beta.8 (dfac9dc) Related: ionic4 replacement for registerBackButtonAction This is tracked on GitHub, in the Iconic Forum and Twitter Until there is an official fix, you can use the workaround below. Using platform.backButton.subscribe (see here) platform.backButton.subscribeWithPriority(0, …) to let ionic handle closing all the modals/alerts/… , the code ionic uses when … Read more