繁体   English   中英

直接下载并在iPhone上安装ipa

[英]Direct download and install ipa on iPhone

我已经提到了此链接

我有一个简单的页面,用户可以在其中从我的服务器下载iOS应用程序。 plist URL是

<a charset='UTF-8' href='itms-services://?action=download-manifest&url=<?php echo $ios_plist_url; ?>' >IOS Application</a>

当用户单击以上链接时,Safari浏览器将提示您安装应用。 这是预期的行为。 但是问题是,当我尝试直接重定向到plist URL时,浏览器会首先提示Open this page in "App Store?" 如果用户单击“ Open ,则将提示您"Install" 有什么办法可以绕过此应用商店警报?

请提出建议。

编辑

<?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>
<key>items</key>
<array>
    <dict>
        <key>assets</key>
        <array>
            <dict>
                <key>kind</key>
                <string>software-package</string>
                <key>url</key>
                <string>url to ipa</string>
            </dict>
            <dict>
                <key>kind</key>
                <string>full-size-image</string>
                <key>needs-shine</key>
                <false/>
                <key>url</key>
                <string>logo.png</string>
            </dict>
            <dict>
                <key>kind</key>
                <string>display-image</string>
                <key>needs-shine</key>
                <false/>
                <key>url</key>
                <string>logo.png</string>
            </dict>
        </array>
        <key>metadata</key>
        <dict>
            <key>bundle-identifier</key>
            <string>bundle</string>
            <key>bundle-version</key>
            <string>1.0.</string>
            <key>kind</key>
            <string>software</string>
            <key>subtitle</key>
            <string>XYZ</string>
            <key>title</key>
            <string>App Title</string>
        </dict>
    </dict>
</array>
</dict>
</plist>`

不幸的是,您无法绕过对话。 这是安装链接(来自应用商店)的默认行为。

对于测试版本(Adhoc),它将直接提示安装。

作为参考,请在您的iPhone Safari浏览器中查看天气频道

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM