iphone web app to automatically redirect to app
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12525257/rails-redirect-to-myapp-to-call-ios-app-from-mobile-safari">Rails: redirect_to &#39;myapp://&#39; to call iOS app from mobile safari</a>  </p>
</blockquote>



<p>I am trying to do what Facedialer does when it installs small webapps on your home screen so by clicking them it places a call.</p>

<p>I have my app with its custom url scheme working. If I try writing my custom url from safari it opens my app.</p>

<p>But I can't make it so the web app, when opened, redirects to my custom app.
I've tried with window.location.href="myapp://" and a lot of different variants without success.</p>

<p>The only way I have to make it is through META REDIRECT tag. But I need to avoid this solution since I want to discriminate if the user is opening the webapp from the home screen or if it's directly from safari. (using window.navigator.standalone)</p>

<p>Does it make sense?
Any advice?</p>

<p>Thanks</p>
