Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49236

Ionic 4: Prevent backbutton from closing page

$
0
0

@highwaychile wrote:

Hi,

I’m searching for a way to disable the hardware back button on certain pages, i.e. on a “loading” page; I know about the existence of

this.platform.backButton.subscribe(() => {
  // do something here
});

, but this allows only for performing an action once the back button is pressed, but I don’t see how to cancel the “nav.pop()” action. Do you know how to achieve this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49236

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>