Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230092

Hardware Back Button Issue

$
0
0

this.platform.ready().then(() => {
this.platform.backButton.subscribeWithPriority(0, async () => {
if (this.router.url == “/login” || this.router.url == “/home” || this.router.url == “/starter”) {
let dataValue = await this.autocloseOverlaysService.trigger();
if (dataValue) {

      }
      else {
        this.showAlert();
      }

    }
    else if (this.routerOutlet.canGoBack()) {
      let dataValue = await this.autocloseOverlaysService.trigger();
      if (dataValue) {

      }
      else {
        this.navCtrl.back();
      }
    }
  });
});

}


Viewing all articles
Browse latest Browse all 230092

Trending Articles



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