registerBackButtonAction(fn, priority) for PWA?

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!

I am having the same issue with the latest version of the Beta Ionic PWA Toolkit. Have you found a solution to this issue? If so, please share, thank you.