title: iPhone browser: Checking if iPhone app is installed from browser
body: <p>I have web page where I have Button that either opens app (if it installed) or directs to App store if app isn't installed.
  It all works if App is installed (I call into "MYAPP://"). However, if app is not installed Safari shows error message "Can not open URL" and that's it. Is there way to disable that message from JScript or is there another way to find out from JScript if app installed (instead of hitting app URL)?</p>
  
  <p>To MODERATOR: I saw someone asked <a href="https://stackoverflow.com/questions/7535354/iphone-customer-url-scheme-from-browser-what-if-app-isnt-installed">similar question</a> and Moderator wrongly marked it as duplicate. Please understand that question was specifically about doing it from Browser. </p>
  
  <p>Found somewhat suitable solution <a href="https://stackoverflow.com/questions/1108693/is-it-possible-to-register-a-httpdomain-based-url-scheme-for-iphone-apps-like-y">here</a></p>
  
  <p>BTW if someone interested in how to do same thing for Android, here is code. We are using Dojo library:</p>
  
  <pre><code>  dojo.io.iframe.send({
      url: "yourApp://foo/bar",
      load: function(resp) {
        // nothing to do since it will automagically open App
      },
      error: function () {
        window.location = "go to Android market";
      }
    });
  </code></pre>