title: iOS App URL Scheme launch application or open app store
body: <p>In iOS App, to launch an application from safari, the URL scheme is something like this, <a href="http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html" rel="nofollow noreferrer">Launch App from URL </a><br>
  is it possible to re-direct URL to Appstore pointing to the App if the particular app is not installed in the device,<br>
  Basically what i am looking</p>
  
  <ul>
  <li>If app is already installed then let it be launch from the URL "<strong>A</strong>"</li>
  <li>if app is not installed let it point to app store and promot user to download app, </li>
  </ul>
  
  <p>there are examples of <a href="https://stackoverflow.com/questions/433907/how-to-link-to-apps-on-the-app-store">how to link to app to app store</a>, but not able to add condition in the js when to launch custom URL scheme if app is there, else launch app store. </p>
  
  <p>Update : </p>
  
  <p>the answer provided and in the comment take me to the page which says  <strong>how to launch the app store with specific app</strong> that's secdonary requirement, initially i need to have some js code which can detect whether the device has an app specific to URL scheme if not then open the App Store app page</p>
  
  <p>element</p>