@akshay_kanchan wrote:
Hi,
I am new to Ionic 4, I have managed to implement a PWA using ionic 4 with Angular.
I am having a hard time figuring out how to close modals/Alerts/ActionSheets on back-button on browser (Desktop & mobile) when served as a PWA. When I press back when a modal is open, the modal stays open and background page is navigated back.
I have tried workarounds from different forums and posts like
this.platform.backButton.subscribeWithPriority(0, async () => {…
fromEvent(document, ‘backButton’).subscribe(() => {…
but none of then are working for me, please can anyone help me with this, need to go production ASAP.
Currently using : ionic : 4.6.2 Angular: 7.2.2
Posts: 1
Participants: 1