title: App Store/Play Store redirection if App is not installed on ionic App
body: <p>I have implemented deeplink for my ionic v1 application and also implemented universal link for same. I also checked so many links to implement App store redirection functionality.</p>
  
  <p>Most of the link suggest to implement javascript code which first check device and based on ios/adnroid/window it will redirect to particular store but let say I will create that javascript code look like below</p>
  
  <pre><code>const iOS = !!navigator.platform &amp;&amp; /iPad|iPhone|iPod/.test(navigator.platform);
  
  if (iOS) {
    window.location.href = "temp://itunes.apple.com/us/app/...";
  }
  </code></pre>
  
  <p>but where should I put this file so when user click on deeplink it should redirect to particular this file and redirect to App Store/Play Store?</p>
  
  <p>Let say I want to give my deeplink to some other server for which i don't have any access then what?</p>
  
  <p>is there any other param or attribute we can set like fallback url by which when app is not installed it will automatically going to that particular link?</p>
  
  <p>Any answer would be great help.</p>
  
  <p>Thanks.</p>