You could subscribe to the back event and close the modal aka override de default behavior
To do so you have two options:
-
In the
Platformthere is asubscribeWithPriority(https://github.com/ionic-team/ionic/blob/ce1fcea68c7d5e0249c6c1c1fc612a86b2866243/angular/src/providers/platform.ts) -
You could use the following decorator to catch the event
@HostListener('document:ionBackButton', ['$event'])