【问题标题】:Direct download and install ipa on iPhone直接在 iPhone 上下载并安装 ipa
【发布时间】:2017-03-17 21:29:40
【问题描述】:

我已经推荐了this link

我有一个简单的页面,用户可以在其中从我的服务器下载 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>`

【问题讨论】:

  • 您使用的是哪个清单网址?可以分享一下吗?
  • @Nirmalsinh 编辑了问题。请检查。
  • $ios_plist_url 的值是多少?
  • @Nirmalsinh : 它是清单 plist 文件的 url。
  • 所以你已经把 manifest 和 ipa 上传到你的服务器了,对吗?

标签: php ios iphone redirect


【解决方案1】:

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

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

如需参考,请在 iPhone Safari 浏览器上查看The Weather Channel

【讨论】:

  • 这是一个真正的应用商店链接。但@VedPandya 的链接与应用商店不同。
  • 如果浏览器提示在“App Store”中打开此页面?表示 AppStore 应用链接在 plist 文件中提供。
  • 但在 Ved Pandya 的案例中,该 url 不是应用商店的 url。
  • @Poles 在 plist(有问题)中,他有占位符 url to ipa,所以我不确定应用程序是从哪里下载的......但如果他得到该对话表明该应用程序是从 AppStore 引用的,在这种情况下,您无法避免对话。
猜你喜欢
  • 2017-10-04
  • 2015-03-28
  • 2014-06-27
  • 2020-04-19
  • 1970-01-01
  • 2017-01-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多