Close app on back button click from home page

PHOTO EMBED

Thu Jan 14 2021 19:28:40 GMT+0000 (UTC)

Saved by @zinotrust #html

// Exit App on back button click from Home page
this.platform.backButton.subscribeWithPriority(0, () => {
  if (window.location.pathname == "/home") {
    navigator['app'].exitApp();
  }
});
content_copyCOPY