title: How to dismiss alert on back key press in android?
body: <p>I'm trying to close alert when the alert is present with back key press else the page will be navigated to another page. I've tried <code>alert.dismiss()</code>, but how to find out if the alert is present or not? I want also to do the same with <code>ion-select</code>.</p>