Ionic 4 - PWA Back Button not closing Modal

You could subscribe to the back event and close the modal aka override de default behavior

To do so you have two options:

  1. In the Platform there is a subscribeWithPriority (https://github.com/ionic-team/ionic/blob/ce1fcea68c7d5e0249c6c1c1fc612a86b2866243/angular/src/providers/platform.ts)

  2. You could use the following decorator to catch the event @HostListener('document:ionBackButton', ['$event'])