问题描述
我在应用中使用分支深层链接,通过社交媒体分享应用内容的链接。一切都工作正常。
当更新到 iOS 11.2 时,我遇到了以下行为:
1)更新后,Universal Links仍然有效。
2)我卸载了应用并重新安装了它。
3)从那时起,所有链接总是在Safari中打开分支深度视图。
4)点击打开应用程序,打开AppStore 。
无论在哪个应用中我点击链接(Notes,WhatsApp,Messages,Facebook,...),它总是行为相同。
通过点击右上角的转到链接按钮,环球链接未被绕过(当应用程序已打开)。我在三种不同的设备(iPhone 5s,iPhone 6s,iPhone 7)上进行了测试。所有这些都导致了相同的结果。
我发现是iOS 11 beta 2中的一个错误,已在beta 3中修复( ),但它可能会再次出现?!
任何人有相同的问题或解决方法吗?
有时,对于新安装的应用程序,通用链接在iOS 11.2上不起作用。
症状是点击在通用链接上将无法打开手机上新安装的应用程序。通用链接将用户带到一个网页,并提示再次下载该应用程序。
通过在Branch HQ进行的测试,我们发现了Apple App Site Associated安装应用程序后,无论是从应用商店安装还是从Xcode安装,都不会下载域文件( apple-app-site-association
文件)。
删除应用程序,重新启动手机,重新安装应用程序,等待一分钟左右似乎清除了这一点。这显然是一种糟糕的用户体验。
我们已经提交了将继续跟踪此问题。
缓解措施
设置 $ uri_redirect_mode
设置 $ uri_redirect_mode 选项可以让Branch尝试强制链接打开应用程序,即使它可能会向用户显示错误。您可以在分支文档中了解此选项。 / p>
以下是有关在分行之旅或Deepview横幅中启用
$ uri_redirect_mode
的更多信息,分支显示的网页摘要用户如果最终深入链接到Web浏览器:
延迟深度链接缓解此问题
此问题通过Branch的延迟深度链接技术得以缓解:如果用户在点击通用链接后从其主屏幕打开应用程序,则延迟深层链接仍然有效,并显示链接内容在应用程序中。
I am using Branch deep links in an app for sharing links to content in the app via social media. Everything was working fine quite a while.
When updating to iOS 11.2 I encountered the following behavior:
1) After the update the Universal Links still worked.
2) I uninstalled the app and reinstalled it.
3) Since then, all links always open the Branch deep view in Safari.
4) Tapping "Open The App", opens the AppStore.
It does not matter in which app I tap on the link (Notes, WhatsApp, Messages, Facebook, ...), it is always the same behavior.
The Universal Link was not bypassed by tapping the "go to link" button in the upper right corner (when app was opened). I tested on three different devices (iPhone 5s, iPhone 6s, iPhone 7). All led to the same result.
I found out that there was a bug in iOS 11 beta 2 which was fixed in the beta 3 (Ios 11.2 beta universal links open my app and safari), but it might have reappeared?!
Anyone having the same issues or a way to fix it?
解决方案 Sometimes universal links don't work on iOS 11.2 for newly installed apps.
The symptoms are that clicking on a universal link won't open an app that is newly installed on a phone. The universal link takes the user to a web page and is prompted to download the app again.
Through testing here at Branch HQ we've discovered that the Apple App Site Associated Domains file (apple-app-site-association
file) isn't always downloaded after the app is installed, either when it's installed from the app store or from Xcode.
Removing the app, restarting the phone, re-installing the app, and waiting a minute or so seems to clear this up. This is a horrible user experience obviously.
We have filed a radar with Apple and will continue to track this issue.
Mitigations
Set $uri_redirect_mode
Setting the $uri_redirect_mode
option on links can have Branch try to force the link to open the app, even if it might show an error to the user. You can read about this option here, in the Branch docs.
Here's more info about turning on $uri_redirect_mode
in your Branch Journey or Deepview banner, the web snippet that Branch shows the user if the ends up deep linking into a web browser:
Advanced Journey Configuration
Deferred Deep Linking Mitigates This Problem
This issue is mitigated by Branch's deferred deep linking tech: If the user opens the app from their home screen after the universal link is clicked, deferred deep linking still works, and the link content is shown in the app.
这篇关于Universal Link在iOS 11.2中被破坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!