gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 09:19:14 25 4
gpt4 key购买 nike

以下解决方案可以在模拟器上支持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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com