Is there any way as if nov 2020 on how to make the backbutton work on PWAs?
Elements such as modals, actionsheets, alerts and select elements (https://ionicframework.com/docs/api/select) are used WIDELY in my application and it is completely breaking functionality the current behaviour of the back button (go back instead of closing the topmost overlay)
I’ve tried without much success all the solutions provided here: How to close modal/Alert on back button in ionic4 (PWA)
The accepted solution does NOT work unless you make the ugly history hack (insert a new history item so when the back button is pressed it deletes this empty record) and it its notviable in my case because I’d have to handle lots of extra logic (for example, an action sheet that triggers an alert which this in turns opens a modal would mean that I have to keep track of all of these new ‘history entries’)
For such an amazing framework like IONIC, is just dumb to not have an easy way to deal with this.