ios - UniversalLink 不适用于 iOS 14 设备,但在模拟器上运行良好

标签 ios swift ios-universal-links ios14

以下解决方案可以在模拟器上支持universalLink。
我有一个支持 UniversalLink 的应用程序。
用户单击网站中支持的链接,将导航到应用程序中的功能。
但它无法在 iOS 14 beta 4 上运行。它没有打开应用程序,而是打开了一个网页 instread。
经过研究,我可以从这里的文档中看到
https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_associated-domains
enter image description here
需要更新 Service.entitlements 以支持 iOS 13 和 iOS 14

<Key>com.apple.developer.associated-domains</key>
  <array>
    <string>applinks:hosturl</string>
    <string>applinks:hosturl?mode=developer</string>
 </array>
它在模拟器上运行良好。
但我无法让它在设备上运行。
任何人都可以提供帮助。

最佳答案

如果要在开发环境中打开应用程序,您必须:
第 1 步:指定关联域
service:fully qualified_domain?mode=alternate mode
例如:applinks:YOUR_DOMAIN?mode=developer第 2 步:在设备上启用关联域开发
在测试设备上,您需要激活关联域开发设置,该设置位于:设置 -> 开发者
Settings
Developer

关于ios - UniversalLink 不适用于 iOS 14 设备,但在模拟器上运行良好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63500747/

相关文章:

iphone - 如何使用 UIScrollView 捕捉缩放?

ios - 实现推特的最佳方式

react-native - 如何为 AppLinks/通用链接获取任何应用程序的 URI 方案?

ios - Swift 无法识别 Firebase 用户

iOS 9.2+ 通用链接重定向

ios-universal-links - Apple 应用程序站点关联不起作用

iphone - Cocos2d的touch locationInView、covertToGL、convertToNodeSpace有什么区别?

iphone - UIImageview 在 iOS7 中没有动画,但在 iOS6 中运行良好

带音量包络的 iOS 音频采样器

ios - 在 IOS 9 上使用 AVPlayer 和 Swift 反向播放视频