简体   繁体   English

直接下载并在iPhone上安装ipa

[英]Direct download and install ipa on iPhone

I already referred this link 我已经提到了此链接

I have a simple page where a user can download the iOS application from my server. 我有一个简单的页面,用户可以在其中从我的服务器下载iOS应用程序。 The plist URL is plist URL是

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

When user clicks on above link then the safari browser prompts for app install. 当用户单击以上链接时,Safari浏览器将提示您安装应用。 Which is expected behavior. 这是预期的行为。 But the problem is that when I try to redirect to the plist URL directly then the browser first prompts Open this page in "App Store?" 但是问题是,当我尝试直接重定向到plist URL时,浏览器会首先提示Open this page in "App Store?" and if user clicks Open then it will prompt for "Install" . 如果用户单击“ Open ,则将提示您"Install" Is there any way to bypass this app store alert? 有什么办法可以绕过此应用商店警报?

Please suggest. 请提出建议。

EDIT 编辑

<?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>`

Unfortunately, you cannot bypass the dialogue. 不幸的是,您无法绕过对话。 This is the default behavior for install link (from app store). 这是安装链接(来自应用商店)的默认行为。

For test builds (Adhoc) it directly prompts for installation. 对于测试版本(Adhoc),它将直接提示安装。

For reference, please check The Weather Channel on your iPhone safari browser. 作为参考,请在您的iPhone Safari浏览器中查看天气频道

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

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