From the Platform Documentation, I understand
registerBackButtonAction(fn, priority) works only with Cordova apps. But what about PWAs that run in the Web without cordova. Is there any equivalent function? I couldn’t find it.
I just need to capture this event inside my Component that is presented via
ModalController and dismiss self.
Or is there better way of dismissing ModalControllers when Browser back button is pressed? Right now, on browser back button, the current page pops while the Modal remains open!