40

While testing universal links on my iOS 9 app, I accidentally tapped "mywebsite.com >" (top right corner). This made the app navigate to the website again. Now I can't seem to make universal linking work again. Seems like iOS has remembered my preference that I would like to see links opened in Safari as opposed to my app.

Has anyone run into this? Is there a way to reset this?

Sonny Saluja
  • 7,193
  • 2
  • 25
  • 39
  • I'm having this problem with Facebook links. Somebody sends me a link via Messenger, and the link opens in Safari instead of Facebook app. I *one time* dismissed the "Open in Facebook App" button, and now there's no way to restore that setting. None of the suggestions here work for me. – Stephen R Apr 04 '19 at 23:49

4 Answers4

65

You can long-press on a universal link and it will give you an action sheet with an "Open in 'AppName'" option. Once you select that option it will default to opening the links in your app again.

dan
  • 9,695
  • 1
  • 42
  • 40
  • 6
    Thanks for this. For the record, this is horrendous UX IMHO – altyus May 10 '16 at 21:19
  • 2
    This won't work in all cases. For example, clicking Tweetbot's Tweet Detail timestamp takes you to a tweet, but does not respond to long presses. hitrain's solution seems more consistent. – jaydisc Jul 06 '16 at 03:42
  • 1
    It doesn't work neither in Message for example. To make this work if your link is in an app already using the long touch, copy the link and paste it in Note App for example. After that, if you long touch, this will work as expected (even if "as expected" is just a very bad way to do this !!! :) – Sébastien Doncker Oct 24 '16 at 14:52
10

You need pull down in opened page in safari from email, etc to see button "Open" (this button is system in safari). If tap "open" after

I accidentally tapped "mywebsite.com >"

universal link will work again under the old scheme.The result of this action preserves.

example

hitrain
  • 133
  • 8
6

@dan is right, long-pressing the hyperlink will give you the option to open with your app again through universal link.

If you have an Apple Smart Banner in place, you can also click on its 'Open' hyperlink to active universal links on your app again.

Hugo Sequeira
  • 474
  • 4
  • 10
3

For a Branch.io deep link the long tap (at least in GMail) does not work and also you can't pull down from safari, it brings you to the App Store immediately.

Instead, copy the link to Notes and then do the long press.

More info here: https://blog.branch.io/3-steps-to-troubleshoot-ios-9-and-ios-10-universal-links/

vargen_
  • 2,590
  • 3
  • 24
  • 30