Universal Links Not Working on iOS10

Universal Links not working on iOS10

It sounds like you inadvertently deactivated Universal Links. This usually happens if you tap the bypass link in the top right corner of the screen after opening a Universal Link.

Universal Link bypass button

This is a per-app setting that is saved on each unique device. The setting is preserved even if you delete the app and reinstall it, so the only way to reverse this is by intentionally re-enabling Universal Link behavior for that app on your device. There are a couple of ways to do this:

  1. Paste the link into Notes or iMessage (or some other app that supports Universal Links) and long-press on it. You'll see an 'Open in [App]' option. Select it, and after that all Universal Links for that app will work again.
  2. On the the webpage that opens in Safari — assuming it doesn't immediately redirect somewhere else — you can scroll up on the initial view to get a banner. Clicking this will also re-enable Universal Links for the associated app.

Sample Image

ios: Universal links not working on iOS 10

Fixed the issue. The problem was that I was testing with Debug configuration. When I tried with Release build everything is now working fine.

iOS Universal Links are not opening in-app

There are a few possible issues.

  1. Try pasting your domain into this link validator and make sure there are no issues: https://limitless-sierra-4673.herokuapp.com/ (credit to ShortStuffSushi -- see repo)

  2. iOS logs an error message in the system logs if you don't have TLS set up properly on the domain specified in your entitlements. It's buried in the OS logs, not application logs. The error message will look like Sep 21 14:27:01 Derricks-iPhone swcd[2044] <Notice>: 2015-09-21 02:27:01.878907 PM [SWC] ### Rejecting URL 'https://examplecustomdomain.com/apple-app-site-association' for auth method 'NSURLAuthenticationMethodServerTrust': -6754/0xFFFFE59E kAuthenticationErr. Error message pulled from here, quick (incomplete) instructions on using CloudFlare for TLS here.

  3. In my personal testing, clicking/typing in a link in Safari has never once opened the app directly. Clicking from other apps (iMessage, Mail, Slack, etc.) has worked. Others have reported that clicking links in Google search results have opened the app directly.

  4. Note that if a Universal Link succeeds in opening your app and then you click through to Safari (by tapping your site in the top right corner of the nav bar in app), then iOS stops opening the app when you visit that URL. Then in Safari, you can pull down to reveal a banner at the top of the page with "Open". I wasted a lot of time on this. Note that clicking through to the site => disabling UL seems path specific, based on the paths you specify in the apple-app-site-assocation file. So if you have separate routes, yoursite.com/a/* and yoursite.com/b/*, if you click yoursite.com/a/* and it opens your app directly, you then have the option in the top right corner of the app to click through to yoursite.com/a/*. If you do that, subsequent visits to yoursite.com/a/* will open in browser, not app. However, yoursite.com/b/* should be unaffected and still open your app directly.

Let me know if you discover what the issue is. I'm personally very curious about how Universal Links work and what edge cases exist. Good luck.

iOS 10.3 Universal Links Not Working

Ultimately what made it work was adding an application-identifier entitlement with a value similar to the appID from the AASA file; I used a wildcard $() for the suffix, so in theory it'll work across deployment environments. No idea where that is supposed to come from, or what presumptions were being made on the part of Apple's documentation, but...the app opens from links, now!

Universal link works in xcode8 simulator but not on ios 10 device

Sounds like you may have inadvertently disabled Universal Links on that device. Fortunately it's fairly simple to re-enable them:

  1. Get a Universal Links URL
  2. Paste that URL into Notes
  3. Long-press on the URL and select 'Open in [app name]'

Firebase Universal links disabled and not working (iOS)

It helps if applinks is not spelled "applink" in the Info.plist associated domains.



Related Topics



Leave a reply



Submit