Just updated my iPhone to iOS10 and the Universal links stopped working. If I run my app in an iPhone with iOS9, or lower, the Universal Links work fine, but the are just not working at all in iOS10.
刚刚将我的iPhone更新到iOS10并且Universal链接停止了工作。如果我在iOS9或更低版本的iPhone中运行我的应用程序,通用链接工作正常,但在iOS10中根本不起作用。
Any clues?
2 个解决方案
#1
33
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 Links。如果在打开通用链接后点击屏幕右上角的旁路链接,通常会发生这种情况。
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:
这是每个应用程序设置,保存在每个独特的设备上。即使您删除了应用并重新安装该设置,该设置仍会保留,因此撤消此设置的唯一方法是有意在设备上重新启用该应用的通用链接行为。有几种方法可以做到这一点:
- 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.
- 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.
将链接粘贴到Notes或iMessage(或其他支持Universal Links的应用程序)中并长按该链接。您将看到“在[App]中打开”选项。选择它,然后该应用程序的所有通用链接将再次运行。
在Safari中打开的网页上 - 假设它没有立即重定向到其他地方 - 您可以向上滚动初始视图以获得横幅。单击此按钮还将重新启用相关应用程序的Universal Links。
#2
0
Ensure that you have the app installed on your device first. A fix for iOS 11 is to text or send the universal URL to yourself or a friend via iMessage. Then tap on the link to open it. It should automatically launch the app. This should fix the issue.
确保首先在设备上安装了应用程序。 iOS 11的修复方法是通过iMessage向您自己或朋友发送或发送通用URL。然后点击链接将其打开。它应该自动启动应用程序。这应该可以解决问题。
A couple of notes:
几个笔记:
- Some apps like Slack (at the moment) does not send me to the app but instead sends me to Safari. So don't rely on Slack to test your universal links.
- Another thing that wasn't working for me was seeing the app banner from safari, but after sending the URL via iMessage and tapping on it, I am able to see the app banner from safari again.
一些应用程序,如Slack(目前)不会将我发送到应用程序,而是将我发送到Safari。所以不要依赖Slack来测试你的通用链接。
另一件对我不起作用的事情是从safari看到应用程序横幅,但在通过iMessage发送URL并点击它之后,我能够再次从safari中看到应用程序横幅。
#1
33
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 Links。如果在打开通用链接后点击屏幕右上角的旁路链接,通常会发生这种情况。
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:
这是每个应用程序设置,保存在每个独特的设备上。即使您删除了应用并重新安装该设置,该设置仍会保留,因此撤消此设置的唯一方法是有意在设备上重新启用该应用的通用链接行为。有几种方法可以做到这一点:
- 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.
- 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.
将链接粘贴到Notes或iMessage(或其他支持Universal Links的应用程序)中并长按该链接。您将看到“在[App]中打开”选项。选择它,然后该应用程序的所有通用链接将再次运行。
在Safari中打开的网页上 - 假设它没有立即重定向到其他地方 - 您可以向上滚动初始视图以获得横幅。单击此按钮还将重新启用相关应用程序的Universal Links。
#2
0
Ensure that you have the app installed on your device first. A fix for iOS 11 is to text or send the universal URL to yourself or a friend via iMessage. Then tap on the link to open it. It should automatically launch the app. This should fix the issue.
确保首先在设备上安装了应用程序。 iOS 11的修复方法是通过iMessage向您自己或朋友发送或发送通用URL。然后点击链接将其打开。它应该自动启动应用程序。这应该可以解决问题。
A couple of notes:
几个笔记:
- Some apps like Slack (at the moment) does not send me to the app but instead sends me to Safari. So don't rely on Slack to test your universal links.
- Another thing that wasn't working for me was seeing the app banner from safari, but after sending the URL via iMessage and tapping on it, I am able to see the app banner from safari again.
一些应用程序,如Slack(目前)不会将我发送到应用程序,而是将我发送到Safari。所以不要依赖Slack来测试你的通用链接。
另一件对我不起作用的事情是从safari看到应用程序横幅,但在通过iMessage发送URL并点击它之后,我能够再次从safari中看到应用程序横幅。