title: How to implement DeepLinking If user don't have app then?
body: <p>I have 3 requirement for DeepLinking or Universal Links to my project.   </p>
  
  <ol>
  <li>If user is having the application then URL should redirect to application with content.  </li>
  <li>If user don't have the application then it should redirect to Appstore.  </li>
  <li>If user don't have the application then it should redirect to Appstore and after download the app it should go to that page with data which I am sending with URL.  </li>
  </ol>
  
  <p>Links which I followed:</p>
  
  <ol>
  <li><a href="https://www.raywenderlich.com/128948/universal-links-make-connection" rel="nofollow noreferrer">https://www.raywenderlich.com/128948/universal-links-make-connection</a>  </li>
  <li><a href="https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html" rel="nofollow noreferrer">https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html</a>.  </li>
  <li><a href="http://swiftdeveloperblog.com/deep-linking-using-custom-url-scheme/" rel="nofollow noreferrer">http://swiftdeveloperblog.com/deep-linking-using-custom-url-scheme/</a>.  </li>
  <li><a href="http://blogs.innovationm.com/deferred-deep-linking-in-ios-with-universal-link/" rel="nofollow noreferrer">http://blogs.innovationm.com/deferred-deep-linking-in-ios-with-universal-link/</a>  </li>
  <li><a href="https://developer.apple.com/documentation/security/shared_web_credentials/preparing_your_app_and_website_to_share" rel="nofollow noreferrer">https://developer.apple.com/documentation/security/shared_web_credentials/preparing_your_app_and_website_to_share</a>  </li>
  <li><a href="http://www.brianjcoleman.com/tutorial-deep-linking-in-swift/" rel="nofollow noreferrer">http://www.brianjcoleman.com/tutorial-deep-linking-in-swift/</a>. </li>
  </ol>
  
  <p>What I understood is:</p>
  
  <blockquote>
    <p>Creating and Uploading the Association File and for this I have to follow some steps:</p>
    
    <p>Adding support for universal links is easy. There are three steps you need to take:</p>
    
    <p>Create an apple-app-site-association file that contains JSON data about the URLs that your app can handle. Upload the apple-app-site-association file to your HTTPS web server. You can place the file at the root of your server or in the .well-known subdirectory. Prepare your app to handle universal links.  </p>
    
    <p>Creating and Uploading the Association File</p>
    
    <p>To create a secure connection between your website and your app, you establish a trust relationship between them. You establish this relationship in two parts:</p>
    
    <p>An apple-app-site-association file that you add to your website
    A com.apple.developer.associated-domains entitlement that you add to your app   </p>
    
    <p>Preparing Your App to Handle Universal Links.<br>
    In your com.apple.developer.associated-domains entitlement, include a list of the domains that your app wants to handle as universal links. To do this in Xcode, open the Associated Domains section in the Capabilities tab and add an entry for each domain that your app supports, prefixed with applinks:, such as applinks:www.mywebsite.com.  </p>
  </blockquote>
  
  <p>Problem is: I followed all steps and I have a url I added it in the domain in my Associated Domain.</p>
  
  <p>Example: <code>https://&lt;My_Domain&gt;/anything</code>. 
  Now Backend is generating URL and sending.  </p>
  
  <p>We are using <code>Http</code> server.</p>
  
  <p>Example:</p>
  
  <pre><code>Route::get('appstore',function(){ return redirect()-&gt;away('https://itunes.apple.com/in/app/whatsapp-messenger/id310633997?mt=8');}); 
  </code></pre>
  
  <p>Problem is when I am clicking on that URL I am not getting any popup for already app and also After download how data I will get ?</p>
  
  <p>Am  missing something or backend is missing something?</p>