"警告?-6ren"> "警告?-我想从 Safari 打开我的应用程序。这是 info.plist 中的自定义方案: CFBundleURLTypes CFBundleURLName co-6ren">
gpt4 book ai didi

javascript - 使用自定义方案打开应用程序 - 防止 "open in "警告?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:34:35 25 4
gpt4 key购买 nike

我想从 Safari 打开我的应用程序。这是 info.plist 中的自定义方案:

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.appvendor.rentalapp</string>
<key>CFBundleURLSchemes</key>
<array>
<string>open-rental</string>
</array>
</dict>
</array>

如果我在 safari 中按这样的按钮:

<a href="open-rental://custom-string">Open App</a>

我收到 iOS 警告 "Open in <app-name>" .我的问题是我可以阻止此警告弹出窗口吗?

最佳答案

another item我认为这可以帮助你

setTimeout(function(){
window.location = "weixin://"; //scheme
setTimeout(function () {
window.location = appstore url;
}, 500);
}, 1);

关于javascript - 使用自定义方案打开应用程序 - 防止 "open in <appname>"警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33564461/

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