title: universal links with redirects using google url shortener
body: <p>The use case is, essentially, this:</p>
  
  <ul>
  <li>the user create some content and uploads it to our server.</li>
  <li>our server responds with the URL.</li>
  <li>the user sends the URL (eg via text message) to another user.</li>
  <li>the other user clicks on the URL. If they have the app installed, they should be taken to the content in the app. If they don't have it, they should still be able to view the content on our site (eg in safari).</li>
  </ul>
  
  <p>This is easy enough, and we have that working, except our URLs are long and we'd like to use shortened URLs. With shortened URLs, the problem is it always opens in Safari, instead of the app, unless we setup a custom domain. (This is described in many places, including here: <a href="https://stackoverflow.com/questions/36225871/ios-universal-links-and-url-shorteners">iOS Universal Links and URL Shorteners</a>).</p>
  
  <p>The <a href="https://developers.google.com/url-shortener/" rel="nofollow noreferrer">docs for google URL</a> shortener indicate that they have overcome this somehow:</p>
  
  <blockquote>
    <p>Even though App Indexing for iOS is available only in limited release, you can still enable iOS app deep links with goo.gl by implementing App Indexing for iOS. While these deep links may not begin appearing in Search results, they will start working with goo.gl links.</p>
  </blockquote>
  
  <p>So I installed the app indexing for iOS into our app on a test device and ran it. Then I created a short link but it still opens in my browser, not my app.</p>
  
  <p>Does this really work as advertised? Do I have to wait longer? Install the indexer on more apps? Will a created link open in the app right away, or does the content have to be indexed?</p>
  
  <p>...Or am I missing something else?</p>
  
  <p>Related:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/34437925/google-app-indexing-for-ios-and-universal-links">Google app indexing for iOS and universal links</a></li>
  </ul>
  
  <p>UPDATE:</p>
  
  <p>The only way I can see this actually working without a custom domain is if Google added every app they indexed to their apple site association file. All I see is google apps there, so obviously that's not the case.</p>
  
  <p>Stack overflow won't let me link it because it thinks it's a link shortener, but it's close to this:</p>
  
  <pre><code>https://goo. gl/apple-app-site-association
  </code></pre>