gpt4 book ai didi

ios - 为 Flutter 应用程序添加关联域权限

转载 作者:行者123 更新时间:2023-12-01 16:15:05 25 4
gpt4 key购买 nike

我需要将关联域权利添加到我的 Flutter 应用程序中,以便我可以实现应用程序链接。我用uni_links适用于 Android 的插件。我已按照描述添加了 ios/Runner/Runner.entitlements 文件,但它不起作用。 Apple official docs暗示我需要通过 xcode 添加一些东西到应用程序中。问题是,我不使用 xcode,而是使用 Android Studio。我相信我需要手动添加一个条目到 info.plistproject.pbxproj 这就是我相信 xcode 所做的,但我不确定是什么。

最佳答案

从此路径打开 Runner.entitlements 文件:

ios/Runner/Runner.entitlements

并添加您想要的应用链接

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ... other keys -->
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:[YOUR_HOST]</string>
</array>
<!-- ... other keys -->
</dict>
</plist>

有关详细信息,请阅读 Apple 指南 Universal Links .

关于ios - 为 Flutter 应用程序添加关联域权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58737101/

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