title: Failed to launch 'URL' because the scheme does not have a registered handler
body: <p>i'm trying to build a social share component with angular 11 and ionic 5. I'm using an anchor tag to call href=&quot;whatsapp://send?#text=some%20text&quot;. This works fine on devices with WhatsApp installed, but i only get the following error in the browser console on devices without WhatsApp installed:</p>
  <p>Failed to launch 'whatsapp://send?#text=text=some%20text' because the scheme does not have a registered handler.</p>
  <p>How can i catch this error to show the user a nice message like &quot;Sorry, you have no WhatsApp installed&quot;</p>