title: Is there a method to detect native apps from mobile safari?
body: <p>I want to show a banner that links to a related native app from mobile web, and link to the app store/play store if the app is not installed. I would like to show different UI (download/open app) depending on if the app is installed</p>
  
  <p>I know safari has the <a href="https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html" rel="nofollow noreferrer">smart-app-banner</a>, but this banner is not very configurable.</p>
  
  <p>Chrome has a method <a href="https://web.dev/get-installed-related-apps/" rel="nofollow noreferrer">getInstalledRelatedApps()</a> that can be used to detect a related native app from mobile web.</p>
  
  <p>Is there an equivalent way to detect a native app from safari?</p>