// Exit App on back button click from Home page this.platform.backButton.subscribeWithPriority(0, () => { if (window.location.pathname == "/home") { navigator['app'].exitApp(); } });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter